/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | ETSparserNamespaces.cpp | 64 ir::Identifier *identNode = ParseClassIdent(modifiers); in ParseNamespaceDefinition() local 73 AllocNode<ir::NamespaceDefinition>(identNode, std::move(properties), ctor, flags, GetContext().GetLanguage()); in ParseNamespaceDefinition()
|
H A D | statementParser.cpp | 474 auto *identNode = AllocNode<ir::Identifier>(label, Allocator()); in ParseBreakStatement() local 475 identNode->SetReference(); in ParseBreakStatement() 476 identNode->SetRange(lexer_->GetToken().Loc()); in ParseBreakStatement() 478 auto *breakStatement = AllocNode<ir::BreakStatement>(identNode); in ParseBreakStatement() 528 auto *identNode = AllocNode<ir::Identifier>(label, Allocator()); in ParseContinueStatement() local 529 identNode->SetReference(); in ParseContinueStatement() 530 identNode->SetRange(lexer_->GetToken().Loc()); in ParseContinueStatement() 532 auto *continueStatement = AllocNode<ir::ContinueStatement>(identNode); in ParseContinueStatement() 609 auto *identNode = ExpectIdentifier(); in ParseFunctionDeclaration() local 614 func->SetIdent(identNode); in ParseFunctionDeclaration() 1025 auto *identNode = AllocNode<ir::Identifier>(actualLabel, Allocator()); ParseLabelledStatement() local [all...] |
H A D | expressionParser.cpp | 856 auto *identNode = AllocNode<ir::Identifier>(lexer_->GetToken().Ident(), Allocator()); in ParsePrimaryExpressionIdent() local 857 identNode->SetReference(); in ParsePrimaryExpressionIdent() 858 identNode->SetRange(lexer_->GetToken().Loc()); in ParsePrimaryExpressionIdent() 861 return identNode; in ParsePrimaryExpressionIdent() 1450 auto *identNode = AllocNode<ir::Identifier>(lexer_->GetToken().Ident(), Allocator()); in ParseOptionalChain() local 1451 identNode->SetReference(); in ParseOptionalChain() 1452 identNode->SetPrivate(isPrivate); in ParseOptionalChain() 1453 identNode->SetRange(lexer_->GetToken().Loc()); in ParseOptionalChain() 1455 returnExpression = AllocNode<ir::MemberExpression>(leftSideExpr, identNode, in ParseOptionalChain() 1457 returnExpression->SetRange({leftSideExpr->Start(), identNode in ParseOptionalChain() [all...] |
H A D | TSparser.cpp | 151 auto *identNode = AllocNode<ir::Identifier>(Lexer()->GetToken().Ident(), Allocator()); in ParseDecorator() local 152 identNode->SetRange(Lexer()->GetToken().Loc()); in ParseDecorator() 155 AllocNode<ir::MemberExpression>(expr, identNode, ir::MemberExpressionKind::PROPERTY_ACCESS, false, false); in ParseDecorator() 1467 auto *identNode = AllocNode<ir::Identifier>(Lexer()->GetToken().Ident(), Allocator()); in ParsePrimaryExpressionIdent() local 1468 identNode->SetReference(); in ParsePrimaryExpressionIdent() 1469 identNode->SetRange(Lexer()->GetToken().Loc()); in ParsePrimaryExpressionIdent() 1473 ParsePotentialOptionalFunctionParameter(identNode); in ParsePrimaryExpressionIdent() 1475 return identNode; in ParsePrimaryExpressionIdent()
|
H A D | ETSparser.cpp | 1872 ir::Identifier *identNode = nullptr; in ParseFunctionDeclaration() local 1879 identNode = ExpectIdentifier(); in ParseFunctionDeclaration() 1881 identNode = ExpectIdentifier(); in ParseFunctionDeclaration() 1886 if (identNode != nullptr) { in ParseFunctionDeclaration() 1887 CheckRestrictedBinding(identNode->Name(), identNode->Start()); in ParseFunctionDeclaration() 1891 if (identNode != nullptr) { // Error processing. in ParseFunctionDeclaration() 1892 func->SetIdent(identNode); in ParseFunctionDeclaration()
|
H A D | ASparser.cpp | 848 auto *identNode = AllocNode<ir::Identifier>(Lexer()->GetToken().Ident(), Allocator()); in ParsePrimaryExpressionIdent() local 849 identNode->SetReference(); in ParsePrimaryExpressionIdent() 850 identNode->SetRange(Lexer()->GetToken().Loc()); in ParsePrimaryExpressionIdent() 854 ParsePotentialOptionalFunctionParameter(identNode); in ParsePrimaryExpressionIdent() 856 return identNode; in ParsePrimaryExpressionIdent()
|
H A D | TypedParser.cpp | 282 auto *identNode = AllocNode<ir::Identifier>(Lexer()->GetToken().Ident(), Allocator()); in ParseModuleOrNamespaceDeclaration() local 283 identNode->SetRange(Lexer()->GetToken().Loc()); in ParseModuleOrNamespaceDeclaration() 298 Allocator(), identNode, body, ir::TSModuleDeclaration::ConstructorFlags {InAmbientContext(), false, false}); in ParseModuleOrNamespaceDeclaration() 897 ir::Identifier *identNode = ParseClassIdent(modifiers); in ParseClassDefinition() local 931 privateBinding.View(), identNode, typeParamDecl, superTypeParams, std::move(implements), ctor, superClass, in ParseClassDefinition()
|
H A D | ETSparserClasses.cpp | 703 ir::Identifier *identNode = ParseClassIdent(modifiers); in ParseClassDefinition() local 704 if (identNode == nullptr && Lexer()->GetToken().Type() != lexer::TokenType::PUNCTUATOR_LEFT_BRACE) { in ParseClassDefinition() 750 util::StringView(), identNode, typeParamDecl, superTypeParams, std::move(implements), ctor, superClass, in ParseClassDefinition()
|
H A D | parserImpl.cpp | 746 ir::Identifier *identNode = ParseClassIdent(modifiers); in ParseClassDefinition() local 748 if (identNode == nullptr && (modifiers & ir::ClassDefinitionModifiers::DECLARATION) != 0U) { in ParseClassDefinition() 767 privateBinding.View(), identNode, nullptr, superTypeParams, std::move(implements), ctor, superClass, in ParseClassDefinition()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | scopesInitPhase.cpp | 401 const auto identNode = classDef->Ident(); in BindClassName() local 402 if (identNode == nullptr) { in BindClassName() 406 auto identDecl = AddOrGetDecl<varbinder::ConstDecl>(VarBinder(), identNode->Name(), classDef, identNode->Start(), in BindClassName() 407 identNode->Name()); in BindClassName() 664 const auto identNode = func->Id(); in CreateFuncDecl() local 665 const auto startLoc = identNode->Start(); in CreateFuncDecl() 667 auto res = bindings.find(identNode->Name()); in CreateFuncDecl() 671 decl = VarBinder()->AddDecl<varbinder::FunctionDecl>(startLoc, Allocator(), identNode->Name(), func); in CreateFuncDecl()
|
H A D | scopesInitPhase.h | 330 varbinder::Decl *BindClassName([[maybe_unused]] ir::ClassDefinition *identNode) override
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | statementParser.cpp | 432 auto *identNode = AllocNode<ir::Identifier>(name); in ParseTsModuleOrNamespaceDelaration() local 433 identNode->SetRange(lexer_->GetToken().Loc()); in ParseTsModuleOrNamespaceDelaration() 453 auto *moduleDecl = AllocNode<ir::TSModuleDeclaration>(localCtx.GetScope(), identNode, body, in ParseTsModuleOrNamespaceDelaration() 1057 auto *identNode = AllocNode<ir::Identifier>(label); in ParseBreakStatement() local 1058 identNode->SetRange(lexer_->GetToken().Loc()); in ParseBreakStatement() 1060 auto *breakStatement = AllocNode<ir::BreakStatement>(identNode); in ParseBreakStatement() 1118 auto *identNode = AllocNode<ir::Identifier>(label); in ParseContinueStatement() local 1119 identNode->SetRange(lexer_->GetToken().Loc()); in ParseContinueStatement() 1121 auto *continueStatement = AllocNode<ir::ContinueStatement>(identNode); in ParseContinueStatement() 1223 auto *identNode in ParseFunctionDeclaration() local 1253 const ir::Identifier *identNode = func->Id(); AddFunctionToBinder() local 1686 auto *identNode = AllocNode<ir::Identifier>(actualLabel); ParseLabelledStatement() local [all...] |
H A D | expressionParser.cpp | 1032 auto *identNode = AllocNode<ir::Identifier>(lexer_->GetToken().Ident()); in ParsePrimaryExpression() local 1033 identNode->SetReference(); in ParsePrimaryExpression() 1034 identNode->SetRange(lexer_->GetToken().Loc()); in ParsePrimaryExpression() 1041 ParsePotentialTsFunctionParameter(ExpressionParseFlags::NO_OPTS, identNode); in ParsePrimaryExpression() 1044 return identNode; in ParsePrimaryExpression() 1683 auto *identNode = AllocNode<ir::Identifier>(lexer_->GetToken().Ident()); in ParsePostPrimaryExpression() local 1684 identNode->SetRange(lexer_->GetToken().Loc()); in ParsePostPrimaryExpression() 1688 property = AllocNode<ir::TSPrivateIdentifier>(identNode, nullptr, nullptr); in ParsePostPrimaryExpression() 1689 property->SetRange({memberStart, identNode->End()}); in ParsePostPrimaryExpression() 1691 property = identNode; in ParsePostPrimaryExpression() [all...] |
H A D | parserImpl.cpp | 3142 auto *identNode = AllocNode<ir::Identifier>(identStr); in SetIdentNodeInClassDefinition() local 3143 identNode->SetRange(lexer_->GetToken().Loc()); in SetIdentNodeInClassDefinition() 3147 return identNode; in SetIdentNodeInClassDefinition() 3158 ir::Identifier *identNode = nullptr; in ParseClassDefinition() local 3165 identNode = SetIdentNodeInClassDefinition(isDeclare, &decl); in ParseClassDefinition() 3263 classCtx.GetScope(), identNode, typeParamDecl, superTypeParams, std::move(implements), ctor, staticInitializer, in ParseClassDefinition()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | function.cpp | 1693 const auto *const identNode = node->AsIdentifier(); in CheckCapturedVariable() local 1695 const auto *resolved = identNode->Variable(); in CheckCapturedVariable() 1699 FindVariableInFunctionScope(identNode->Name(), varbinder::ResolveBindingOptions::ALL_NON_TYPE); in CheckCapturedVariable() 1703 resolved = FindVariableInGlobal(identNode, varbinder::ResolveBindingOptions::ALL_NON_TYPE); in CheckCapturedVariable()
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
H A D | transformer.cpp | 969 auto *identNode = AllocNode<ir::Identifier>(propName); in AddGeneratedMethodToClass() local 970 auto *returnExpr = AllocNode<ir::MemberExpression>(AllocNode<ir::ThisExpression>(), identNode, in AddGeneratedMethodToClass() 980 auto *identNode = AllocNode<ir::Identifier>(paramName); in AddGeneratedMethodToClass() local 981 params.push_back(identNode); in AddGeneratedMethodToClass()
|