Home
last modified time | relevance | path

Searched refs:LET (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/tests/
Dscope.test.ts54 let variable = scope.add("x", VarDeclarationKind.LET);
74 let x = scope.add("x", VarDeclarationKind.LET);
76 let z = scope.add("z", VarDeclarationKind.LET);
102 let variable = scope.add("x", VarDeclarationKind.LET);
112 let variable = scope.add("x", VarDeclarationKind.LET);
123 let x = scope.add("x", VarDeclarationKind.LET);
125 let z = scope.add("z", VarDeclarationKind.LET);
158 let variable = scope.add("x", VarDeclarationKind.LET);
171 let variable = scope.add("x", VarDeclarationKind.LET);
185 let x = scope.add("x", VarDeclarationKind.LET);
[all …]
Dlexenv.test.ts242 let var1 = globalScope.add("var1", VarDeclarationKind.LET);
243 let funcObj = globalScope.add("4funcObj", VarDeclarationKind.LET);
264 let var1 = globalScope.add("var1", VarDeclarationKind.LET);
265 let funcObj = globalScope.add("4funcObj", VarDeclarationKind.LET);
284 let var1 = globalScope.add("var1", VarDeclarationKind.LET);
303 let var1 = globalScope.add("var1", VarDeclarationKind.LET);
304 let funcObj = globalScope.add("4funcObj", VarDeclarationKind.LET);
328 let funcObj = globalScope.add("4funcObj", VarDeclarationKind.LET);
/arkcompiler/ets_frontend/ts2panda/src/
Dastutils.ts23 return VarDeclarationKind.LET;
30 return VarDeclarationKind.LET;
DaddVariable2Scope.ts84 scope.addParameter("exports", VarDeclarationKind.LET, 1);
85 scope.addParameter("require", VarDeclarationKind.LET, 2);
86 scope.addParameter("module", VarDeclarationKind.LET, 3);
87 scope.addParameter("__filename", VarDeclarationKind.LET, 4);
88 scope.addParameter("__dirname", VarDeclarationKind.LET, 5);
150 v = scope.add(decl, VarDeclarationKind.LET, InitStatus.UNINITIALIZED);
162 v = scope.add(decl, VarDeclarationKind.LET);
Dvariable.ts25 LET, enumerator
101 return this.declKind === VarDeclarationKind.LET;
109 … return this.declKind === VarDeclarationKind.LET || this.declKind === VarDeclarationKind.CONST;
Drecorder.ts347 case VarDeclarationKind.LET:
Dcompiler.ts493 if ((astutils.getVarDeclarationKind(decl) === VarDeclarationKind.LET) &&
/arkcompiler/ets_frontend/es2panda/parser/
DparserFlags.h39 LET = (1 << 4), enumerator
DstatementParser.cpp557 auto *variableDecl = ParseVariableDeclaration(VariableParsingFlags::LET, isDeclare); in ParseLetStatement()
1485 initNode = ParseVariableDeclaration(varFlags | VariableParsingFlags::LET); in ParseForStatement()
2061 } else if (flags & VariableParsingFlags::LET) { in ParseVariableDeclarator()
2081 …if ((flags & VariableParsingFlags::LET) && util::Helpers::IsGlobalIdentifier(lexer_->GetToken().Id… in ParseVariableDeclaration()
2108 if (flags & VariableParsingFlags::LET) { in ParseVariableDeclaration()
2109 varKind = ir::VariableDeclaration::VariableDeclarationKind::LET; in ParseVariableDeclaration()
2572 decl = ParseVariableDeclaration(flag | VariableParsingFlags::LET, isDeclare, true); in ParseNamedExportDeclaration()
2587 decl = ParseVariableDeclaration(VariableParsingFlags::LET, isDeclare); in ParseNamedExportDeclaration()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclaration.cpp42 case VariableDeclarationKind::LET: { in Dump()
DvariableDeclaration.h36 enum class VariableDeclarationKind { CONST, LET, VAR }; enumerator
DvariableDeclarator.cpp64 …if (decl->Kind() == ir::VariableDeclaration::VariableDeclarationKind::LET && !decl->Parent()->IsCa… in Compile()
/arkcompiler/ets_frontend/es2panda/binder/
DvariableFlags.h26 _(LET, LetDecl) \
Ddeclaration.h286 return DeclType::LET; in Type()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp745 … res.push_back(CreateVariableDeclarationWithIdentify(name, VariableParsingFlags::LET, node, false, in VisitClassDeclaration()
858 … res.push_back(CreateVariableDeclarationWithIdentify(varName, VariableParsingFlags::LET, nullptr, in CreateVariableDeclarationForDecorators()
867 … res.push_back(CreateVariableDeclarationWithIdentify(varName, VariableParsingFlags::LET, nullptr, in CreateVariableDeclarationForDecorators()
877 … res.push_back(CreateVariableDeclarationWithIdentify(varName, VariableParsingFlags::LET, nullptr, in CreateVariableDeclarationForDecorators()
886 … res.push_back(CreateVariableDeclarationWithIdentify(varName, VariableParsingFlags::LET, nullptr, in CreateVariableDeclarationForDecorators()
895 … res.push_back(CreateVariableDeclarationWithIdentify(varName, VariableParsingFlags::LET, nullptr, in CreateVariableDeclarationForDecorators()
1019 … res.push_back(CreateVariableDeclarationWithIdentify(varName, VariableParsingFlags::LET, nullptr, in CreateMethodDecorators()
1365 } else if (flags & VariableParsingFlags::LET) { in CreateVariableDeclarationWithIdentify()
1366 varKind = ir::VariableDeclaration::VariableDeclarationKind::LET; in CreateVariableDeclarationWithIdentify()
1383 } else if (flags & VariableParsingFlags::LET) { in CreateVariableDeclarationWithIdentify()
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dhelpers.cpp374 case binder::DeclType::LET: { in GetTypeOfVariable()
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2 …st n=r("./src/scope.ts");var i;!function(e){e[e.NONE=0]="NONE",e[e.LET=1]="LET",e[e.CONST=2]="CONS…