Page MenuHomePhabricator

Fix a fatal error in `ArcanistXHPASTLinter`
ClosedPublic

Authored by joshuaspence on Sep 24 2014, 9:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 9:42 AM
Unknown Object (File)
Fri, Nov 15, 9:35 AM
Unknown Object (File)
Mon, Nov 11, 2:57 AM
Unknown Object (File)
Fri, Nov 8, 8:21 AM
Unknown Object (File)
Wed, Nov 6, 7:59 PM
Unknown Object (File)
Thu, Oct 24, 5:14 PM
Unknown Object (File)
Oct 20 2024, 5:15 PM
Unknown Object (File)
Oct 7 2024, 11:41 AM
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.