/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | inferredProjects.ts | 160 target: ScriptTarget.ESNext 171 target: ScriptTarget.ES2015 225 …ert.equal(projectService.inferredProjects[0].getCompilationSettings().target, ScriptTarget.ESNext); 226 …ert.equal(projectService.inferredProjects[1].getCompilationSettings().target, ScriptTarget.ESNext); 227 …ert.equal(projectService.inferredProjects[2].getCompilationSettings().target, ScriptTarget.ES2015); 230 …ferredProject(inferredProject: server.InferredProject, actualFiles: File[], target: ScriptTarget) { 246 target: ScriptTarget.ESNext 250 target: ScriptTarget.ES2015 255 [[files[3]], ScriptTarget.ESNext], 256 [[files[0], files[1]], ScriptTarget.ES2015], [all …]
|
/third_party/typescript/src/testRunner/unittests/ |
D | printer.ts | 52 `, ScriptTarget.ES2015); 60 …createSourceFile("source.ts", "let greeting = `Hi ${name}, how are you?`;", ScriptTarget.ES2017))); 63 …er => printer.printFile(createSourceFile("source.ts", "let regex = /abc/;", ScriptTarget.ES2017))); 66 …printer.printFile(createSourceFile("source.ts", "import {foo} from 'foo';", ScriptTarget.ESNext))); 70 ScriptTarget.ES2017 81 ScriptTarget.ES2017 89 ScriptTarget.ESNext, 133 `, ScriptTarget.ES2015), 139 `, ScriptTarget.ES2015) 163 createSourceFile("source.ts", "", ScriptTarget.ES2015) [all …]
|
D | transform.ts | 64 …const transformed = transform(createSourceFile("source.ts", sourceText, ScriptTarget.ES2015), tran… 139 target: ScriptTarget.ES5, 152 target: ScriptTarget.Latest 197 target: ScriptTarget.ESNext, 212 target: ScriptTarget.ESNext, 224 target: ScriptTarget.ESNext, 265 target: ScriptTarget.ESNext, 297 target: ScriptTarget.ES5, 330 target: ScriptTarget.ES5, 368 target: ScriptTarget.ES5, [all …]
|
D | jsDocParsing.ts | 379 …const root = createSourceFile("foo.ts", "/** comment */var a = true;", ScriptTarget.ES5, /*setPare… 389 …const root = createSourceFile("foo.ts", "var a = true;/** comment */", ScriptTarget.ES5, /*setPare… 398 …const root = createSourceFile("foo.ts", "/** */var a = true;", ScriptTarget.ES5, /*setParentNodes*…
|
D | publicApi.ts | 71 …const testSourceFile = ts.createSourceFile(testFilePath, testFileText, ts.ScriptTarget.Latest, /*s… 214 …const sourceFile = ts.createSourceFile("/file.ts", content, ts.ScriptTarget.ESNext, /*setParentNod… 231 …const sourceFile = ts.createSourceFile("/file.ts", content, ts.ScriptTarget.ESNext, /*setParentNod…
|
D | customTransforms.ts | 5 …nst roots = sources.map(source => createSourceFile(source.file, source.text, ScriptTarget.ES2015)); 94 target: ScriptTarget.ES5,
|
/third_party/typescript/src/testRunner/unittests/evaluation/ |
D | destructuring.ts | 9 `, { target: ts.ScriptTarget.ES5 }); 17 `, { target: ts.ScriptTarget.ES5 }); 27 `, { target: ts.ScriptTarget.ES5 }); 35 `, { target: ts.ScriptTarget.ES2015 }); 45 `, { target: ts.ScriptTarget.ES5 }); 53 `, { target: ts.ScriptTarget.ES2015 }); 61 `, { target: ts.ScriptTarget.ES2018 });
|
D | superInStaticInitializer.ts | 16 `, { target: ts.ScriptTarget.ES2015 }); 35 `, { target: ts.ScriptTarget.ES2015 }); 61 `, { target: ts.ScriptTarget.ES2015 }); 93 `, { target: ts.ScriptTarget.ES2015 }); 119 `, { target: ts.ScriptTarget.ES2015 }); 142 `, { target: ts.ScriptTarget.ES5 }); 165 `, { target: ts.ScriptTarget.ES2015 }); 187 `, { target: ts.ScriptTarget.ES2015 });
|
D | forOf.ts | 13 `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); 34 `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); 54 `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); 67 `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); 81 `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); 94 `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); 114 }`, { downlevelIteration: true, target: ts.ScriptTarget.ES5 });
|
D | forAwaitOf.ts | 47 }`, { target: ts.ScriptTarget.ES2015 }); 99 }`, { target: ts.ScriptTarget.ES2015 }); 129 `, { target: ts.ScriptTarget.ES2015 });
|
D | generator.ts | 10 `, { target: ts.ScriptTarget.ES5 }); 26 `, { target: ts.ScriptTarget.ES5 });
|
D | autoAccessors.ts | 3 { name: "es2022", target: ts.ScriptTarget.ES2022 }, 4 { name: "es2015", target: ts.ScriptTarget.ES2015 },
|
D | asyncGenerator.ts | 24 }`, { target: ts.ScriptTarget.ES2015 });
|
/third_party/typescript/src/testRunner/unittests/config/ |
D | convertCompilerOptionsFromJson.ts | 101 target: ScriptTarget.ES5, 126 target: ScriptTarget.ES5, 151 target: ScriptTarget.ES5, 179 target: ScriptTarget.ES5, 207 target: ScriptTarget.ES5, 289 target: ScriptTarget.ES5, 320 target: ScriptTarget.ES5, 351 target: ScriptTarget.ES5, 382 target: ScriptTarget.ES5, 413 target: ScriptTarget.ES5, [all …]
|
/third_party/typescript/src/services/ |
D | documentRegistry.ts | 41 sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, 52 sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, 76 sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, 87 sourceFileOptions?: CreateSourceFileOptions | ScriptTarget, 193 …Kind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { 199 …Kind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { 203 …Kind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { 209 …Kind?: ScriptKind, languageVersionOrOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile { 228 languageVersionOrOptions: CreateSourceFileOptions | ScriptTarget | undefined, 233 …const scriptTarget = scriptKind === ScriptKind.JSON ? ScriptTarget.JSON : getEmitScriptTarget(comp… constant
|
/third_party/typescript/src/compiler/ |
D | transformer.ts | 58 if (languageVersion < ScriptTarget.ESNext) { 62 if (languageVersion < ScriptTarget.ES2021) { 66 if (languageVersion < ScriptTarget.ES2020) { 70 if (languageVersion < ScriptTarget.ES2019) { 74 if (languageVersion < ScriptTarget.ES2018) { 78 if (languageVersion < ScriptTarget.ES2017) { 82 if (languageVersion < ScriptTarget.ES2016) { 86 if (languageVersion < ScriptTarget.ES2015) { 95 if (languageVersion < ScriptTarget.ES5) {
|
D | scanner.ts | 59 setScriptTarget(scriptTarget: ScriptTarget): void; 332 …export function isUnicodeIdentifierStart(code: number, languageVersion: ScriptTarget | undefined) { 333 return languageVersion! >= ScriptTarget.ES2015 ? 335 … languageVersion === ScriptTarget.ES5 ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : 339 function isUnicodeIdentifierPart(code: number, languageVersion: ScriptTarget | undefined) { 340 return languageVersion! >= ScriptTarget.ES2015 ? 342 … languageVersion === ScriptTarget.ES5 ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) : 903 …export function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean { 909 …export function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined, identifier… 918 …export function isIdentifierText(name: string, languageVersion: ScriptTarget | undefined, identifi… [all …]
|
/third_party/typescript/src/services/codefixes/ |
D | fixModuleAndTargetOptions.ts | 26 const targetOutOfRange = target < ScriptTarget.ES2017 || target > ScriptTarget.ESNext; constant
|
/third_party/typescript/src/testRunner/unittests/services/ |
D | transpile.ts | 20 transpileOptions.compilerOptions.target = ScriptTarget.ES3; 167 target: ScriptTarget.ES5, 193 target: " Es6 " as any as ScriptTarget 439 target: ScriptTarget.ES5, 459 target: ScriptTarget.ES5,
|
D | documentRegistry.ts | 14 …const compilerOptions: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.A… 26 compilerOptions.target = ts.ScriptTarget.ES3;
|
/third_party/typescript/src/compiler/transformers/ |
D | typeSerializer.ts | 240 return getGlobalConstructor("BigInt", ScriptTarget.ES2020); 243 return getGlobalConstructor("Symbol", ScriptTarget.ES2015); 314 return getGlobalConstructor("BigInt", ScriptTarget.ES2020); 451 return getGlobalConstructor("BigInt", ScriptTarget.ES2020); 466 return getGlobalConstructor("Symbol", ScriptTarget.ES2015); 563 …function getGlobalConstructor(name: string, minLanguageVersion: ScriptTarget): SerializedTypeNode {
|
/third_party/typescript/tests/baselines/reference/ |
D | APISample_compile.js | 45 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS 79 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
D | APISample_linter.js | 68 …= ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES2015, /*setPa… 126 …= ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES2015, /*setPa…
|
/third_party/typescript/src/testRunner/unittests/services/extract/ |
D | ranges.ts | 5 … const file = createSourceFile("a.ts", t.source, ScriptTarget.Latest, /*setParentNodes*/ true); 19 … const f = createSourceFile("a.ts", t.source, ScriptTarget.Latest, /*setParentNodes*/ true);
|
/third_party/typescript/tests/cases/compiler/ |
D | APISample_compile.ts | 48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|