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
F18100953: D21068.id.diff
Sat, Aug 9, 12:12 PM
F18087470: D21068.id50187.diff
Wed, Aug 6, 4:08 AM
F18081913: D21068.id50193.diff
Tue, Aug 5, 3:03 AM
F17860711: D21068.id.diff
Jul 27 2025, 10:04 PM
F17826420: D21068.diff
Jul 26 2025, 7:16 AM
F17788717: D21068.id.diff
Jul 24 2025, 6:13 PM
F17756591: D21068.diff
Jul 22 2025, 2:25 PM
Unknown Object (File)
Jul 5 2025, 3:17 PM
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.