Home
last modified time | relevance | path

Searched refs:Binder (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/arkcompiler/ets_frontend/es2panda/parser/
Dcommonjs.cpp33 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 …]
DstatementParser.cpp356 auto localCtx = binder::LexicalScope<binder::TSModuleScope>(Binder(), exportBindings); in ParseTsAmbientExternalModuleDeclaration()
382 auto *parentScope = Binder()->GetScope(); in ParseTsModuleOrNamespaceDelaration()
391Binder()->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/
Dprogram.h33 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/
DcompilerContext.h31 class Binder; variable
46 CompilerContext(binder::Binder *binder, bool isDebug, bool isDebuggerEvaluateExpressionMode,
53 binder::Binder *Binder() const in Binder() function
138 binder::Binder *binder_;
DcompilerImpl.cpp43 …CompilerContext context(program->Binder(), options.isDebug, options.isDebuggerEvaluateExpressionMo… in Compile()
50 auto rootNode = context.Binder()->TopScope()->Node()->AsBlockStatement(); in Compile()
DcompileQueue.cpp60 …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/
Dbinder.cpp61 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 …]
Dbinder.h44 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/
DthisExpression.cpp36 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()
DomittedExpression.cpp37 …ion::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
DsuperExpression.cpp49 …ion::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DifStatement.h62 void UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) override;
66 const binder::Binder *binder,
DifStatement.cpp79 void IfStatement::UpdateSelf(const NodeUpdater &cb, binder::Binder *binder) in UpdateSelf()
90 const binder::Binder *binder, in UpdateIfStatementChildStatement()
DdebuggerStatement.cpp36 …ent::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
DemptyStatement.cpp36 …ent::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
Demitter.cpp100 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/
DtemplateElement.cpp42 …ent::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DtaggedLiteral.cpp40 …ral::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
DnullLiteral.cpp41 …ral::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsBigintKeyword.cpp42 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
DtsNumberKeyword.cpp42 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
DtsSymbolKeyword.cpp43 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
DtsBooleanKeyword.cpp42 …ord::UpdateSelf([[maybe_unused]] const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/ir/module/
DimportNamespaceSpecifier.cpp40 void ImportNamespaceSpecifier::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *b… in UpdateSelf()
DimportDefaultSpecifier.cpp40 void ImportDefaultSpecifier::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *bin… in UpdateSelf()

12345678910>>...12