Page MenuHomePhabricator

Fix a fatal error in `ArcanistXHPASTLinter`
ClosedPublic

Authored by joshuaspence on Sep 24 2014, 9:30 PM.
Tags
None
Referenced Files
F14094692: D10551.id25350.diff
Mon, Nov 25, 4:51 PM
Unknown Object (File)
Sat, Nov 23, 8:32 AM
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)
Oct 24 2024, 5:14 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2627
Build 2631: [Placeholder Plan] Wait for 30 Seconds

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.