/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
H A D | variableDeclaration.cpp | 30 void VariableDeclaration::TransformChildren(const NodeTransformer &cb, std::string_view transformationName) in TransformChildren() 47 void VariableDeclaration::Iterate(const NodeTraverser &cb) const in Iterate() 58 void VariableDeclaration::Dump(ir::AstDumper *dumper) const in Dump() 80 dumper->Add({{"type", "VariableDeclaration"}, in Dump() 87 void VariableDeclaration::Dump(ir::SrcDumper *dumper) const in Dump() 116 VariableDeclaration::VariableDeclaration([[maybe_unused]] Tag const tag, VariableDeclaration const &other, in VariableDeclaration() function in ark::es2panda::ir::VariableDeclaration 135 VariableDeclaration *VariableDeclaration [all...] |
H A D | variableDeclaration.h | 24 class VariableDeclaration : public Statement { class 31 explicit VariableDeclaration(VariableDeclarationKind kind, ArenaAllocator *allocator, in VariableDeclaration() function in ark::es2panda::ir::VariableDeclaration 41 explicit VariableDeclaration(Tag tag, VariableDeclaration const &other, ArenaAllocator *allocator); 92 [[nodiscard]] VariableDeclaration *Clone(ArenaAllocator *allocator, AstNode *parent) override;
|
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | variableDeclarationBuilder.h | 25 class VariableDeclarationBuilder : public AstBuilder<ir::VariableDeclaration> { 32 VariableDeclarationBuilder &SetKind(VariableDeclaration::VariableDeclarationKind kind) in SetKind() 56 VariableDeclaration *Build() in Build() 63 VariableDeclaration::VariableDeclarationKind kind_ = VariableDeclaration::VariableDeclarationKind::LET;
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | variableDeclaration.cpp | 26 void VariableDeclaration::Iterate(const NodeTraverser &cb) const in Iterate() 33 void VariableDeclaration::Dump(ir::AstDumper *dumper) const in Dump() 55 dumper->Add({{"type", "VariableDeclaration"}, in Dump() 61 void VariableDeclaration::Compile(compiler::PandaGen *pg) const in Compile() 68 checker::Type *VariableDeclaration::Check(checker::Checker *checker) const in Check() 77 void VariableDeclaration::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) in UpdateSelf()
|
H A D | variableDeclaration.h | 34 class VariableDeclaration : public Statement { class 38 explicit VariableDeclaration(VariableDeclarationKind kind, ArenaVector<VariableDeclarator *> &&declarators, in VariableDeclaration() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::VariableDeclaration
|
H A D | variableDeclarator.cpp | 51 const ir::VariableDeclaration *decl = parent_->AsVariableDeclaration(); in Compile() 61 if (decl->Kind() == ir::VariableDeclaration::VariableDeclarationKind::VAR) { in Compile() 64 if (decl->Kind() == ir::VariableDeclaration::VariableDeclarationKind::LET && !decl->Parent()->IsCatchClause()) { in Compile() 81 ir::VariableDeclaration::VariableDeclarationKind::CONST; in CheckSimpleVariableDeclaration()
|
/arkcompiler/ets_frontend/ets2panda/test/unit/ |
H A D | node_creator.h | 37 ir::VariableDeclaration *CreateVarDecl(bool declare, util::StringView name = "x") in CreateVarDecl() 42 return alloc_->New<ir::VariableDeclaration>(ir::VariableDeclaration::VariableDeclarationKind::LET, alloc_, in CreateVarDecl()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | aliveAnalyzer.h | 30 class VariableDeclaration; 68 void AnalyzeVarDef(const ir::VariableDeclaration *varDef);
|
H A D | assignAnalyzer.h | 112 void AnalyzeVarDef(const ir::VariableDeclaration *varDef);
|
H A D | aliveAnalyzer.cpp | 263 void AliveAnalyzer::AnalyzeVarDef(const ir::VariableDeclaration *varDef) in AnalyzeVarDef()
|
/arkcompiler/ets_frontend/ets2panda/parser/program/ |
H A D | entityNameVisitor.h | 29 void VisitVariableDeclaration(ir::VariableDeclaration *varDecl) override;
|
H A D | entityNameVisitor.cpp | 30 void EntityNameVisitor::VisitVariableDeclaration(ir::VariableDeclaration *varDecl) in VisitVariableDeclaration()
|
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | scopedDebugInfoPlugin.cpp | 32 ir::VariableDeclaration *CreateVariableDeclaration(checker::ETSChecker *checker, ir::Identifier *ident, in CreateVariableDeclaration() 38 auto *declaration = checker->AllocNode<ir::VariableDeclaration>( in CreateVariableDeclaration() 39 ir::VariableDeclaration::VariableDeclarationKind::CONST, checker->Allocator(), std::move(declarators), false); in CreateVariableDeclaration() 54 std::pair<ir::VariableDeclaration *, ir::ReturnStatement *> BreakLastStatement(checker::ETSChecker *checker, in BreakLastStatement()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/ |
H A D | globalDeclTransformer.h | 68 void VisitVariableDeclaration(ir::VariableDeclaration *varDecl) override;
|
H A D | importExportDecls.h | 77 void VisitVariableDeclaration(ir::VariableDeclaration *varDecl) override;
|
H A D | globalDeclTransformer.cpp | 64 void GlobalDeclTransformer::VisitVariableDeclaration(ir::VariableDeclaration *varDecl) in VisitVariableDeclaration()
|
H A D | importExportDecls.cpp | 170 void ImportExportDecls::VisitVariableDeclaration(ir::VariableDeclaration *varDecl) in VisitVariableDeclaration()
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | forwardDeclForParserImpl.h | 66 class VariableDeclaration;
|
H A D | statementParser.cpp | 934 // VariableDeclaration->DeclarationSize > 1 or seen semi_colon in ParseForStatement() 945 // initNode was parsed as VariableDeclaration and declaration size = 1 in ParseForStatement() 1422 auto varKind = ir::VariableDeclaration::VariableDeclarationKind::VAR; in ParseVariableDeclaration() 1425 varKind = ir::VariableDeclaration::VariableDeclarationKind::LET; in ParseVariableDeclaration() 1427 varKind = ir::VariableDeclaration::VariableDeclarationKind::CONST; in ParseVariableDeclaration() 1432 AllocNode<ir::VariableDeclaration>(varKind, Allocator(), std::move(declarators), InAmbientContext()); in ParseVariableDeclaration()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | objectIterator.cpp | 110 declaration->Kind() != ir::VariableDeclaration::VariableDeclarationKind::CONST ? "let " : "const "; in ProcessObjectIterator()
|
H A D | boxingForLocals.cpp | 157 auto *newDeclaration = util::NodeAllocator::ForceSetParent<ir::VariableDeclaration>( in HandleFunctionParam() 158 allocator, ir::VariableDeclaration::VariableDeclarationKind::CONST, allocator, std::move(declVec), false); in HandleFunctionParam()
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | astNodeMapping.h | 150 _(VARIABLE_DECLARATION, VariableDeclaration) \
|
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | astNodeMapping.h | 169 _(VARIABLE_DECLARATION, VariableDeclaration) \
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | TSchecker.h | 72 class VariableDeclaration;
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | JSCompiler.cpp | 1678 const ir::VariableDeclaration *decl = st->Parent()->AsVariableDeclaration(); in Compile() 1683 if (decl->Kind() == ir::VariableDeclaration::VariableDeclarationKind::VAR) { in Compile() 1686 if (decl->Kind() == ir::VariableDeclaration::VariableDeclarationKind::LET && !decl->Parent()->IsCatchClause()) { in Compile() 1694 void JSCompiler::Compile(const ir::VariableDeclaration *st) const in Compile()
|