Page MenuHomePhabricator

Fix a fatal error in `ArcanistXHPASTLinter`
ClosedPublic

Authored by joshuaspence on Sep 24 2014, 9:30 PM.
Tags
None
Referenced Files
F15459777: D10551.id25350.diff
Mon, Mar 31, 4:12 PM
F15447652: D10551.id.diff
Fri, Mar 28, 12:49 AM
F15420050: D10551.id25350.diff
Fri, Mar 21, 10:54 AM
F15409720: D10551.id25350.diff
Wed, Mar 19, 4:54 AM
F15407438: D10551.diff
Tue, Mar 18, 5:29 PM
F15302639: D10551.id25350.diff
Wed, Mar 5, 7:10 PM
F15293869: D10551.id.diff
Wed, Mar 5, 5:19 AM
Unknown Object (File)
Feb 21 2025, 1:02 PM
Subscribers

Details

Summary

I had assumed that we would always be interested in n_STATEMENT_LIST, which is fine for if (...) { some_statements(); } but not for if (...) one_statement();.

Test Plan

Added a test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Fix a fatal error in `ArcanistXHPASTLinter`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Sep 24 2014, 9:32 PM
This revision was automatically updated to reflect the committed changes.