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
F19083792: D13858.diff
Tue, Dec 2, 1:40 PM
F19083778: D13858.id33482.diff
Tue, Dec 2, 1:36 PM
F18855045: D13858.id33474.diff
Nov 1 2025, 2:28 AM
F18817131: D13858.id.diff
Oct 21 2025, 12:49 PM
F18804474: D13858.id33473.diff
Oct 18 2025, 8:42 AM
F18783894: D13858.id33482.diff
Oct 13 2025, 10:33 AM
F18761651: D13858.id33485.diff
Oct 6 2025, 3:33 PM
F18672363: D13858.diff
Sep 25 2025, 7:22 AM
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.