forked from phacility/arcanist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix improper XHPAST parsing of namespace grammar like "use x as priva…
…te;" Summary: Depends on D21067. Ref T13492. Converting unit tests to be readable exposed this error in the grammar. Normally, "grammar_rule" rules emit a standalone Node. In this case, the bottom-level grammar rule is a collection of trivial rules and the callers configure the Node. Wrap the bottom-level rule in a configuration rule so the node is configured correctly and consistently, in exactly one place. Test Plan: Ran unit tests. Maniphest Tasks: T13492 Differential Revision: https://secure.phabricator.com/D21068
- Loading branch information
epriestley
committed
Apr 7, 2020
1 parent
e03431d
commit a1ee2ab
Showing
4 changed files
with
1,604 additions
and
1,597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,7 +205,7 @@ pass | |
> " " | ||
> as | ||
> " " | ||
* "<INVALID TYPE \"0\">" | ||
* n_STRING | ||
> protected | ||
* n_EMPTY | ||
> " " | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.