Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15385191
D8139.id18428.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
778 B
Referenced Files
None
Subscribers
None
D8139.id18428.diff
View Options
Index: src/parser/xhpast/api/XHPASTNode.php
===================================================================
--- src/parser/xhpast/api/XHPASTNode.php
+++ src/parser/xhpast/api/XHPASTNode.php
@@ -88,8 +88,20 @@
}
}
return $result;
+ case 'n_CONCATENATION_LIST':
+ $result = '';
+ foreach ($this->getChildren() as $child) {
+ if ($child->getTypeName() == 'n_OPERATOR') {
+ continue;
+ }
+ $result .= $child->evalStatic();
+ }
+ return $result;
default:
- throw new Exception("Unexpected node.");
+ throw new Exception(
+ pht(
+ 'Unexpected node during static evaluation, of type: %s',
+ $this->getTypeName()));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 9:56 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704052
Default Alt Text
D8139.id18428.diff (778 B)
Attached To
Mode
D8139: Allow PHPAST to evalStatic() an n_CONCATENATION_LIST of static nodes
Attached
Detach File
Event Timeline
Log In to Comment