Home
last modified time | relevance | path

Searched refs:childNode (Results 1 - 25 of 30) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.cpp300 void VarBinder::BuildVarDeclaratorId(ir::AstNode *childNode) in BuildVarDeclaratorId() argument
302 switch (childNode->Type()) { in BuildVarDeclaratorId()
304 auto *ident = childNode->AsIdentifier(); in BuildVarDeclaratorId()
319 auto *objPattern = childNode->AsObjectPattern(); in BuildVarDeclaratorId()
329 auto *arrayPattern = childNode->AsArrayPattern(); in BuildVarDeclaratorId()
331 for (auto *element : childNode->AsArrayPattern()->Elements()) { in BuildVarDeclaratorId()
339 ResolveReference(childNode->AsAssignmentPattern()->Right()); in BuildVarDeclaratorId()
340 BuildVarDeclaratorId(childNode->AsAssignmentPattern()->Left()); in BuildVarDeclaratorId()
344 ResolveReference(childNode->AsProperty()->Key()); in BuildVarDeclaratorId()
345 BuildVarDeclaratorId(childNode in BuildVarDeclaratorId()
539 ResolveReference(ir::AstNode *childNode) ResolveReference() argument
[all...]
H A DTypedBinder.cpp66 void TypedBinder::HandleCustomNodes(ir::AstNode *childNode) in HandleCustomNodes() argument
68 switch (childNode->Type()) { in HandleCustomNodes()
73 BuildSignatureDeclarationBaseParams(childNode); in HandleCustomNodes()
77 ResolveReferences(childNode); in HandleCustomNodes()
H A DTypedBinder.h31 void HandleCustomNodes(ir::AstNode *childNode) override;
H A DETSBinder.cpp307 methodDef->ResolveReferences([this](auto *childNode) { ResolveReference(childNode); }); in ResolveMethodDefinition()
853 void ETSBinder::HandleCustomNodes(ir::AstNode *childNode) in HandleCustomNodes() argument
855 switch (childNode->Type()) { in HandleCustomNodes()
857 auto *typeRef = childNode->AsETSTypeReference(); in HandleCustomNodes()
869 BuildInterfaceDeclaration(childNode->AsTSInterfaceDeclaration()); in HandleCustomNodes()
873 ResolveEnumDeclaration(childNode->AsTSEnumDeclaration()); in HandleCustomNodes()
880 BuildImportDeclaration(childNode->AsETSImportDeclaration()); in HandleCustomNodes()
884 BuildMemberExpression(childNode->AsMemberExpression()); in HandleCustomNodes()
888 BuildMethodDefinition(childNode in HandleCustomNodes()
[all...]
H A Dvarbinder.h211 void ResolveReference(ir::AstNode *childNode);
238 void BuildVarDeclaratorId(ir::AstNode *childNode);
255 virtual void HandleCustomNodes(ir::AstNode *childNode) in HandleCustomNodes() argument
257 ResolveReferences(childNode); in HandleCustomNodes()
H A DETSBinder.h106 void HandleCustomNodes(ir::AstNode *childNode) override;
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp455 void Binder::BuildVarDeclaratorId(const ir::AstNode *parent, ir::AstNode *childNode) in BuildVarDeclaratorId() argument
457 childNode->SetParent(parent); in BuildVarDeclaratorId()
459 switch (childNode->Type()) { in BuildVarDeclaratorId()
461 auto *ident = childNode->AsIdentifier(); in BuildVarDeclaratorId()
482 auto *objPattern = childNode->AsObjectPattern(); in BuildVarDeclaratorId()
485 BuildVarDeclaratorId(childNode, prop); in BuildVarDeclaratorId()
492 auto *arrayPattern = childNode->AsArrayPattern(); in BuildVarDeclaratorId()
494 for (auto *element : childNode->AsArrayPattern()->Elements()) { in BuildVarDeclaratorId()
495 BuildVarDeclaratorId(childNode, element); in BuildVarDeclaratorId()
502 ResolveReference(childNode, childNod in BuildVarDeclaratorId()
692 ResolveReference(const ir::AstNode *parent, ir::AstNode *childNode) ResolveReference() argument
1146 ClassTdz(const ir::AstNode *parent, const ir::AstNode *childNode, Scope *scope) ClassTdz() argument
[all...]
H A Dbinder.h213 void BuildVarDeclaratorId(const ir::AstNode *parent, ir::AstNode *childNode);
219 void ResolveReference(const ir::AstNode *parent, ir::AstNode *childNode);
361 explicit ClassTdz(const ir::AstNode *parent, const ir::AstNode *childNode, Scope *scope);
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DetsWarningAnalyzer.cpp134 node->Iterate([&](auto *childNode) { ETSWarningSuggestFinal(childNode); }); in ETSWarningSuggestFinal()
176 node->Iterate([&](auto *childNode) { ETSWarningsProhibitTopLevelStatements(childNode); }); in ETSWarningsProhibitTopLevelStatements()
182 node->Iterate([&](auto *childNode) { ETSWarningsProhibitTopLevelStatements(childNode); }); in ETSWarningsProhibitTopLevelStatements()
222 node->Iterate([&](auto *childNode) { ETSWarningBoostEqualityStatement(childNode); }); in ETSWarningBoostEqualityStatement()
233 node->Iterate([&](auto *childNode) { ETSWarningRemoveAsync(childNode); }); in ETSWarningRemoveAsync()
[all...]
H A DaliveAnalyzer.cpp57 node->Iterate([this](auto *childNode) { AnalyzeNode(childNode); }); in AnalyzeNodes()
H A Dfunction.cpp1719 node->Iterate([this, var](ir::AstNode *childNode) { CheckCapturedVariable(childNode, var); }); in CheckCapturedVariableInSubnodes()
2124 parent->Iterate([this](ir::AstNode *childNode) -> void { in CollectReturnStatements()
2125 if (childNode->IsScriptFunction()) { in CollectReturnStatements()
2129 if (childNode->IsReturnStatement()) { in CollectReturnStatements()
2130 ir::ReturnStatement *returnStmt = childNode->AsReturnStatement(); in CollectReturnStatements()
2134 CollectReturnStatements(childNode); in CollectReturnStatements()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.cpp98 parent->UpdateSelf([this](auto *childNode) { return VisitTSNode(childNode); }, Binder()); in VisitTSNodes()
196 ir::UpdateNodes Transformer::VisitTSNode(ir::AstNode *childNode) in VisitTSNode() argument
198 ASSERT(childNode != nullptr); in VisitTSNode()
199 switch (childNode->Type()) { in VisitTSNode()
201 auto *ident = childNode->AsIdentifier(); in VisitTSNode()
203 return VisitTSNodes(childNode); in VisitTSNode()
228 return VisitTSNodes(childNode); in VisitTSNode()
231 auto *node = childNode->AsTSModuleDeclaration(); in VisitTSNode()
233 return childNode; in VisitTSNode()
645 FindSuperCallInCtorChildNode(const ir::AstNode *childNode, bool *hasSuperCall) FindSuperCallInCtorChildNode() argument
1317 FindPrivateIdentifierInChildNode(const ir::AstNode *childNode, bool *hasprivateIdentifier) FindPrivateIdentifierInChildNode() argument
2636 CheckTransformedAstNode(const ir::AstNode *parent, ir::AstNode *childNode, bool *passed) const CheckTransformedAstNode() argument
2665 ResetParentScopeForAstNode(ir::AstNode *childNode, binder::Scope *parentScope) const ResetParentScopeForAstNode() argument
[all...]
H A Dtransformer.h115 ir::UpdateNodes VisitTSNode(ir::AstNode *childNode);
116 ir::UpdateNodes VisitTsModuleDeclaration(ir::TSModuleDeclaration *childNode, bool isExport = false);
147 void FindSuperCallInCtorChildNode(const ir::AstNode *childNode, bool *hasSuperCall);
176 void FindPrivateIdentifierInChildNode(const ir::AstNode *childNode, bool *hasprivateIdentifier);
239 void CheckTransformedAstNode(const ir::AstNode *parent, ir::AstNode *childNode, bool *passed) const;
243 void ResetParentScopeForAstNode(ir::AstNode *childNode, binder::Scope *parentScope) const;
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A Dhelpers.cpp226 parent->Iterate([this, searchVar, &found](const ir::AstNode *childNode) -> void { in IsVariableUsedInConditionBody()
228 if (childNode->IsIdentifier()) { in IsVariableUsedInConditionBody()
229 binder::ScopeFindResult result = scope_->Find(childNode->AsIdentifier()->Name()); in IsVariableUsedInConditionBody()
239 if (!childNode->IsMemberExpression()) { in IsVariableUsedInConditionBody()
240 IsVariableUsedInConditionBody(childNode, searchVar); in IsVariableUsedInConditionBody()
251 parent->Iterate([this, searchVar, &found](const ir::AstNode *childNode) -> void { in FindVariableInBinaryExpressionChain()
252 if (childNode->IsIdentifier()) { in FindVariableInBinaryExpressionChain()
253 binder::ScopeFindResult result = scope_->Find(childNode->AsIdentifier()->Name()); in FindVariableInBinaryExpressionChain()
261 FindVariableInBinaryExpressionChain(childNode, searchVar); in FindVariableInBinaryExpressionChain()
H A Dfunction.cpp643 parent->Iterate([this, returnTypes](ir::AstNode *childNode) -> void { in CollectTypesFromReturnStatements()
644 if (childNode->IsScriptFunction()) { in CollectTypesFromReturnStatements()
648 if (childNode->IsReturnStatement()) { in CollectTypesFromReturnStatements()
649 ir::ReturnStatement *returnStmt = childNode->AsReturnStatement(); in CollectTypesFromReturnStatements()
656 GetBaseTypeOfLiteralType(CheckTypeCached(childNode->AsReturnStatement()->Argument()))); in CollectTypesFromReturnStatements()
659 CollectTypesFromReturnStatements(childNode, returnTypes); in CollectTypesFromReturnStatements()
667 parent->Iterate([&found](const ir::AstNode *childNode) -> void { in SearchForReturnOrThrow()
668 if (childNode->IsThrowStatement() || childNode->IsReturnStatement()) { in SearchForReturnOrThrow()
673 if (childNode in SearchForReturnOrThrow()
[all...]
H A DdestructuringContext.cpp433 parent->Iterate([type](ir::AstNode *childNode) -> void { in SetParameterType()
434 if (childNode->IsIdentifier() && childNode->AsIdentifier()->Variable()) { in SetParameterType()
435 childNode->AsIdentifier()->Variable()->SetTsType(type); in SetParameterType()
439 SetParameterType(childNode, type); in SetParameterType()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
H A Dhelpers.cpp224 parent->Iterate([this, searchVar, &found](ir::AstNode *childNode) -> void { in IsVariableUsedInConditionBody()
226 if (childNode->IsIdentifier()) { in IsVariableUsedInConditionBody()
227 auto result = Scope()->Find(childNode->AsIdentifier()->Name()); in IsVariableUsedInConditionBody()
237 if (!childNode->IsMemberExpression()) { in IsVariableUsedInConditionBody()
238 IsVariableUsedInConditionBody(childNode, searchVar); in IsVariableUsedInConditionBody()
249 parent->Iterate([this, searchVar, &found](ir::AstNode *childNode) -> void { in FindVariableInBinaryExpressionChain()
250 if (childNode->IsIdentifier()) { in FindVariableInBinaryExpressionChain()
251 auto result = Scope()->Find(childNode->AsIdentifier()->Name()); in FindVariableInBinaryExpressionChain()
259 FindVariableInBinaryExpressionChain(childNode, searchVar); in FindVariableInBinaryExpressionChain()
H A Dfunction.cpp623 parent->Iterate([this, returnTypes](ir::AstNode *childNode) -> void { in CollectTypesFromReturnStatements()
624 if (childNode->IsScriptFunction()) { in CollectTypesFromReturnStatements()
628 if (childNode->IsReturnStatement()) { in CollectTypesFromReturnStatements()
629 ir::ReturnStatement *returnStmt = childNode->AsReturnStatement(); in CollectTypesFromReturnStatements()
636 GetBaseTypeOfLiteralType(CheckTypeCached(childNode->AsReturnStatement()->Argument()))); in CollectTypesFromReturnStatements()
639 CollectTypesFromReturnStatements(childNode, returnTypes); in CollectTypesFromReturnStatements()
647 parent->Iterate([&found](ir::AstNode *childNode) -> void { in SearchForReturnOrThrow()
648 if (childNode->IsThrowStatement() || childNode->IsReturnStatement()) { in SearchForReturnOrThrow()
653 if (childNode in SearchForReturnOrThrow()
[all...]
H A DdestructuringContext.cpp437 parent->Iterate([type](ir::AstNode *childNode) -> void { in SetParameterType()
438 if (childNode->IsIdentifier() && childNode->AsIdentifier()->Variable() != nullptr) { in SetParameterType()
439 childNode->AsIdentifier()->Variable()->SetTsType(type); in SetParameterType()
443 SetParameterType(childNode, type); in SetParameterType()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DlocalClassLowering.cpp183 auto remapCapturedVariables = [&variableMap](ir::AstNode *childNode) { in RemapReferencesFromCapturedVariablesToClassProperties()
184 if (childNode->Type() == ir::AstNodeType::IDENTIFIER) { in RemapReferencesFromCapturedVariablesToClassProperties()
185 LOG(DEBUG, ES2PANDA) << " checking var:" << (void *)childNode; in RemapReferencesFromCapturedVariablesToClassProperties()
186 const auto &mapIt = variableMap.find(childNode->AsIdentifier()->Variable()); in RemapReferencesFromCapturedVariablesToClassProperties()
188 LOG(DEBUG, ES2PANDA) << " Remap: " << childNode->AsIdentifier()->Name() in RemapReferencesFromCapturedVariablesToClassProperties()
189 << " (identifier:" << (void *)childNode in RemapReferencesFromCapturedVariablesToClassProperties()
190 << ") variable:" << (void *)childNode->AsIdentifier()->Variable() in RemapReferencesFromCapturedVariablesToClassProperties()
192 childNode->AsIdentifier()->SetVariable(mapIt->second); in RemapReferencesFromCapturedVariablesToClassProperties()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DcheckerContext.cpp157 loop.Iterate([this, &changedVariables](ir::AstNode *childNode) { CheckAssignments(childNode, changedVariables); });
200 [this, &changedVariables](ir::AstNode *childNode) { CheckAssignments(childNode, changedVariables); });
221 [this, &changedVariables](ir::AstNode *childNode) { CheckAssignments(childNode, changedVariables); });
228 [this, &changedVariables](ir::AstNode *childNode) { CheckAssignments(childNode, changedVariables); });
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
H A Dheap_sampling.cpp192 struct SamplingNode *childNode = nullptr; in FindOrAddNode() local
194 childNode = node->children_[methodKey].get(); in FindOrAddNode()
196 if (childNode == nullptr) { in FindOrAddNode()
203 return childNode; in FindOrAddNode()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DETSNolintParser.cpp293 node->Iterate([&](auto *childNode) { ApplyETSNolintsToNodesRecursively(childNode); }); in ApplyETSNolintsToNodesRecursively()
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A Dfunction.cpp41 currentNode->Iterate([&lastNode](auto *childNode) { in FindLastStatement()
42 FindLastStatement(lastNode, childNode); in FindLastStatement()
/arkcompiler/ets_frontend/es2panda/parser/
H A DparserImpl.cpp3376 parent->Iterate([this, hasSuperCall](auto *childNode) { in FindSuperCall()
3377 FindSuperCallInCtorChildNode(childNode, hasSuperCall); in FindSuperCall()
3381 void ParserImpl::FindSuperCallInCtorChildNode(const ir::AstNode *childNode, bool *hasSuperCall) in FindSuperCallInCtorChildNode() argument
3386 switch (childNode->Type()) { in FindSuperCallInCtorChildNode()
3388 if (childNode->AsCallExpression()->Callee()->IsSuperExpression()) { in FindSuperCallInCtorChildNode()
3401 FindSuperCall(childNode, hasSuperCall); in FindSuperCallInCtorChildNode()
3475 parent->Iterate([this, hasThisOrSuperReference](auto *childNode) { in FindThisOrSuperReference()
3476 FindThisOrSuperReferenceInChildNode(childNode, hasThisOrSuperReference); in FindThisOrSuperReference()
3480 void ParserImpl::FindThisOrSuperReferenceInChildNode(const ir::AstNode *childNode, bool *hasThisOrSuperReference) in FindThisOrSuperReferenceInChildNode() argument
3487 switch (childNode in FindThisOrSuperReferenceInChildNode()
[all...]

Completed in 28 milliseconds

12