HomePhabricator

Add an `XHPAST::getNamespace()` method

Description

Add an XHPAST::getNamespace() method

Summary: This throws away D14498 and starts again. Basically, the grammar of PHP does not allow namespace statements to be parsed consistently (see some discussion in D14506). Instead of complicating the grammar, move the logic of determining a node's namespace to the PHP representation of the AST.

Test Plan: Added unit tests.

Reviewers: richardvanvelzen, Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: Korvin

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Nov 19 2015, 7:47 PM
Reviewer
Blessed Reviewers
Differential Revision
D14512: Add an `XHPAST::getNamespace()` method
Parents
rPHU12167cf6fb23: Improve test data format for XHPAST unit tests
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8937
Build 10485: Run Core Tests