Home
last modified time | relevance | path

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

/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/es2panda/parser/module/
DsourceTextModuleRecord.h22 class ModuleScope; variable
101 void AssignIndexToModuleVariable(binder::ModuleScope *moduleScope);
153 …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/es2panda/binder/
Dscope.cpp375 void ModuleScope::ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView … in ConvertLocalVariableToModuleVariable()
389 void ModuleScope::AssignIndexToModuleVariable(util::StringView name, uint32_t index) in AssignIndexToModuleVariable()
397 bool ModuleScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding()
DvariableFlags.h59 _(MODULE, ModuleScope) \
Dscope.h698 class ModuleScope : public FunctionScope {
700 explicit ModuleScope(ArenaAllocator *allocator) : FunctionScope(allocator, nullptr) in ModuleScope() function
Dbinder.cpp64 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…