/arkcompiler/ets_frontend/ts2panda/tests/ |
D | scope.test.ts | 54 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 …]
|
D | lexenv.test.ts | 242 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/ |
D | astutils.ts | 23 return VarDeclarationKind.LET; 30 return VarDeclarationKind.LET;
|
D | addVariable2Scope.ts | 84 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);
|
D | variable.ts | 25 LET, enumerator 101 return this.declKind === VarDeclarationKind.LET; 109 … return this.declKind === VarDeclarationKind.LET || this.declKind === VarDeclarationKind.CONST;
|
D | recorder.ts | 347 case VarDeclarationKind.LET:
|
D | compiler.ts | 493 if ((astutils.getVarDeclarationKind(decl) === VarDeclarationKind.LET) &&
|
/arkcompiler/ets_frontend/es2panda/parser/ |
D | parserFlags.h | 39 LET = (1 << 4), enumerator
|
D | statementParser.cpp | 557 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/ |
D | variableDeclaration.cpp | 42 case VariableDeclarationKind::LET: { in Dump()
|
D | variableDeclaration.h | 36 enum class VariableDeclarationKind { CONST, LET, VAR }; enumerator
|
D | variableDeclarator.cpp | 64 …if (decl->Kind() == ir::VariableDeclaration::VariableDeclarationKind::LET && !decl->Parent()->IsCa… in Compile()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | variableFlags.h | 26 _(LET, LetDecl) \
|
D | declaration.h | 286 return DeclType::LET; in Type()
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
D | transformer.cpp | 745 … 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/ |
D | helpers.cpp | 374 case binder::DeclType::LET: { in GetTypeOfVariable()
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …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…
|