Home
last modified time | relevance | path

Searched refs:ModuleScope (Results 1 – 24 of 24) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/core/
DmoduleContext.h25 class ModuleScope; variable
35 static void Compile(PandaGen *pg, varbinder::ModuleScope *scope);
DmoduleContext.cpp28 void CompileImports(PandaGen *pg, varbinder::ModuleScope *scope) in CompileImports()
51 void CompileExports(PandaGen *pg, const varbinder::ModuleScope *scope) in CompileExports()
81 void ModuleContext::Compile(PandaGen *pg, varbinder::ModuleScope *scope) in Compile()
/arkcompiler/ets_frontend/ts2panda/src/
DecmaModule.ts19 import { ModuleScope, Scope } from "./scope";
197 validateModuleRecordEntries(moduleScope: ModuleScope): void {
219 setExportedDecls(moduleScope: ModuleScope): void {
226 setModuleEnvironment(moduleScope: ModuleScope): void {
233 if (!(moduleScope instanceof ModuleScope)) {
245 if (!(moduleScope instanceof ModuleScope)) {
Dhoisting.ts28 ModuleScope,
59 } else if (scope instanceof FunctionScope || scope instanceof ModuleScope) {
80 …ope instanceof FunctionScope) || (scope instanceof LocalScope) || (scope instanceof ModuleScope)) {
DsyntaxCheckerForStrcitMode.ts22 import { ModuleScope, Scope } from "./scope";
192 if (!(scope instanceof ModuleScope)) {
214 if (!(scope instanceof ModuleScope)) {
224 if (!(scope instanceof ModuleScope)) {
Drecorder.ts42 ModuleScope,
470 …private recordEcmaNamedBindings(namedBindings: ts.NamedImportBindings, scope: ModuleScope, moduleR…
493 …private recordEcmaImportClause(importClause: ts.ImportClause, scope: ModuleScope, moduleRequest: s…
507 if (!(scope instanceof ModuleScope)) {
522 private recordEcmaExportDecl(node: ts.ExportDeclaration, scope: ModuleScope): void {
563 if (!(scope instanceof ModuleScope)) {
627 if (scope instanceof GlobalScope || scope instanceof ModuleScope) {
628 this.collectHoistDecls(node, <GlobalScope | ModuleScope>hoistScope, funcDecl);
DcompilerDriver.ts41 ModuleScope,
336 let topLevelScope: GlobalScope | ModuleScope;
338 topLevelScope = new ModuleScope(node);
348 if (topLevelScope instanceof ModuleScope) {
Dts2panda.ts59 import { ModuleScope } from "./scope";
411 if (pg.getScope() instanceof ModuleScope) {
413 makeModuleRecord((<ModuleScope>pg.getScope()).module())
Dscope.ts419 export class ModuleScope extends VariableScope { class
DsyntaxChecker.ts38 ModuleScope,
89 if (ts.isFunctionDeclaration(decls[i].node) && scope instanceof ModuleScope) {
165 if (scope instanceof LocalScope && isStrictMode(decl1.node) || scope instanceof ModuleScope) {
Dcompiler.ts82 ModuleScope,
728 if (hasExportKeywordModifier(decl) && this.scope instanceof ModuleScope) {
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
DsavedBindingsCtx.cpp27 varbinder::ModuleScope::ImportDeclList declList(Allocator()->Adapter()); in BindImportDecl()
46 varbinder::ModuleScope::ExportDeclList declList(Allocator()->Adapter()); in BindExportDecl()
DscopesInitPhase.cpp277 varbinder::ModuleScope::ExportDeclList exportDecls(program_->Allocator()->Adapter()); in VisitExportNamedDeclaration()
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.h22 class ModuleScope; variable
101 void AssignIndexToModuleVariable(binder::ModuleScope *moduleScope);
155 …void CheckAndAssignIndex(binder::ModuleScope *moduleScope, util::StringView name, uint32_t *inde) …
DsourceTextModuleRecord.cpp166 void SourceTextModuleRecord::AssignIndexToModuleVariable(binder::ModuleScope *moduleScope) in AssignIndexToModuleVariable()
180 void SourceTextModuleRecord::CheckAndAssignIndex(binder::ModuleScope *moduleScope, in CheckAndAssignIndex()
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dscope.cpp508 Variable *ModuleScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDe… in AddBinding()
539 void ModuleScope::AddImportDecl(ir::ImportDeclaration *importDecl, ImportDeclList &&decls) in AddImportDecl()
548 void ModuleScope::AddExportDecl(ir::AstNode *exportDecl, ExportDecl *decl) in AddExportDecl()
558 void ModuleScope::AddExportDecl(ir::AstNode *exportDecl, ExportDeclList &&decls) in AddExportDecl()
567 Variable *ModuleScope::AddImport(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDec… in AddImport()
584 bool ModuleScope::ExportAnalysis() in ExportAnalysis()
DvariableFlags.h65 _(MODULE, ModuleScope)
Dscope.h833 class ModuleScope : public GlobalScope {
841 explicit ModuleScope(ArenaAllocator *allocator) in ModuleScope() function
Dvarbinder.cpp66 topScope_ = Allocator()->New<ModuleScope>(Allocator()); in InitTopScope()
/arkcompiler/ets_frontend/es2panda/binder/
DvariableFlags.h61 _(MODULE, ModuleScope) \
Dscope.cpp508 void ModuleScope::ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView … in ConvertLocalVariableToModuleVariable()
522 void ModuleScope::AssignIndexToModuleVariable(util::StringView name, uint32_t index) in AssignIndexToModuleVariable()
530 bool ModuleScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding()
Dscope.h825 class ModuleScope : public FunctionScope {
827 explicit ModuleScope(ArenaAllocator *allocator) : FunctionScope(allocator, nullptr) in ModuleScope() function
Dbinder.cpp66 topScope_ = Allocator()->New<ModuleScope>(Allocator()); in InitTopScope()
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2 …"SyntaxError: export function declaration cannot in other scope except ModuleScope");{let t=this.c…