Changeset 192661 in webkit for trunk/Source/JavaScriptCore/parser/Nodes.h
- Timestamp:
- Nov 19, 2015, 2:54:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Nodes.h
r192597 r192661 154 154 virtual bool isNumber() const { return false; } 155 155 virtual bool isString() const { return false; } 156 virtual bool isObjectLiteral() const { return false; } 157 virtual bool isArrayLiteral() const { return false; } 156 158 virtual bool isNull() const { return false; } 157 159 virtual bool isPure(BytecodeGenerator&) const { return false; } … … 593 595 ArrayNode(const JSTokenLocation&, int elision, ElementNode*); 594 596 597 virtual bool isArrayLiteral() const override { return true; } 598 595 599 ArgumentListNode* toArgumentList(ParserArena&, int, int) const; 596 600 … … 648 652 ObjectLiteralNode(const JSTokenLocation&); 649 653 ObjectLiteralNode(const JSTokenLocation&, PropertyListNode*); 654 virtual bool isObjectLiteral() const override { return true; } 650 655 651 656 private: … … 2049 2054 }; 2050 2055 2056 class AssignmentElementNode : public DestructuringPatternNode { 2057 public: 2058 AssignmentElementNode(ExpressionNode* assignmentTarget, const JSTextPosition& start, const JSTextPosition& end); 2059 const ExpressionNode* assignmentTarget() { return m_assignmentTarget; } 2060 2061 const JSTextPosition& divotStart() const { return m_divotStart; } 2062 const JSTextPosition& divotEnd() const { return m_divotEnd; } 2063 2064 private: 2065 virtual void collectBoundIdentifiers(Vector<Identifier>&) const override; 2066 virtual void bindValue(BytecodeGenerator&, RegisterID*) const override; 2067 virtual void toString(StringBuilder&) const override; 2068 2069 JSTextPosition m_divotStart; 2070 JSTextPosition m_divotEnd; 2071 ExpressionNode* m_assignmentTarget; 2072 }; 2073 2051 2074 class DestructuringAssignmentNode : public ExpressionNode { 2052 2075 public:
Note:
See TracChangeset
for help on using the changeset viewer.