Changeset 188219 in webkit for trunk/Source/JavaScriptCore/parser/ASTBuilder.h
- Timestamp:
- Aug 10, 2015, 1:24:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/ASTBuilder.h
r187890 r188219 110 110 #endif 111 111 typedef FunctionParameters* FormalParameterList; 112 typedef Function BodyNode* FunctionBody;112 typedef FunctionMetadataNode* FunctionBody; 113 113 #if ENABLE(ES6_CLASS_SYNTAX) 114 114 typedef ClassExprNode* ClassExpression; … … 337 337 { 338 338 if (rhs->isFuncExprNode()) 339 static_cast<FuncExprNode*>(rhs)-> body()->setInferredName(ident);339 static_cast<FuncExprNode*>(rhs)->metadata()->setInferredName(ident); 340 340 AssignResolveNode* node = new (m_parserArena) AssignResolveNode(location, ident, rhs, assignmentContext); 341 341 setExceptionLocation(node, start, divot, end); … … 359 359 } 360 360 361 Function BodyNode* createFunctionBody(361 FunctionMetadataNode* createFunctionMetadata( 362 362 const JSTokenLocation& startLocation, const JSTokenLocation& endLocation, 363 363 unsigned startColumn, unsigned endColumn, int functionKeywordStart, … … 365 365 ConstructorKind constructorKind, unsigned parameterCount, FunctionParseMode mode) 366 366 { 367 return new (m_parserArena) Function BodyNode(367 return new (m_parserArena) FunctionMetadataNode( 368 368 m_parserArena, startLocation, endLocation, startColumn, endColumn, 369 369 functionKeywordStart, functionNameStart, parametersStart, … … 409 409 { 410 410 if (node->isFuncExprNode()) 411 static_cast<FuncExprNode*>(node)-> body()->setInferredName(*propertyName);411 static_cast<FuncExprNode*>(node)->metadata()->setInferredName(*propertyName); 412 412 return new (m_parserArena) PropertyNode(*propertyName, node, type, putType, superBinding); 413 413 } … … 439 439 if (*functionInfo.name == m_vm->propertyNames->arguments) 440 440 usesArguments(); 441 m_scope.m_funcDeclarations.append(decl-> body());441 m_scope.m_funcDeclarations.append(decl->metadata()); 442 442 functionInfo.body->setLoc(functionInfo.startLine, functionInfo.endLine, location.startOffset, location.lineStartOffset); 443 443 return decl; … … 1212 1212 if (op == OpEqual) { 1213 1213 if (expr->isFuncExprNode()) 1214 static_cast<FuncExprNode*>(expr)-> body()->setInferredName(resolve->identifier());1214 static_cast<FuncExprNode*>(expr)->metadata()->setInferredName(resolve->identifier()); 1215 1215 AssignResolveNode* node = new (m_parserArena) AssignResolveNode(location, resolve->identifier(), expr, AssignmentContext::AssignmentExpression); 1216 1216 setExceptionLocation(node, start, divot, end); … … 1231 1231 if (op == OpEqual) { 1232 1232 if (expr->isFuncExprNode()) 1233 static_cast<FuncExprNode*>(expr)-> body()->setInferredName(dot->identifier());1233 static_cast<FuncExprNode*>(expr)->metadata()->setInferredName(dot->identifier()); 1234 1234 return new (m_parserArena) AssignDotNode(location, dot->base(), dot->identifier(), expr, exprHasAssignments, dot->divot(), start, end); 1235 1235 }
Note:
See TracChangeset
for help on using the changeset viewer.