Home
last modified time | relevance | path

Searched refs:functionScope (Results 1 – 11 of 11) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/tests/expression/
DthisKeyWord.test.ts55 let functionScope = functionPg!.getScope(); variable
56 let insns = compileMainSnippet("this;", pandaGen, functionScope);
62 let thisVar = functionScope!.findLocal("this");
/arkcompiler/ets_frontend/es2panda/parser/
Dcommonjs.cpp83 auto *functionScope = functionCtx.GetScope(); in ParseCommonjs() local
84 functionScope->BindParamScope(funcParamScope); in ParseCommonjs()
85 funcParamScope->BindFunctionScope(functionScope); in ParseCommonjs()
90 … AllocNode<ir::ScriptFunction>(functionScope, std::move(params), nullptr, program_.Ast(), nullptr, in ParseCommonjs()
92 functionScope->BindNode(funcNode); in ParseCommonjs()
DexpressionParser.cpp351 … binder::FunctionScope *functionScope, in ParseArrowFunctionExpressionBody() argument
358 functionScope->BindParamScope(desc->paramScope); in ParseArrowFunctionExpressionBody()
359 desc->paramScope->BindFunctionScope(functionScope); in ParseArrowFunctionExpressionBody()
375 body = AllocNode<ir::BlockStatement>(functionScope, std::move(statements)); in ParseArrowFunctionExpressionBody()
386 …funcNode = AllocNode<ir::ScriptFunction>(functionScope, std::move(desc->params), typeParamDecl, bo… in ParseArrowFunctionExpressionBody()
390 functionScope->BindNode(funcNode); in ParseArrowFunctionExpressionBody()
DparserImpl.cpp3491 auto *functionScope = functionCtx.GetScope(); in ParseFunction() local
3492 functionScope->BindParamScope(funcParamScope); in ParseFunction()
3493 funcParamScope->BindFunctionScope(functionScope); in ParseFunction()
3522 body = ParseBlockStatement(functionScope); in ParseFunction()
3527 …AllocNode<ir::ScriptFunction>(functionScope, std::move(params), typeParamDecl, body, returnTypeAnn… in ParseFunction()
3530 functionScope->BindNode(funcNode); in ParseFunction()
DparserImpl.h374 … binder::FunctionScope *functionScope,
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DvariableDeclaration.test.ts169 let functionScope = <FunctionScope>funcPg!.getScope(); variable
178 let i = functionScope.findLocal("i");
188 let functionScope = <FunctionScope>funcPg!.getScope(); variable
196 let i = functionScope.findLocal("i");
205 let functionScope = <FunctionScope>funcPg!.getScope(); variable
213 let i = functionScope.findLocal("i");
DfunctionDeclaration.test.ts97 let functionScope = functionPg!.getScope(); variable
100 let foo = functionScope!.findLocal("foo");
/arkcompiler/ets_frontend/ts2panda/src/
Drecorder.ts125 … let functionScope = this.buildVariableScope(scope, <ts.FunctionLikeDeclaration>childNode);
126 this.recordOtherFunc(<ts.FunctionLikeDeclaration>childNode, functionScope);
127 this.recordInfo(childNode, functionScope);
131 … let functionScope = this.buildVariableScope(scope, <ts.FunctionLikeDeclaration>childNode);
147 this.recordInfo(childNode, functionScope);
280 let functionScope = new FunctionScope(curScope, <ts.FunctionLikeDeclaration>node);
282 functionScope.setParentVariableScope(parentVariableScope);
283 parentVariableScope.addChildVariableScope(functionScope);
284 this.setScopeMap(node, functionScope);
285 return functionScope;
DaddVariable2Scope.ts158 let functionScope = <Scope>recorder.getScopeOfNode(funcNode);
159 v = functionScope.add(decl, VarDeclarationKind.FUNCTION);
Dscope.ts534 let functionScope = this.getNearestVariableScope();
535 v = functionScope!.add(name, declKind);
Dcompiler.ts190 let functionScope = this.recorder.getScopeOfNode(rootNode);
193 let v = functionScope.find(funcName);
194 if (v.scope === functionScope) {