Page MenuHomePhabricator

Update xhpast linter rules for new function AST format
ClosedPublic

Authored by richardvanvelzen on Apr 28 2016, 3:03 PM.
Tags
None
Referenced Files
F15492993: D15814.diff
Sat, Apr 12, 8:33 PM
F15486921: D15814.id38095.diff
Thu, Apr 10, 10:00 AM
F15460501: D15814.id.diff
Mon, Mar 31, 11:21 PM
F15454132: D15814.id38095.vson.whitespaceignore-most.diff
Sat, Mar 29, 4:29 PM
F15451350: D15814.id38106.diff
Fri, Mar 28, 9:37 PM
F15445428: D15814.id.diff
Thu, Mar 27, 1:50 PM
F15441185: D15814.diff
Wed, Mar 26, 4:50 PM
F15433533: D15814.diff
Mon, Mar 24, 11:41 PM
Subscribers

Details

Summary

See D15678. A node containing a return type hint is added right before the statement body node. This updates all relevant linter rules to now retrieve the body from the correct index.

Test Plan

Ran arc unit --everything, inspected every single message to make sure all xhpast test cases succeeded. Also grepped for getChildByIndex(5 and getChildOfType(5.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

richardvanvelzen retitled this revision from to Update xhpast linter rules for new function AST format.
richardvanvelzen updated this object.
richardvanvelzen edited the test plan for this revision. (Show Details)
richardvanvelzen added a reviewer: epriestley.
epriestley edited edge metadata.

Those test cases are unrelated version issues.

This revision is now accepted and ready to land.Apr 29 2016, 12:24 PM
This revision was automatically updated to reflect the committed changes.