Searched refs:functionScope (Results 1 – 11 of 11) sorted by relevance
| /arkcompiler/ets_frontend/ts2panda/tests/expression/ |
| D | thisKeyWord.test.ts | 55 let functionScope = functionPg!.getScope(); variable 56 let insns = compileMainSnippet("this;", pandaGen, functionScope); 62 let thisVar = functionScope!.findLocal("this");
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | commonjs.cpp | 83 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()
|
| D | expressionParser.cpp | 351 … 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()
|
| D | parserImpl.cpp | 3491 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()
|
| D | parserImpl.h | 374 … binder::FunctionScope *functionScope,
|
| /arkcompiler/ets_frontend/ts2panda/tests/statements/ |
| D | variableDeclaration.test.ts | 169 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");
|
| D | functionDeclaration.test.ts | 97 let functionScope = functionPg!.getScope(); variable 100 let foo = functionScope!.findLocal("foo");
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | recorder.ts | 125 … 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;
|
| D | addVariable2Scope.ts | 158 let functionScope = <Scope>recorder.getScopeOfNode(funcNode); 159 v = functionScope.add(decl, VarDeclarationKind.FUNCTION);
|
| D | scope.ts | 534 let functionScope = this.getNearestVariableScope(); 535 v = functionScope!.add(name, declKind);
|
| D | compiler.ts | 190 let functionScope = this.recorder.getScopeOfNode(rootNode); 193 let v = functionScope.find(funcName); 194 if (v.scope === functionScope) {
|