Page MenuHomePhabricator

Fix a fatal error in `ArcanistXHPASTLinter`
ClosedPublic

Authored by joshuaspence on Sep 24 2014, 9:30 PM.
Tags
None
Referenced Files
F15302639: D10551.id25350.diff
Wed, Mar 5, 7:10 PM
F15293869: D10551.id.diff
Wed, Mar 5, 5:19 AM
Unknown Object (File)
Fri, Feb 21, 1:02 PM
Unknown Object (File)
Jan 28 2025, 4:01 PM
Unknown Object (File)
Jan 26 2025, 3:44 PM
Unknown Object (File)
Jan 17 2025, 5:48 PM
Unknown Object (File)
Dec 17 2024, 9:53 AM
Unknown Object (File)
Dec 9 2024, 5:56 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.