Home GnuPG

Add an `XHPAST::getNamespace()` method
44113cfd0db1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
Joshua Spence <josh@freelancer.com>Authored on Nov 19 2015, 8:40 PM
Parents
rPHUTIL12167cf6fb23: Improve test data format for XHPAST unit tests
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@freelancer.com> committed rPHUTIL44113cfd0db1: Add an `XHPAST::getNamespace()` method (authored by Joshua Spence <josh@freelancer.com>).Nov 19 2015, 8:47 PM