/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | expressionTSParser.cpp | 410 ir::TSTypeParameterDeclaration *typeParamDecl, in CreateCallExpression() 424 parser->ParseArrowFunctionExpression(callExpression, typeParamDecl, returnTypeAnnotation, true); in CreateCallExpression() 430 if (returnTypeAnnotation != nullptr || typeParamDecl != nullptr) { in CreateCallExpression() 442 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParsePotentialArrowExpression() local 473 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParsePotentialArrowExpression() 474 if (typeParamDecl == nullptr) { in ParsePotentialArrowExpression() 487 typeParamDecl, startLoc); in ParsePotentialArrowExpression() 408 CreateCallExpression(TSParser *parser, lexer::Lexer *lexer, ir::Expression **returnExpression, ir::TSTypeParameterDeclaration *typeParamDecl, const lexer::SourcePosition &startLoc) CreateCallExpression() argument
|
H A D | TypedParser.cpp | 207 ir::TSTypeParameterDeclaration *typeParamDecl = ParseTypeParameterDeclaration(&typeParamDeclOptions); in ParseGenericArrowFunction() local 235 return ParseArrowFunctionExpressionBody(&arrowFunctionContext, &desc, typeParamDecl, returnTypeAnnotation); in ParseGenericArrowFunction() 451 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseInterfaceDeclaration() local 454 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseInterfaceDeclaration() 471 ir::TSInterfaceDeclaration::ConstructorData {id, typeParamDecl, body, isStatic, isExternal, in ParseInterfaceDeclaration() 767 ir::AstNode *typeParamDecl; in ParseTypeParameterDeclaration() local 771 typeParamDecl = ParseTypeParametersFormatPlaceholder(); in ParseTypeParameterDeclaration() 773 typeParamDecl = ParseTypeParameterDeclarationImpl(options); in ParseTypeParameterDeclaration() 786 if (typeParamDecl != nullptr) { in ParseTypeParameterDeclaration() 787 typeParamDecl in ParseTypeParameterDeclaration() 899 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; ParseClassDefinition() local [all...] |
H A D | TSparser.cpp | 205 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseTypeAliasDeclaration() local 208 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseTypeAliasDeclaration() 221 AllocNode<ir::TSTypeAliasDeclaration>(Allocator(), id, typeParamDecl, typeAnnotation, InAmbientContext()); in ParseTypeAliasDeclaration() 1211 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseFunctionType() local 1214 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseFunctionType() 1239 ir::FunctionSignature signature(typeParamDecl, std::move(params), returnTypeAnnotation); in ParseFunctionType() 1486 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseSignatureMember() local 1489 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseSignatureMember() 1510 kind, ir::FunctionSignature(typeParamDecl, std::move(params), typeAnnotation)); in ParseSignatureMember() 1674 ir::TSTypeParameterDeclaration *typeParamDecl in ParsePropertyOrMethodSignature() local [all...] |
H A D | ETSparserClasses.cpp | 645 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseInterfaceBody() local 649 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseInterfaceBody() 676 ir::TSInterfaceDeclaration::ConstructorData {name, typeParamDecl, body, isStatic, isExternal, in ParseInterfaceBody() 708 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseClassDefinition() local 712 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseClassDefinition() 750 util::StringView(), identNode, typeParamDecl, superTypeParams, std::move(implements), ctor, superClass, in ParseClassDefinition()
|
H A D | ASparser.cpp | 131 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseTypeAliasDeclaration() local 134 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParseTypeAliasDeclaration() 151 AllocNode<ir::TSTypeAliasDeclaration>(Allocator(), id, typeParamDecl, typeAnnotation, InAmbientContext()); in ParseTypeAliasDeclaration() 1032 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParsePropertyOrMethodSignature() local 1036 typeParamDecl = ParseTypeParameterDeclaration(&options); in ParsePropertyOrMethodSignature() 1051 auto signature = ir::FunctionSignature(typeParamDecl, std::move(params), returnType); in ParsePropertyOrMethodSignature()
|
H A D | parserImpl.h | 215 ir::TSTypeParameterDeclaration *typeParamDecl, 226 ir::TSTypeParameterDeclaration *typeParamDecl,
|
H A D | expressionParser.cpp | 300 ir::TSTypeParameterDeclaration *typeParamDecl, in ParseArrowFunctionExpressionBody() 334 ir::FunctionSignature(typeParamDecl, std::move(desc->params), returnTypeAnnotation), in ParseArrowFunctionExpressionBody() 409 ir::TSTypeParameterDeclaration *typeParamDecl, in ParseArrowFunctionExpression() 424 return ParseArrowFunctionExpressionBody(&arrowFunctionContext, &desc, typeParamDecl, returnTypeAnnotation); in ParseArrowFunctionExpression() 298 ParseArrowFunctionExpressionBody(ArrowFunctionContext *arrowFunctionContext, ArrowFunctionDescriptor *desc, ir::TSTypeParameterDeclaration *typeParamDecl, ir::TypeNode *returnTypeAnnotation) ParseArrowFunctionExpressionBody() argument 408 ParseArrowFunctionExpression(ir::Expression *expr, ir::TSTypeParameterDeclaration *typeParamDecl, ir::TypeNode *returnTypeAnnotation, bool isAsync) ParseArrowFunctionExpression() argument
|
H A D | parserImpl.cpp | 901 ir::TSTypeParameterDeclaration *typeParamDecl = ParseFunctionTypeParameters(); in ParseFunctionSignature() local 926 auto res = ir::FunctionSignature(typeParamDecl, std::move(params), returnTypeAnnotation); in ParseFunctionSignature()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | parserImpl.cpp | 1517 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseTsTypeLiteralOrInterfaceMember() local 1523 typeParamDecl = ParseTsTypeParameterDeclaration(); in ParseTsTypeLiteralOrInterfaceMember() 1558 member = AllocNode<ir::TSSignatureDeclaration>(funcParamScope, kind, typeParamDecl, std::move(params), in ParseTsTypeLiteralOrInterfaceMember() 1562 member = AllocNode<ir::TSMethodSignature>(funcParamScope, key, typeParamDecl, std::move(params), in ParseTsTypeLiteralOrInterfaceMember() 1921 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseTsFunctionType() local 1923 typeParamDecl = ParseTsTypeParameterDeclaration(throwError); in ParseTsFunctionType() 1967 funcType = AllocNode<ir::TSConstructorType>(funcParamScope, std::move(params), typeParamDecl, in ParseTsFunctionType() 1971 AllocNode<ir::TSFunctionType>(funcParamScope, std::move(params), typeParamDecl, returnTypeAnnotation); in ParseTsFunctionType() 3170 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseClassDefinition() local 3172 typeParamDecl in ParseClassDefinition() 3936 auto *typeParamDecl = ParseTsTypeParameterDeclaration() local 4013 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; ParseFunction() local [all...] |
H A D | expressionParser.cpp | 379 ir::TSTypeParameterDeclaration *typeParamDecl, in ParseArrowFunctionExpressionBody() 412 funcNode = AllocNode<ir::ScriptFunction>(functionScope, std::move(desc->params), typeParamDecl, body, in ParseArrowFunctionExpressionBody() 483 ir::TSTypeParameterDeclaration *typeParamDecl, in ParseArrowFunctionExpression() 501 return ParseArrowFunctionExpressionBody(&arrowFunctionContext, functionCtx.GetScope(), &desc, typeParamDecl, in ParseArrowFunctionExpression() 512 ir::TSTypeParameterDeclaration *typeParamDecl = ParseTsTypeParameterDeclaration(false); in ParseTsGenericArrowFunction() local 514 if (typeParamDecl == nullptr || lexer_->GetToken().Type() != lexer::TokenType::PUNCTUATOR_LEFT_PARENTHESIS) { in ParseTsGenericArrowFunction() 543 return ParseArrowFunctionExpressionBody(&arrowFunctionContext, functionCtx.GetScope(), &desc, typeParamDecl, in ParseTsGenericArrowFunction() 1468 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParsePotentialArrowExpression() local 1509 typeParamDecl = ParseTsTypeParameterDeclaration(false); in ParsePotentialArrowExpression() 1510 if (!typeParamDecl) { in ParsePotentialArrowExpression() 376 ParseArrowFunctionExpressionBody(ArrowFunctionContext *arrowFunctionContext, binder::FunctionScope *functionScope, ArrowFunctionDescriptor *desc, ir::TSTypeParameterDeclaration *typeParamDecl, ir::Expression *returnTypeAnnotation) ParseArrowFunctionExpressionBody() argument 482 ParseArrowFunctionExpression(ir::Expression *expr, ir::TSTypeParameterDeclaration *typeParamDecl, ir::Expression *returnTypeAnnotation, bool isAsync) ParseArrowFunctionExpression() argument [all...] |
H A D | parserImpl.h | 403 ir::TSTypeParameterDeclaration *typeParamDecl, 406 ir::TSTypeParameterDeclaration *typeParamDecl,
|
H A D | statementParser.cpp | 756 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseTsTypeAliasDeclaration() local 758 typeParamDecl = ParseTsTypeParameterDeclaration(true, true); in ParseTsTypeAliasDeclaration() 770 auto *typeAliasDecl = AllocNode<ir::TSTypeAliasDeclaration>(id, typeParamDecl, typeAnnotation, isDeclare); in ParseTsTypeAliasDeclaration() 810 ir::TSTypeParameterDeclaration *typeParamDecl = nullptr; in ParseTsInterfaceDeclaration() local 812 typeParamDecl = ParseTsTypeParameterDeclaration(true, true); in ParseTsInterfaceDeclaration() 824 AllocNode<ir::TSInterfaceDeclaration>(localScope.GetScope(), id, typeParamDecl, body, std::move(extends)); in ParseTsInterfaceDeclaration()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | defaultParameterLowering.cpp | 98 ir::TSTypeParameterDeclaration *typeParamDecl = CreateParameterDeclaraion(method, ctx); in CreateFunctionSignature() local 104 return ir::FunctionSignature(typeParamDecl, std::move(funcParam), returnTypeAnnotation); in CreateFunctionSignature()
|