Home
last modified time | relevance | path

Searched refs:callExpr (Results 1 - 25 of 27) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DenumPostCheckLowering.cpp70 auto *callExpr = CreateCall(ctx->checker->AsETSChecker(), enumIf->GetDecl()->BoxedClass(), in Perform()
72 callExpr->SetParent(parent); in Perform()
73 callExpr->Check(ctx->checker->AsETSChecker()); in Perform()
75 return callExpr; in Perform()
82 auto *callExpr = CreateCall(ctx->checker->AsETSChecker(), enumIf->GetDecl()->BoxedClass(), in Perform()
85 callExpr->SetParent(node->Parent()); in Perform()
86 callExpr->Check(ctx->checker->AsETSChecker()); in Perform()
88 return callExpr; in Perform()
H A DlambdaLowering.cpp954 auto *callExpr = util::NodeAllocator::ForceSetParent<ir::CallExpression>(allocator, funcRef, std::move(callArgs), in CreateWrappingLambda() local
958 stmt = util::NodeAllocator::ForceSetParent<ir::ExpressionStatement>(allocator, callExpr); in CreateWrappingLambda()
960 stmt = util::NodeAllocator::ForceSetParent<ir::ReturnStatement>(allocator, callExpr); in CreateWrappingLambda()
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DimportExportAccessValid.cpp48 const auto *callExpr = ast->AsCallExpression(); in operator ()() local
49 const auto *callee = callExpr->Callee(); in operator ()()
51 !HandleImportExportIdentifier(importedVariables, callee->AsIdentifier(), callExpr)) { in operator ()()
78 const ir::AstNode *callExpr, util::StringView name) in InvariantImportExportMethod()
80 auto *signature = callExpr->AsCallExpression()->Signature(); in InvariantImportExportMethod()
83 ASSERT(callExpr->AsCallExpression()->Callee()->TsType()->HasTypeFlag(checker::TypeFlag::ETS_DYNAMIC_FLAG)); in InvariantImportExportMethod()
125 const ir::Identifier *ident, const ir::AstNode *callExpr) in HandleImportExportIdentifier()
130 if (var->HasFlag(varbinder::VariableFlags::METHOD) && callExpr != nullptr) { in HandleImportExportIdentifier()
131 return InvariantImportExportMethod(importedVariables, var, callExpr, ident->Name()); in HandleImportExportIdentifier()
76 InvariantImportExportMethod(const std::unordered_set<std::string> &importedVariables, const varbinder::Variable *varCallee, const ir::AstNode *callExpr, util::StringView name) InvariantImportExportMethod() argument
124 HandleImportExportIdentifier(std::unordered_set<std::string> &importedVariables, const ir::Identifier *ident, const ir::AstNode *callExpr) HandleImportExportIdentifier() argument
H A DimportExportAccessValid.h31 const varbinder::Variable *varCallee, const ir::AstNode *callExpr,
37 const ir::AstNode *callExpr);
H A DmodifierAccessValid.cpp54 const auto *callExpr = ast->AsCallExpression(); in HandleCallExpression() local
55 const auto *callee = callExpr->Callee(); in HandleCallExpression()
/arkcompiler/ets_frontend/es2panda/compiler/base/
H A DoptionalChain.cpp75 auto callExpr = iter->AsCallExpression(); in InitThisVRegForCallExpression() local
76 if (callExpr->HasThisVReg()) { in InitThisVRegForCallExpression()
77 pg_->StoreAccumulator(node_, callExpr->GetThisVReg()); in InitThisVRegForCallExpression()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dfunction.cpp481 void ETSChecker::MaybeSubstituteLambdaArgumentsInFunctionCall(ir::CallExpression *callExpr) in MaybeSubstituteLambdaArgumentsInFunctionCall() argument
483 ir::AstNode *expr = callExpr; in MaybeSubstituteLambdaArgumentsInFunctionCall()
494 callExpr->Callee()->IsIdentifier() && ident->Name() == callExpr->Callee()->AsIdentifier()->Name() && in MaybeSubstituteLambdaArgumentsInFunctionCall()
498 ident->AsAnnotatedExpression()->TypeAnnotation()->AsETSFunctionType()->Params(), callExpr); in MaybeSubstituteLambdaArgumentsInFunctionCall()
504 void ETSChecker::MaybeSubstituteLambdaArgumentsInFunctionCallHelper(ir::CallExpression *callExpr, ir::Identifier *ident) in MaybeSubstituteLambdaArgumentsInFunctionCallHelper() argument
529 MaybeSubstituteLambdaArguments(funcType->AsETSFunctionType()->Params(), callExpr); in MaybeSubstituteLambdaArgumentsInFunctionCallHelper()
533 ir::CallExpression *callExpr) in MaybeSubstituteLambdaArguments()
536 if (params[i]->AsETSParameterExpression()->IsDefault() && callExpr->Arguments().size() <= i && in MaybeSubstituteLambdaArguments()
538 callExpr in MaybeSubstituteLambdaArguments()
532 MaybeSubstituteLambdaArguments(const ArenaVector<ir::Expression *> &params, ir::CallExpression *callExpr) MaybeSubstituteLambdaArguments() argument
941 ResolveCallExpressionAndTrailingLambda(ArenaVector<Signature *> &signatures, ir::CallExpression *callExpr, const lexer::SourcePosition &pos, const TypeRelationFlag reportFlag) ResolveCallExpressionAndTrailingLambda() argument
1639 ValidateSignatureAccessibility(ETSObjectType *callee, const ir::CallExpression *callExpr, Signature *signature, const lexer::SourcePosition &pos, char const *errorMessage) ValidateSignatureAccessibility() argument
2001 MoveTrailingBlockToEnclosingBlockStatement(ir::CallExpression *callExpr) MoveTrailingBlockToEnclosingBlockStatement() argument
2023 TransformTraillingLambda(ir::CallExpression *callExpr) TransformTraillingLambda() argument
2066 ExtendArgumentsWithFakeLamda(ir::CallExpression *callExpr) ExtendArgumentsWithFakeLamda() argument
2091 EnsureValidCurlyBrace(ir::CallExpression *callExpr) EnsureValidCurlyBrace() argument
[all...]
H A DaliveAnalyzer.cpp371 void AliveAnalyzer::AnalyzeCall(const ir::CallExpression *callExpr) in AnalyzeCall() argument
373 AnalyzeNode(callExpr->Callee()); in AnalyzeCall()
374 for (const auto *it : callExpr->Arguments()) { in AnalyzeCall()
377 if (callExpr->Signature()->ReturnType() == checker_->GetGlobalTypesHolder()->GlobalBuiltinNeverType()) { in AnalyzeCall()
H A DaliveAnalyzer.h76 void AnalyzeCall(const ir::CallExpression *callExpr);
H A DassignAnalyzer.h131 void AnalyzeCallExpr(const ir::CallExpression *callExpr);
H A DassignAnalyzer.cpp1139 void AssignAnalyzer::AnalyzeCallExpr(const ir::CallExpression *callExpr) in AnalyzeCallExpr() argument
1141 AnalyzeExpr(callExpr->Callee()); in AnalyzeCallExpr()
1142 AnalyzeExprs(callExpr->Arguments()); in AnalyzeCallExpr()
H A Dhelpers.cpp2619 auto *callExpr = ident->Parent()->AsCallExpression(); in TryTransformingToStaticInvoke() local
2620 transformedCallee->SetParent(callExpr); in TryTransformingToStaticInvoke()
2621 callExpr->SetCallee(transformedCallee); in TryTransformingToStaticInvoke()
2627 argExpr->SetParent(callExpr); in TryTransformingToStaticInvoke()
2632 auto &arguments = callExpr->Arguments(); in TryTransformingToStaticInvoke()
H A Dobject.cpp1732 auto callExpr = memberExpr->Parent()->IsCallExpression() ? memberExpr->Parent()->AsCallExpression() : nullptr;
1739 ValidateSignatureAccessibility(memberExpr->ObjType(), callExpr, propType->FindGetter(), sourcePos);
1744 ValidateSignatureAccessibility(memberExpr->ObjType(), callExpr, propType->FindSetter(), sourcePos);
/arkcompiler/ets_frontend/es2panda/parser/
H A Dcommonjs.cpp107 auto *callExpr = AllocNode<ir::CallExpression>(reflectApply, std::move(arguments), nullptr, false); in ParseCommonjs() local
109 auto *exprStatementNode = AllocNode<ir::ExpressionStatement>(callExpr); in ParseCommonjs()
H A DexpressionParser.cpp1362 auto *callExpr = AllocNode<ir::CallExpression>(callee, std::move(arguments), nullptr, isOptionalChain); in ParseCallExpression() local
1363 callExpr->SetRange({callee->Start(), lexer_->GetToken().End()}); in ParseCallExpression()
1369 return callExpr; in ParseCallExpression()
1372 callee = callExpr; in ParseCallExpression()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DglobalClassHandler.cpp137 auto *const callExpr = NodeAllocator::Alloc<ir::CallExpression>( in AddInitCallFromStaticBlock() local
141 auto exprStmt = NodeAllocator::Alloc<ir::ExpressionStatement>(allocator_, callExpr); in AddInitCallFromStaticBlock()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DETSchecker.h399 void MaybeSubstituteLambdaArgumentsInFunctionCall(ir::CallExpression *callExpr);
400 void MaybeSubstituteLambdaArgumentsInFunctionCallHelper(ir::CallExpression *callExpr, ir::Identifier *ident);
401 void MaybeSubstituteLambdaArguments(const ArenaVector<ir::Expression *> &params, ir::CallExpression *callExpr);
430 ir::CallExpression *callExpr, const lexer::SourcePosition &pos,
464 void ValidateSignatureAccessibility(ETSObjectType *callee, const ir::CallExpression *callExpr, Signature *signature,
694 void EnsureValidCurlyBrace(ir::CallExpression *callExpr);
697 void HandleUpdatedCallExpressionNode(ir::CallExpression *callExpr);
858 void MoveTrailingBlockToEnclosingBlockStatement(ir::CallExpression *callExpr);
859 void TransformTraillingLambda(ir::CallExpression *callExpr);
860 ArenaVector<ir::Expression *> ExtendArgumentsWithFakeLamda(ir::CallExpression *callExpr);
[all...]
H A DETSchecker.cpp531 void ETSChecker::HandleUpdatedCallExpressionNode(ir::CallExpression *callExpr) in HandleUpdatedCallExpressionNode() argument
533 VarBinder()->AsETSBinder()->HandleCustomNodes(callExpr); in HandleUpdatedCallExpressionNode()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.cpp1430 auto *callExpr = AllocNode<ir::CallExpression>( in CreateParamDecorators() local
1433 res.push_back(AllocNode<ir::ExpressionStatement>(callExpr)); in CreateParamDecorators()
1465 auto *callExpr = AllocNode<ir::CallExpression>( in CreatePropertyDecorators() local
1469 res.push_back(AllocNode<ir::ExpressionStatement>(callExpr)); in CreatePropertyDecorators()
1511 auto *callExpr = AllocNode<ir::CallExpression>( in CreateMethodDecorators() local
1515 auto newValue = AllocNode<ir::BinaryExpression>(callExpr, AllocNode<ir::Identifier>(varName), in CreateMethodDecorators()
1616 auto *callExpr = AllocNode<ir::CallExpression>( in CreateClassDecorators() local
1622 auto right = AllocNode<ir::BinaryExpression>(callExpr, id, lexer::TokenType::PUNCTUATOR_LOGICAL_OR); in CreateClassDecorators()
1969 auto *callExpr = AllocNode<ir::CallExpression>(funcExpr, std::move(arguments), nullptr, false); in CreateCallExpressionForTsModule() local
1971 return callExpr; in CreateCallExpressionForTsModule()
2006 auto *callExpr = CreateCallExpressionForTsModule(node, name, isExport && IsTsModule()); VisitTsModuleDeclaration() local
2031 auto *callExpr = CreateCallExpressionForTsEnum(node, name, isExport && IsTsModule()); VisitTsEnumDeclaration() local
2105 auto *callExpr = AllocNode<ir::CallExpression>(funcExpr, std::move(arguments), nullptr, false); CreateCallExpressionForTsEnum() local
[all...]
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_builder_test.cpp191 auto callExpr = CallExpressionBuilder(Allocator()).SetCallee(superExpr).Build(); in TEST_F() local
192 ASSERT_TRUE(callExpr->IsCallExpression()); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DexpressionParser.cpp1410 ir::CallExpression *callExpr {}; in ParseCallExpression()
1414 callExpr = AllocNode<ir::DirectEvalExpression>(callee, std::move(arguments), nullptr, isOptionalChain, in ParseCallExpression()
1417 callExpr = in ParseCallExpression()
1421 callExpr->SetRange({callee->Start(), lexer_->GetToken().End()}); in ParseCallExpression()
1427 ParseTrailingBlock(callExpr); in ParseCallExpression()
1428 return callExpr; in ParseCallExpression()
1431 callee = callExpr; in ParseCallExpression()
H A DETSparser.cpp1800 void ETSParser::ParseTrailingBlock(ir::CallExpression *callExpr) in ParseTrailingBlock() argument
1803 callExpr->SetIsTrailingBlockInNewLine(Lexer()->GetToken().NewLine()); in ParseTrailingBlock()
1804 callExpr->SetTrailingBlock(ParseBlockStatement()); in ParseTrailingBlock()
H A DparserImpl.h137 virtual void ParseTrailingBlock([[maybe_unused]] ir::CallExpression *callExpr) {} in ParseTrailingBlock() argument
H A DparserImpl.cpp649 auto *callExpr = AllocNode<ir::CallExpression>(superExpr, std::move(callArgs), nullptr, false); in BuildImplicitConstructor() local
650 statements.push_back(AllocNode<ir::ExpressionStatement>(callExpr)); in BuildImplicitConstructor()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
H A Demitter.cpp425 const ir::CallExpression *callExpr = anno->Expr()->AsCallExpression(); in CreateAnnotation() local
426 if (callExpr->Arguments().size() == 0) { in CreateAnnotation()
432 for (auto prop : callExpr->Arguments()[0]->AsObjectExpression()->Properties()) { in CreateAnnotation()

Completed in 40 milliseconds

12