• Home
  • Raw
  • Download

Lines Matching full:astnode

27 using ark::es2panda::ir::AstNode;
33 ArenaVector<AstNode *> GetChildren(AstNode *node, ArenaAllocator *allocator) in GetChildren()
35 ArenaVector<AstNode *> children(allocator->Adapter()); in GetChildren()
41 node->IterateRecursively([&children](const AstNode *current) { in GetChildren()
43 children.push_back(const_cast<AstNode *>(current)); in GetChildren()
50 AstNode *GetTouchingPropertyName(es2panda_Context *context, size_t pos) in GetTouchingPropertyName()
52 AstNode *token = GetTouchingToken(context, pos, false); in GetTouchingPropertyName()
72 bool IsDeclarationOrModifier(AstNode *node, AstNode *parent, bool forRename) in IsDeclarationOrModifier()
94 std::optional<AstNode *> HandleTSAsExpression(AstNode *node, AstNode *parent, in HandleTSAsExpression()
95 const ArenaVector<AstNode *> &parentChildren) in HandleTSAsExpression()
116 std::optional<AstNode *> HandleTSImportType(AstNode *node, AstNode *parent, in HandleTSImportType()
117 … const ArenaVector<AstNode *> &parentChildren, bool forRename, in HandleTSImportType()
135 std::optional<AstNode *> HandleImportDeclaration(AstNode *node, AstNode *parent, in HandleImportDeclaration()
136 … const ArenaVector<AstNode *> &parentChildren, bool forRename) in HandleImportDeclaration()
144 inline std::optional<AstNode *> HandleExportAllDeclaration(AstNode *node, AstNode *parent, bool for… in HandleExportAllDeclaration()
145 … const ArenaVector<AstNode *> &parentChildren) in HandleExportAllDeclaration()
153 inline std::optional<AstNode *> HandleTSClassImplements(AstNode *node, AstNode *parent) in HandleTSClassImplements()
161 inline std::optional<AstNode *> HandleTSInferType(AstNode *node, AstNode *parent, in HandleTSInferType()
162 const ArenaVector<AstNode *> &parentChildren) in HandleTSInferType()
173 inline std::optional<AstNode *> HandleTSTypeParameterDeclaration(AstNode *parent, in HandleTSTypeParameterDeclaration()
174 … const ArenaVector<AstNode *> &parentChildren) in HandleTSTypeParameterDeclaration()
182 std::optional<AstNode *> HandleTSTypeOperator(AstNode *parent, const ArenaVector<AstNode *> &parent… in HandleTSTypeOperator()
198 std::optional<AstNode *> HandleBasicExpressions(AstNode *node, AstNode *parent, in HandleBasicExpressions()
199 const ArenaVector<AstNode *> &parentChildren) in HandleBasicExpressions()
213 std::optional<AstNode *> HandleBinaryExpressions(AstNode *node, AstNode *parent, in HandleBinaryExpressions()
214 const ArenaVector<AstNode *> &parentChildren) in HandleBinaryExpressions()
220 …(node->IsForInStatement() && parent->FindChild([node](AstNode *child) { return child == node; }) !… in HandleBinaryExpressions()
229 std::optional<AstNode *> HandleForStatements(AstNode *node, AstNode *parent, in HandleForStatements()
230 const ArenaVector<AstNode *> &parentChildren) in HandleForStatements()
241 std::optional<AstNode *> HandleNonRenameExpressions(AstNode *node, AstNode *parent, in HandleNonRenameExpressions()
242 … const ArenaVector<AstNode *> &parentChildren, bool forRename) in HandleNonRenameExpressions()
265 std::optional<AstNode *> HandleDefaultExport(AstNode *node, ArenaAllocator *allocator) in HandleDefaultExport()
301 inline std::optional<AstNode *> HandleVariableDeclaration(AstNode *parent, const ArenaVector<AstNod… in HandleVariableDeclaration()
311 inline std::optional<AstNode *> HandleExternalModuleReference(AstNode *parent, in HandleExternalModuleReference()
312 … const ArenaVector<AstNode *> &parentChildren) in HandleExternalModuleReference()
322 inline std::optional<AstNode *> HandleModuleSpecifier(AstNode *parent, const ArenaVector<AstNode *>… in HandleModuleSpecifier()
332 std::optional<AstNode *> HandleExpressionAndTypes(AstNode *node, AstNode *parent, in HandleExpressionAndTypes()
333 … const ArenaVector<AstNode *> &parentChildren, bool forRename, in HandleExpressionAndTypes()
360 std::optional<AstNode *> HandleModulesAndExports(AstNode *node, AstNode *parent, in HandleModulesAndExports()
361 … const ArenaVector<AstNode *> &parentChildren, bool forRename, in HandleModulesAndExports()
384 std::optional<AstNode *> GetAdjustedLocation(AstNode *node, bool forRename, ArenaAllocator *allocat… in GetAdjustedLocation()
392 ArenaVector<AstNode *> parentChildren = GetChildren(parent, allocator); in GetAdjustedLocation()
418 std::optional<AstNode *> GetAdjustedLocationForDeclaration(AstNode *node, bool forRename, in GetAdjustedLocationForDeclaration()
419 const ArenaVector<AstNode *> &children, in GetAdjustedLocationForDeclaration()
443 std::optional<AstNode *> GetAdjustedLocationForImportDeclaration(AstNode *node, bool forRename, in GetAdjustedLocationForImportDeclaration()
444 … const ArenaVector<AstNode *> &children) in GetAdjustedLocationForImportDeclaration()
451 … [](AstNode *child) { return child->IsImportSpecifier() || child->IsImportNamespaceSpecifier(); }); in GetAdjustedLocationForImportDeclaration()
458 … [](AstNode *child) { return child->IsImportSpecifier() || child->IsImportNamespaceSpecifier(); }); in GetAdjustedLocationForImportDeclaration()
468 std::optional<AstNode *> GetAdjustedLocationForExportDeclaration(AstNode *node, bool forRename, in GetAdjustedLocationForExportDeclaration()
469 … const ArenaVector<AstNode *> &children) in GetAdjustedLocationForExportDeclaration()
516 std::optional<AstNode *> GetAdjustedLocationForClass(AstNode *node, ArenaAllocator *allocator) in GetAdjustedLocationForClass()
525 std::optional<AstNode *> GetAdjustedLocationForFunction(AstNode *node, ArenaAllocator *allocator) in GetAdjustedLocationForFunction()
543 bool IsModifier(const AstNode *node) in IsModifier()
570 bool IsOuterExpression(const AstNode *node) in IsOuterExpression()
585 AstNode *SkipOuterExpressions(AstNode *node) in SkipOuterExpressions()
596 std::optional<AstNode *> GetAdjustedLocationForHeritageClause(AstNode *node) in GetAdjustedLocationForHeritageClause()
602 …[](AstNode *child) { return child->IsExpression() || child->IsIdentifier() || child->IsTSTypeRefer… in GetAdjustedLocationForHeritageClause()
606 bool CanHaveModifiers(const AstNode &node) in CanHaveModifiers()
625 AstNode *FindFirstIdentifier(AstNode *node, bool skipModifiers, const ArenaVector<AstNode *> &child… in FindFirstIdentifier()
638 AstNode *FindFirstExpression(AstNode *node, const ArenaVector<AstNode *> &children) in FindFirstExpression()
651 AstNode *FindFirstExpressionAfter(AstNode *node, AstNode *after, const ArenaVector<AstNode *> &chil… in FindFirstExpressionAfter()
669 AstNode *FindNodeOfType(AstNode *node, AstNodeType type, const ArenaVector<AstNode *> &children) in FindNodeOfType()
682 AstNode *FindTypeReference(AstNode *node, const ArenaVector<AstNode *> &children) in FindTypeReference()
695 AstNode *FindTypeParameter(AstNode *node, const ArenaVector<AstNode *> &children) in FindTypeParameter()
713 AstNode *FindArrayType(AstNode *node, const ArenaVector<AstNode *> &children) in FindArrayType()