Changeset 192661 in webkit for trunk/Source/JavaScriptCore/parser/ASTBuilder.h
- Timestamp:
- Nov 19, 2015, 2:54:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/ASTBuilder.h
r192597 r192661 122 122 typedef ObjectPatternNode* ObjectPattern; 123 123 typedef BindingNode* BindingPattern; 124 typedef AssignmentElementNode* AssignmentElement; 124 125 static const bool CreatesAST = true; 125 126 static const bool NeedsFreeVariableInfo = true; … … 525 526 } 526 527 528 bool isAssignmentLocation(const Expression& pattern) 529 { 530 return pattern->isAssignmentLocation(); 531 } 532 533 bool isObjectLiteral(const Expression& node) 534 { 535 return node->isObjectLiteral(); 536 } 537 538 bool isArrayLiteral(const Expression& node) 539 { 540 return node->isArrayLiteral(); 541 } 542 543 bool isObjectOrArrayLiteral(const Expression& node) 544 { 545 return isObjectLiteral(node) || isArrayLiteral(node); 546 } 547 527 548 StatementNode* createEmptyStatement(const JSTokenLocation& location) { return new (m_parserArena) EmptyStatementNode(location); } 528 549 … … 835 856 { 836 857 return new (m_parserArena) BindingNode(boundProperty, start, end, context); 858 } 859 860 AssignmentElement createAssignmentElement(const Expression& assignmentTarget, const JSTextPosition& start, const JSTextPosition& end) 861 { 862 return new (m_parserArena) AssignmentElementNode(assignmentTarget, start, end); 837 863 } 838 864
Note:
See TracChangeset
for help on using the changeset viewer.