/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | inferredProjects.ts | 170 target: ScriptTarget.ESNext 181 target: ScriptTarget.ES2015 235 …ert.equal(projectService.inferredProjects[0].getCompilationSettings().target, ScriptTarget.ESNext); 236 …ert.equal(projectService.inferredProjects[1].getCompilationSettings().target, ScriptTarget.ESNext); 237 …ert.equal(projectService.inferredProjects[2].getCompilationSettings().target, ScriptTarget.ES2015); 240 …ferredProject(inferredProject: server.InferredProject, actualFiles: File[], target: ScriptTarget) { 256 target: ScriptTarget.ESNext 260 target: ScriptTarget.ES2015 265 [[files[3]], ScriptTarget.ESNext], 266 [[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) 165 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 177 target: ScriptTarget.ESNext, 191 target: ScriptTarget.ESNext, 203 target: ScriptTarget.ESNext, 244 target: ScriptTarget.ESNext, 276 target: ScriptTarget.ES5, 309 target: ScriptTarget.ES5, 347 target: ScriptTarget.ES5, [all …]
|
D | jsDocParsing.ts | 364 …const root = createSourceFile("foo.ts", "/** comment */var a = true;", ScriptTarget.ES5, /*setPare… 374 …const root = createSourceFile("foo.ts", "var a = true;/** comment */", ScriptTarget.ES5, /*setPare… 382 …const root = createSourceFile("foo.ts", "/** */var a = true;", ScriptTarget.ES5, /*setParentNodes*…
|
D | customTransforms.ts | 5 …nst roots = sources.map(source => createSourceFile(source.file, source.text, ScriptTarget.ES2015)); 94 target: ScriptTarget.ES5,
|
D | moduleResolution.ts | 481 getSourceFile: (fileName: string, languageVersion: ScriptTarget) => { 570 getSourceFile: (fileName: string, languageVersion: ScriptTarget) => { 573 library = createSourceFile("lib.d.ts", "", ScriptTarget.ES5); 1513 …iles = arrayToMap(map(files, f => createSourceFile(f.name, f.content, ScriptTarget.ES2015)), f => … 1552 const file = createSourceFile(f.name, f.content, ScriptTarget.ES2015); 1581 const file = createSourceFile(f.name, f.content, ScriptTarget.ES2015);
|
D | reuseProgramStructure.ts | 100 …function createSourceFileWithText(fileName: string, sourceText: SourceText, target: ScriptTarget) { 107 …export function createTestCompilerHost(texts: readonly NamedSourceText[], target: ScriptTarget, ol… 214 const target = ScriptTarget.Latest; 455 …const options: CompilerOptions = { target: ScriptTarget.ES2015, traceResolution: true, moduleResol… 523 const options = { target: ScriptTarget.ES2015, traceResolution: true }; 630 …const options: CompilerOptions = { target: ScriptTarget.ES2015, traceResolution: true, moduleResol…
|
/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 | 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 });
|
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/compiler/ |
D | transformer.ts | 53 if (languageVersion < ScriptTarget.ESNext) { 57 if (languageVersion < ScriptTarget.ES2020) { 61 if (languageVersion < ScriptTarget.ES2019) { 65 if (languageVersion < ScriptTarget.ES2018) { 69 if (languageVersion < ScriptTarget.ES2017) { 73 if (languageVersion < ScriptTarget.ES2016) { 77 if (languageVersion < ScriptTarget.ES2015) { 86 if (languageVersion < ScriptTarget.ES5) {
|
D | scanner.ts | 58 setScriptTarget(scriptTarget: ScriptTarget): void; 324 …export function isUnicodeIdentifierStart(code: number, languageVersion: ScriptTarget | undefined) { 325 return languageVersion! >= ScriptTarget.ES2015 ? 327 … languageVersion === ScriptTarget.ES5 ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : 331 function isUnicodeIdentifierPart(code: number, languageVersion: ScriptTarget | undefined) { 332 return languageVersion! >= ScriptTarget.ES2015 ? 334 … languageVersion === ScriptTarget.ES5 ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) : 881 …export function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean { 887 …export function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined, identifier… 896 …export function isIdentifierText(name: string, languageVersion: ScriptTarget | undefined, identifi… [all …]
|
D | utilitiesPublic.ts | 15 case ScriptTarget.ESNext: 17 case ScriptTarget.ES2020: 19 case ScriptTarget.ES2019: 21 case ScriptTarget.ES2018: 23 case ScriptTarget.ES2017: 25 case ScriptTarget.ES2016: 27 case ScriptTarget.ES2015:
|
/third_party/typescript/src/testRunner/unittests/services/ |
D | transpile.ts | 20 transpileOptions.compilerOptions.target = ScriptTarget.ES3; 167 target: ScriptTarget.ES5, 193 target: <ScriptTarget><any>" Es6 " 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/services/codefixes/ |
D | fixModuleAndTargetOptions.ts | 26 const targetOutOfRange = target < ScriptTarget.ES2017 || target > ScriptTarget.ESNext; constant
|
/third_party/typescript/tests/baselines/reference/ |
D | APISample_compile.js | 44 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS 78 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
D | APISample_linter.js | 67 …= ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES2015, /*setPa… 124 …= 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); 18 const f = createSourceFile("a.ts", t.source, ScriptTarget.Latest, /*setParentNodes*/ true);
|
/third_party/typescript/src/harness/ |
D | harnessIO.ts | 228 languageVersion: ts.ScriptTarget) { 255 …tLibFileName, IO.readFile(libFolder + "lib.es5.d.ts")!, /*languageVersion*/ ts.ScriptTarget.Latest) 261 …urceFileAndAssertInvariants(fileName, IO.readFile(libFolder + fileName)!, ts.ScriptTarget.Latest)); 268 case ts.ScriptTarget.ESNext: 269 case ts.ScriptTarget.ES2017: 271 case ts.ScriptTarget.ES2016: 273 case ts.ScriptTarget.ES2015: 399 options.target = options.target || ts.ScriptTarget.ES3; 905 …sult = ts.createSourceFile(file.file, file.text, options.target || ts.ScriptTarget.ES3, /*parentNo…
|
/third_party/typescript/src/compiler/transformers/module/ |
D | module.ts | 689 if (languageVersion >= ScriptTarget.ES2015) { 736 if (languageVersion >= ScriptTarget.ES2015) { 848 … languageVersion >= ScriptTarget.ES2015 ? NodeFlags.Const : NodeFlags.None 876 … languageVersion >= ScriptTarget.ES2015 ? NodeFlags.Const : NodeFlags.None 949 … /*flags*/ languageVersion >= ScriptTarget.ES2015 ? NodeFlags.Const : NodeFlags.None 1023 if (languageVersion === ScriptTarget.ES3) { 1552 if (languageVersion === ScriptTarget.ES3) { 1606 liveBinding && languageVersion !== ScriptTarget.ES3 ? factory.createCallExpression(
|
/third_party/typescript/src/services/ |
D | documentRegistry.ts | 175 …iptTarget = scriptKind === ScriptKind.JSON ? ScriptTarget.JSON : compilationSettings.target || Scr… constant
|
/third_party/typescript/tests/cases/compiler/ |
D | APISample_compile.ts | 48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|