Page MenuHomePhabricator

Fix improper XHPAST parsing of namespace grammar like "use x as private;"
ClosedPublic

Authored by epriestley on Apr 7 2020, 9:24 PM.
Tags
None
Referenced Files
F15409491: D21068.id50193.diff
Wed, Mar 19, 4:36 AM
F15396104: D21068.diff
Sun, Mar 16, 11:53 AM
F15386306: D21068.diff
Sat, Mar 15, 12:20 AM
F15385799: D21068.id.diff
Fri, Mar 14, 11:26 PM
F15367313: D21068.id50193.diff
Tue, Mar 11, 5:10 PM
F15333376: D21068.id50193.diff
Sat, Mar 8, 2:04 AM
Unknown Object (File)
Thu, Feb 27, 10:16 PM
Unknown Object (File)
Mon, Feb 24, 8:39 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 7 2020, 9:35 PM
This revision was automatically updated to reflect the committed changes.