/arkcompiler/ets_frontend/es2panda/parser/ |
D | commonjs.cpp | 33 static std::vector<std::string_view> cjsMandatoryParams = {binder::Binder::CJS_MANDATORY_PARAM_EXPO… 34 … binder::Binder::CJS_MANDATORY_PARAM_REQUIRE, 35 … binder::Binder::CJS_MANDATORY_PARAM_MODULE, 36 … binder::Binder::CJS_MANDATORY_PARAM_FILENAME, 37 … binder::Binder::CJS_MANDATORY_PARAM_DIRNAME}; 44 Binder()->AddParamDecl(param); in AddCommonjsParams() 55 …ir::Expression *thisValue = AllocNode<ir::Identifier>(binder::Binder::CJS_MANDATORY_PARAM_EXPORTS); in AddReflectApplyArgs() 76 FunctionParameterContext funcParamContext(&context_, Binder()); in ParseCommonjs() 82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs() 114 auto *blockStmt = AllocNode<ir::BlockStatement>(Binder()->GetScope(), std::move(statements)); in ParseCommonjs() [all …]
|
D | statementParser.cpp | 356 auto localCtx = binder::LexicalScope<binder::TSModuleScope>(Binder(), exportBindings); in ParseTsAmbientExternalModuleDeclaration() 382 auto *parentScope = Binder()->GetScope(); in ParseTsModuleOrNamespaceDelaration() 391 …Binder()->AddTsDecl<binder::NamespaceDecl>(lexer_->GetToken().Start(), isDeclare, Allocator(), nam… in ParseTsModuleOrNamespaceDelaration() 412 auto localCtx = binder::LexicalScope<binder::TSModuleScope>(Binder(), exportBindings); in ParseTsModuleOrNamespaceDelaration() 476 …auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, false, id->Name()); in ParseTsImportEqualsDeclaration() 478 auto *scope = Binder()->GetScope(); in ParseTsImportEqualsDeclaration() 611 auto localCtx = binder::LexicalScope<binder::LocalScope>(Binder()); in ParseFunctionStatement() 674 …auto *decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, classDefinition->Declare(), clas… in ParseClassDeclaration() 703 …auto *decl = Binder()->AddTsDecl<binder::TypeAliasDecl>(lexer_->GetToken().Start(), isDeclare, tsB… in ParseTsTypeAliasDeclaration() 752 const auto &bindings = Binder()->GetScope()->Bindings(); in ParseTsInterfaceDeclaration() [all …]
|
/arkcompiler/ets_frontend/es2panda/parser/program/ |
D | program.h | 33 class Binder; variable 53 const binder::Binder *Binder() const in Binder() function 58 binder::Binder *Binder() in Binder() function 173 binder::Binder *binder_ {};
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | compilerContext.h | 31 class Binder; variable 46 CompilerContext(binder::Binder *binder, bool isDebug, bool isDebuggerEvaluateExpressionMode, 53 binder::Binder *Binder() const in Binder() function 138 binder::Binder *binder_;
|
D | compilerImpl.cpp | 43 …CompilerContext context(program->Binder(), options.isDebug, options.isDebuggerEvaluateExpressionMo… in Compile() 50 auto rootNode = context.Binder()->TopScope()->Node()->AsBlockStatement(); in Compile()
|
D | compileQueue.cpp | 60 …ModuleRecordEmitter moduleEmitter(context_->Binder()->Program()->ModuleRecord(), context_->NewLite… in Run() 119 const auto &functions = context_->Binder()->Functions(); in Schedule() 128 if (context_->Binder()->Program()->Kind() == parser::ScriptKind::MODULE) { in Schedule()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | binder.cpp | 61 void Binder::InitTopScope() in InitTopScope() 72 ParameterDecl *Binder::AddParamDecl(const ir::AstNode *param) in AddParamDecl() 84 void Binder::ThrowRedeclaration(const lexer::SourcePosition &pos, const util::StringView &name) in ThrowRedeclaration() 94 void Binder::ThrowUndeclaredExport(const lexer::SourcePosition &pos, const util::StringView &name) in ThrowUndeclaredExport() 104 void Binder::ThrowInvalidDstrTarget(const lexer::SourcePosition &pos, const util::StringView &name) in ThrowInvalidDstrTarget() 114 void Binder::CheckMandatoryArguments(const ir::Identifier *ident) in CheckMandatoryArguments() 170 void Binder::AssignIndexToModuleVariable() in AssignIndexToModuleVariable() 176 void Binder::IdentifierAnalysis(ResolveBindingFlags flags) in IdentifierAnalysis() 194 void Binder::ValidateExportDecl(const ir::ExportNamedDeclaration *exportDecl) in ValidateExportDecl() 232 void Binder::LookupReference(const util::StringView &name) in LookupReference() [all …]
|
D | binder.h | 44 class Binder { 46 explicit Binder(parser::Program *program, ScriptExtension extension) in Binder() function 64 NO_COPY_SEMANTIC(Binder); 65 DEFAULT_MOVE_SEMANTIC(Binder); 66 ~Binder() = default; 240 explicit LexicalScope(Binder *binder, Args &&... args) in LexicalScope() 257 [[nodiscard]] static LexicalScope<T> Enter(Binder *binder, T *scope) in Enter() 268 …explicit LexicalScope(T *scope, Binder *binder) : binder_(binder), scope_(scope), prevScope_(binde… in LexicalScope() 273 Binder *binder_ {}; 279 T *Binder::AddTsDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args) in AddTsDecl() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | thisExpression.cpp | 36 binder::ScopeFindResult res = pg->Scope()->Find(binder::Binder::MANDATORY_PARAM_THIS); in Compile() 40 pg->LoadObjByNameViaDebugger(this, binder::Binder::MANDATORY_PARAM_THIS, true); in Compile() 57 …ion::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | omittedExpression.cpp | 37 …ion::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | superExpression.cpp | 49 …ion::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
D | ifStatement.h | 62 void UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) override; 66 const binder::Binder *binder,
|
D | ifStatement.cpp | 79 void IfStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf() 90 const binder::Binder *binder, in UpdateIfStatementChildStatement()
|
D | debuggerStatement.cpp | 36 …ent::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | emptyStatement.cpp | 36 …ent::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
D | emitter.cpp | 100 return pg_->Binder()->Program()->SourceCode(); in SourceCode() 102 return static_cast<const ir::ScriptFunction *>(pg_->RootNode())->SourceCode(pg_->Binder()); in SourceCode() 107 return const_cast<lexer::LineIndex &>(pg_->Binder()->Program()->GetLineIndex()); in GetLineIndex() 230 func_->source_file = std::string {pg_->Binder()->Program()->SourceFile()}; in GenSourceFileDebugInfo() 318 auto recordName = context->Binder()->Program()->FormatedRecordName().Mutf8(); in Emitter() 321 SetCommonjsField(context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS); in Emitter() 324 if (context->Binder()->Program()->Kind() == parser::ScriptKind::COMMONJS) { in Emitter() 391 … auto litId = std::string(context->Binder()->Program()->RecordName()) + "_" + std::to_string(idx); in AddFunction() 403 auto moduleLiteral = std::string(context->Binder()->Program()->RecordName()) + "_" + in AddSourceTextModuleRecord() 422 moduleIdxField.name = std::string {context->Binder()->Program()->SourceFile()}; in AddSourceTextModuleRecord()
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | templateElement.cpp | 42 …ent::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
D | taggedLiteral.cpp | 40 …ral::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | nullLiteral.cpp | 41 …ral::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsBigintKeyword.cpp | 42 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | tsNumberKeyword.cpp | 42 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | tsSymbolKeyword.cpp | 43 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
D | tsBooleanKeyword.cpp | 42 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/ir/module/ |
D | importNamespaceSpecifier.cpp | 40 void ImportNamespaceSpecifier::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *b… in UpdateSelf()
|
D | importDefaultSpecifier.cpp | 40 void ImportDefaultSpecifier::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *bin… in UpdateSelf()
|