Home
last modified time | relevance | path

Searched refs:FunctionScope (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/ets_frontend/ts2panda/tests/
Dscope.test.ts21 FunctionScope,
81 let scope = new FunctionScope(globalScope);
91 let scope = new FunctionScope();
101 let scope = new FunctionScope();
111 let scope = new FunctionScope();
122 let scope = new FunctionScope(globalScope);
141 let parent = new FunctionScope();
156 let parent = new FunctionScope();
169 let parent = new FunctionScope();
183 let parent = new FunctionScope(global);
[all …]
Dlexenv.test.ts47 FunctionScope,
495 …expect((<FunctionScope>outerScope).getNumLexEnv(), "number of lexvar at outer scope").to.be.equal(…
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompileQueue.h29 class FunctionScope; variable
43 binder::FunctionScope *Scope() const in Scope()
48 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope()
57 binder::FunctionScope *scope_ {};
Dpandagen.h32 class FunctionScope; variable
79 …explicit PandaGen(ArenaAllocator *allocator, CompilerContext *context, binder::FunctionScope *scop… in PandaGen()
120 binder::FunctionScope *TopScope() const in TopScope()
510 binder::FunctionScope *topScope_;
/arkcompiler/ets_frontend/es2panda/ir/base/
DscriptFunction.h33 class FunctionScope; variable
42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &&params, in ScriptFunction()
186 binder::FunctionScope *Scope() const in Scope()
216 binder::FunctionScope *scope_;
DclassProperty.cpp92 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
DscriptFunction.cpp131 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, scope_); in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.h194 FunctionScope *AsFunctionVariableScope() in AsFunctionVariableScope()
197 return reinterpret_cast<FunctionScope *>(this); in AsFunctionVariableScope()
200 const FunctionScope *AsFunctionVariableScope() const in AsFunctionVariableScope()
203 return reinterpret_cast<const FunctionScope *>(this); in AsFunctionVariableScope()
220 FunctionScope *EnclosingFunctionVariableScope();
491 class FunctionScope; variable
497 FunctionScope *GetFunctionScope() const in GetFunctionScope()
502 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope()
528 friend class FunctionScope; variable
533 FunctionScope *functionScope_ {};
[all …]
Dbinder.h90 FunctionScope *TopScope() const in TopScope()
109 const ArenaVector<FunctionScope *> &Functions() const in Functions()
114 ArenaVector<FunctionScope *> Functions() in Functions()
199 …void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func…
222 FunctionScope *topScope_ {};
224 ArenaVector<FunctionScope *> functionScopes_;
DvariableFlags.h57 _(FUNCTION, FunctionScope) \
Dbinder.cpp344 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunctio… in BuildFunction()
691 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference()
710 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in ResolveReference()
841 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
Dscope.cpp54 FunctionScope *Scope::EnclosingFunctionVariableScope() in EnclosingFunctionVariableScope()
302 bool FunctionScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding()
/arkcompiler/ets_frontend/ts2panda/src/
Dhoisting.ts25 FunctionScope,
59 } else if (scope instanceof FunctionScope || scope instanceof ModuleScope) {
80 …} else if ((scope instanceof FunctionScope) || (scope instanceof LocalScope) || (scope instanceof …
Drecorder.ts37 FunctionScope,
279 buildVariableScope(curScope: Scope, node: ts.FunctionLikeDeclaration): FunctionScope {
280 let functionScope = new FunctionScope(curScope, <ts.FunctionLikeDeclaration>node);
631 … if ((hoistScope instanceof FunctionScope) && isFunctionLikeDeclaration(node.parent.parent)) {
698 (<FunctionScope>this.getScopeOfNode(node)).setFuncName(name);
735 (<FunctionScope>this.getScopeOfNode(node)).setParameterLength(length);
766 if (scope instanceof FunctionScope) {
DcompilerDriver.ts39 FunctionScope,
410 name = (<FunctionScope>recorder.getScopeOfNode(funcNode)).getFuncName();
Dpandagen.ts184 FunctionScope,
366 if (this.scope instanceof FunctionScope) {
372 if (this.scope instanceof FunctionScope) {
536 if (this.scope instanceof FunctionScope) {
Dscope.ts464 export class FunctionScope extends VariableScope { class
Dcompiler.ts79 FunctionScope,
303 if (scope instanceof FunctionScope) {
DsyntaxChecker.ts34 FunctionScope,
100 while (!(parentScope instanceof FunctionScope)) {
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DvariableDeclaration.test.ts34 FunctionScope,
169 let functionScope = <FunctionScope>funcPg!.getScope();
188 let functionScope = <FunctionScope>funcPg!.getScope();
205 let functionScope = <FunctionScope>funcPg!.getScope();
/arkcompiler/ets_frontend/es2panda/parser/
Dcommonjs.cpp82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
DexpressionParser.cpp355 … binder::FunctionScope *functionScope, in ParseArrowFunctionExpressionBody()
478 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseArrowFunctionExpression()
518 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseTsGenericArrowFunction()
/arkcompiler/ets_frontend/ts2panda/src/statement/
DclassStatement.ts45 FunctionScope,
407 let curFuncScope = <FunctionScope>recorder.getScopeOfNode(nearestFunc);
419 curFuncScope = <FunctionScope>curFuncScope.getParentVariableScope();
/arkcompiler/ets_frontend/es2panda/compiler/function/
DfunctionBuilder.cpp114 binder::FunctionScope *scope = node->Scope(); in FunctionReg()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp599 …auto ctorScopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), node->Ctor()->Fun… in VisitInstanceProperty()
1419 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsModule()
1432 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), funcScope); in CreateCallExpressionForTsModule()
1558 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsEnum()
1571 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), funcScope); in CreateCallExpressionForTsEnum()

12