Home
last modified time | relevance | path

Searched refs:VariableDeclaration (Results 1 - 25 of 39) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DvariableDeclaration.cpp30 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 DvariableDeclaration.h24 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 DvariableDeclarationBuilder.h25 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 DvariableDeclaration.cpp26 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 DvariableDeclaration.h34 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 DvariableDeclarator.cpp51 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 Dnode_creator.h37 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 DaliveAnalyzer.h30 class VariableDeclaration;
68 void AnalyzeVarDef(const ir::VariableDeclaration *varDef);
H A DassignAnalyzer.h112 void AnalyzeVarDef(const ir::VariableDeclaration *varDef);
H A DaliveAnalyzer.cpp263 void AliveAnalyzer::AnalyzeVarDef(const ir::VariableDeclaration *varDef) in AnalyzeVarDef()
/arkcompiler/ets_frontend/ets2panda/parser/program/
H A DentityNameVisitor.h29 void VisitVariableDeclaration(ir::VariableDeclaration *varDecl) override;
H A DentityNameVisitor.cpp30 void EntityNameVisitor::VisitVariableDeclaration(ir::VariableDeclaration *varDecl) in VisitVariableDeclaration()
/arkcompiler/ets_frontend/ets2panda/evaluate/
H A DscopedDebugInfoPlugin.cpp32 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 DglobalDeclTransformer.h68 void VisitVariableDeclaration(ir::VariableDeclaration *varDecl) override;
H A DimportExportDecls.h77 void VisitVariableDeclaration(ir::VariableDeclaration *varDecl) override;
H A DglobalDeclTransformer.cpp64 void GlobalDeclTransformer::VisitVariableDeclaration(ir::VariableDeclaration *varDecl) in VisitVariableDeclaration()
H A DimportExportDecls.cpp170 void ImportExportDecls::VisitVariableDeclaration(ir::VariableDeclaration *varDecl) in VisitVariableDeclaration()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DforwardDeclForParserImpl.h66 class VariableDeclaration;
H A DstatementParser.cpp934 // 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 DobjectIterator.cpp110 declaration->Kind() != ir::VariableDeclaration::VariableDeclarationKind::CONST ? "let " : "const "; in ProcessObjectIterator()
H A DboxingForLocals.cpp157 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 DastNodeMapping.h150 _(VARIABLE_DECLARATION, VariableDeclaration) \
/arkcompiler/ets_frontend/ets2panda/ir/
H A DastNodeMapping.h169 _(VARIABLE_DECLARATION, VariableDeclaration) \
/arkcompiler/ets_frontend/ets2panda/checker/
H A DTSchecker.h72 class VariableDeclaration;
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DJSCompiler.cpp1678 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()

Completed in 14 milliseconds

12