HomePhabricator

Update xhpast linter rules for new function AST format

Description

Update xhpast linter rules for new function AST format

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.

Reviewers: Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15814

Details

Provenance
richardvanvelzenAuthored on Apr 28 2016, 2:59 PM
richardvanvelzenPushed on Apr 29 2016, 12:38 PM
Reviewer
Blessed Reviewers
Differential Revision
D15814: Update xhpast linter rules for new function AST format
Parents
rARCea6fc7789295: Fix incorrect variable for linter standards
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11979
Build 15067: Run Core Tests

Event Timeline

That test failure looks possibly-legitimate, let me take a closer look...

Was xhpast rebuilt properly? I can't seem to reproduce that failure locally.

It should rebuild it every time, and I think it reproduces locally for me.