Home GnuPG

Improve parsing of `use` statements
e8eaafe04d64Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Improve parsing of use statements

Summary:
The way that we parse use statements at the moment is a bit odd. For example, consider the following example:

<?php

use A\B\C;
use X\Y\Z;

This is currently parsed as:

{F976619, size=full}

After this change, it is instead parsed as:

{F976621, size=full}

Test Plan: Added a test case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

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

Details

Provenance
Joshua Spence <josh@freelancer.com>Authored on Nov 19 2015, 8:47 PM
Parents
rPHUTIL44113cfd0db1: Add an `XHPAST::getNamespace()` method
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@freelancer.com> committed rPHUTILe8eaafe04d64: Improve parsing of `use` statements (authored by Joshua Spence <josh@freelancer.com>).Nov 19 2015, 8:48 PM