Changeset 179371 in webkit for trunk/Source/JavaScriptCore/parser/ASTBuilder.h
- Timestamp:
- Jan 29, 2015, 2:59:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/ASTBuilder.h
r178888 r179371 105 105 typedef ParameterNode* FormalParameterList; 106 106 typedef FunctionBodyNode* FunctionBody; 107 #if ENABLE(ES6_CLASS_SYNTAX) 108 typedef ClassExprNode* ClassExpression; 109 #endif 107 110 typedef StatementNode* Statement; 108 111 typedef ClauseListNode* ClauseList; … … 274 277 } 275 278 279 #if ENABLE(ES6_CLASS_SYNTAX) 280 ClassExprNode* createClassExpr(const JSTokenLocation& location, const Identifier& name, ExpressionNode* constructor, 281 ExpressionNode* parentClass, PropertyListNode* instanceMethods, PropertyListNode* staticMethods) 282 { 283 return new (m_parserArena) ClassExprNode(location, name, constructor, parentClass, instanceMethods, staticMethods); 284 } 285 #endif 286 276 287 ExpressionNode* createFunctionExpr(const JSTokenLocation& location, const ParserFunctionInfo<ASTBuilder>& info, unsigned functionKeywordStart) 277 288 { … … 353 364 return decl; 354 365 } 366 367 #if ENABLE(ES6_CLASS_SYNTAX) 368 StatementNode* createClassDeclStatement(const JSTokenLocation& location, ClassExprNode* classExpression, 369 const JSTextPosition& classStart, const JSTextPosition& classEnd, unsigned startLine, unsigned endLine) 370 { 371 // FIXME: Use "let" declaration. 372 ExpressionNode* assign = createAssignResolve(location, classExpression->name(), classExpression, classStart, classStart + 1, classEnd); 373 ClassDeclNode* decl = new (m_parserArena) ClassDeclNode(location, assign); 374 decl->setLoc(startLine, endLine, location.startOffset, location.lineStartOffset); 375 return decl; 376 } 377 #endif 355 378 356 379 StatementNode* createBlockStatement(const JSTokenLocation& location, JSC::SourceElements* elements, int startLine, int endLine)
Note:
See TracChangeset
for help on using the changeset viewer.