Page MenuHomePhabricator

Include parentheses in n_ARRAY_VALUE_LIST node
ClosedPublic

Authored by joshuaspence on Aug 11 2015, 10:54 AM.
Tags
None
Referenced Files
F14705164: D13858.id33482.diff
Thu, Jan 16, 10:30 AM
Unknown Object (File)
Sun, Jan 12, 11:46 PM
Unknown Object (File)
Sun, Jan 12, 12:27 AM
Unknown Object (File)
Wed, Jan 1, 1:24 AM
Unknown Object (File)
Sun, Dec 29, 4:48 AM
Unknown Object (File)
Sun, Dec 29, 4:14 AM
Unknown Object (File)
Sat, Dec 28, 4:38 PM
Unknown Object (File)
Sat, Dec 28, 2:46 PM
Subscribers

Details

Summary

Currently parsing array(1, 2, 3) results in a n_ARRAY_VALUE_LIST with a concrete string of 1, 2, 3. Compare this to list($x, $y) which results in a n_ASSIGNMENT_LIST with a concrete string of ($x, $y).

Test Plan

See next diff.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Include parentheses in n_ARRAY_VALUE_LIST node.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.

Fix for list($i, list($j, $k)) = y()

epriestley edited edge metadata.

Also bump version?

This revision is now accepted and ready to land.Aug 11 2015, 12:28 PM
This revision was automatically updated to reflect the committed changes.