Home
last modified time | relevance | path

Searched refs:ScriptTarget (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/typescript/src/testRunner/unittests/tsserver/
DinferredProjects.ts160 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/
Dprinter.ts52 `, 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 …]
Dtransform.ts64 …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 …]
DjsDocParsing.ts379 …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*…
DpublicApi.ts71 …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…
DcustomTransforms.ts5 …nst roots = sources.map(source => createSourceFile(source.file, source.text, ScriptTarget.ES2015));
94 target: ScriptTarget.ES5,
/third_party/typescript/src/testRunner/unittests/evaluation/
Ddestructuring.ts9 `, { 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 });
DsuperInStaticInitializer.ts16 `, { 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 });
DforOf.ts13 `, { 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 });
DforAwaitOf.ts47 }`, { target: ts.ScriptTarget.ES2015 });
99 }`, { target: ts.ScriptTarget.ES2015 });
129 `, { target: ts.ScriptTarget.ES2015 });
Dgenerator.ts10 `, { target: ts.ScriptTarget.ES5 });
26 `, { target: ts.ScriptTarget.ES5 });
DautoAccessors.ts3 { name: "es2022", target: ts.ScriptTarget.ES2022 },
4 { name: "es2015", target: ts.ScriptTarget.ES2015 },
DasyncGenerator.ts24 }`, { target: ts.ScriptTarget.ES2015 });
/third_party/typescript/src/testRunner/unittests/config/
DconvertCompilerOptionsFromJson.ts101 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/
DdocumentRegistry.ts41 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/
Dtransformer.ts58 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) {
Dscanner.ts59 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/
DfixModuleAndTargetOptions.ts26 const targetOutOfRange = target < ScriptTarget.ES2017 || target > ScriptTarget.ESNext; constant
/third_party/typescript/src/testRunner/unittests/services/
Dtranspile.ts20 transpileOptions.compilerOptions.target = ScriptTarget.ES3;
167 target: ScriptTarget.ES5,
193 target: " Es6 " as any as ScriptTarget
439 target: ScriptTarget.ES5,
459 target: ScriptTarget.ES5,
DdocumentRegistry.ts14 …const compilerOptions: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.A…
26 compilerOptions.target = ts.ScriptTarget.ES3;
/third_party/typescript/src/compiler/transformers/
DtypeSerializer.ts240 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/
DAPISample_compile.js45 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
79 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
DAPISample_linter.js68 …= 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/
Dranges.ts5 … 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/
DAPISample_compile.ts48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS

1234