Page MenuHomePhabricator

Minor tidying of parser_nodes script
ClosedPublic

Authored by joshuaspence on Aug 26 2015, 8:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 28, 2:17 AM
Unknown Object (File)
Wed, May 28, 2:17 AM
Unknown Object (File)
Wed, May 28, 2:16 AM
Unknown Object (File)
Sun, May 25, 6:26 AM
Unknown Object (File)
Tue, May 20, 9:15 PM
Unknown Object (File)
May 15 2025, 1:31 AM
Unknown Object (File)
May 6 2025, 3:18 AM
Unknown Object (File)
May 3 2025, 6:24 AM
Subscribers

Details

Summary

Various minor improvements to parser_nodes.php, including:

  • Use libphutil functions instead of vanilla PHP.
  • phtize strings.
  • Use an array instead of a heredoc for representing the nodes.
Test Plan

Ran the script and compared ouptut.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7814
Build 8660: [Placeholder Plan] Wait for 30 Seconds
Build 8659: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Minor tidying of parser_nodes script.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Seems basically fine but WIP.

This revision now requires changes to proceed.Aug 27 2015, 11:22 AM
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence edited edge metadata.
joshuaspence added inline comments.
support/xhpast/generate_nodes.php
1

This is wrong.

joshuaspence edited edge metadata.

It's good to go.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 27 2015, 2:50 PM
This revision was automatically updated to reflect the committed changes.