Home
last modified time | relevance | path

Searched refs:compilerOptions (Results 1 – 25 of 201) sorted by relevance

123456789

/third_party/typescript/src/testRunner/unittests/services/
Dtranspile.ts16 if (!transpileOptions.compilerOptions) {
17 transpileOptions.compilerOptions = { };
19 if (transpileOptions.compilerOptions.target === undefined) {
20 transpileOptions.compilerOptions.target = ScriptTarget.ES3;
23 if (transpileOptions.compilerOptions.newLine === undefined) {
25 transpileOptions.compilerOptions.newLine = NewLineKind.CarriageReturnLineFeed;
28 transpileOptions.compilerOptions.sourceMap = true;
32 unitName = transpileOptions.compilerOptions.jsx ? "file.tsx" : "file.ts";
40 …ranspile/" + name.replace(/[^a-z0-9\-. ]/ig, "") + (transpileOptions.compilerOptions.jsx ? Extensi…
52 …oldTranspileResult = transpile(input, transpileOptions.compilerOptions, transpileOptions.fileName,…
[all …]
DdocumentRegistry.ts14 …const compilerOptions: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.A… constant
17 compilerOptions.declaration = true;
18 …const f1 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromStr…
19 compilerOptions.declaration = false;
20 …const f2 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromStr…
26 compilerOptions.target = ts.ScriptTarget.ES3;
27 …const f3 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromStr…
31 compilerOptions.preserveConstEnums = true;
32 …const f4 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromStr…
36 compilerOptions.module = ts.ModuleKind.System;
[all …]
/third_party/typescript/src/testRunner/unittests/config/
DconvertCompilerOptionsFromJson.ts10 compilerOptions: CompilerOptions; property
15 compilerOptions: CompilerOptions; property
31 …ptions, errors: actualErrors } = convertCompilerOptionsFromJson(json.compilerOptions, "/apath/", c…
34 …const expectedCompilerOptions = JSON.stringify({ ...expectedResult.compilerOptions, configFilePath…
50 expectedResult.compilerOptions.configFilePath = configFileName;
53 const expectedCompilerOptions = JSON.stringify(expectedResult.compilerOptions);
90 compilerOptions: {
99 compilerOptions: {
114 compilerOptions: {
124 compilerOptions: {
[all …]
DconfigurationExtension.ts13 compilerOptions: {
18 compilerOptions: {
51 compilerOptions: {
56 compilerOptions: {
93 compilerOptions: {
98 compilerOptions: {
105 compilerOptions: {
120 compilerOptions: {
126 compilerOptions: {
132 compilerOptions: {
[all …]
/third_party/typescript/src/testRunner/unittests/tsc/
Dincremental.ts140 function verifyNoEmitChanges(compilerOptions: CompilerOptions) {
146 const discrepancyIfNoDtsEmit = getEmitDeclarations(compilerOptions) ?
153 discrepancyExplanation: compilerOptions.composite ?
155 !compilerOptions.declaration ?
166 for (const key in compilerOptions) {
167 if (hasProperty(compilerOptions, key)) {
184 discrepancyExplanation: compilerOptions.composite ?
186 compilerOptions.declaration ?
212 discrepancyExplanation: compilerOptions.composite ?
238 discrepancyExplanation: compilerOptions.composite ?
[all …]
/third_party/typescript/src/testRunner/unittests/tsbuild/
DdeclarationEmit.ts6 compilerOptions: {
12 compilerOptions: { composite: true },
17 compilerOptions: { composite: true },
23 compilerOptions: { composite: true },
32 compilerOptions: { composite: true },
46 compilerOptions: { composite: true },
72 compilerOptions: { composite: true },
84 compilerOptions: {
99 compilerOptions: { outDir: "lib" },
110 compilerOptions: { outDir: "lib" },
DmoduleResolution.ts14 compilerOptions: { outDir: "build", ...optionsToExtend },
29 compilerOptions: {
75 compilerOptions: { composite: true, typeRoots: ["./typeroot1"] },
81 compilerOptions: { composite: true, typeRoots: ["./typeroot2"] },
97 compilerOptions: { strict: true }
104 compilerOptions: { strict: true, module: "node16" }
DoutputPaths.ts39 compilerOptions: {
52 compilerOptions: {
66 compilerOptions: {
81 compilerOptions: {
96 compilerOptions: {
/third_party/typescript/src/testRunner/unittests/tsserver/
Dtelemetry.ts36 const compilerOptions: CompilerOptions = { allowJs: true }; constant
37 const tsconfig = makeFile("/tsconfig.json", { compilerOptions, include: ["src"] });
43 compilerOptions,
51 const compilerOptions: server.protocol.CompilerOptions = { strict: true }; constant
59 compilerOptions: { strict: true },
82 options: compilerOptions,
93 const compilerOptions: CompilerOptions = { constant
146 (compilerOptions as any).unknownCompilerOption = "hunter2"; // These are always ignored.
147 const tsconfig = makeFile("/tsconfig.json", { compilerOptions, files: ["/a.ts"] });
153 compilerOptions: safeCompilerOptions,
[all …]
DprojectsWithReferences.ts27 compilerOptions: { composite: true, declaration: true, declarationDir: "decls" },
39 compilerOptions: { composite: true },
46compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } },
54 compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } },
104 cTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] };
122 bTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] };
159 content: JSON.stringify({ compilerOptions: { composite: true } }),
164compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } },
171 compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } },
219 cTsConfigJson.compilerOptions.paths = { "@ref/*": ["../nrefs/*"] };
[all …]
/third_party/typescript/src/harness/
DcompilerImpl.ts236 …pileFiles(host: fakes.CompilerHost, rootFiles: string[] | undefined, compilerOptions: ts.CompilerO…
237 if (compilerOptions.project || !rootFiles || rootFiles.length === 0) {
238 … const project = readProject(host.parseConfigHost, compilerOptions.project, compilerOptions);
241 …return new CompilationResult(host, compilerOptions, /*program*/ undefined, /*result*/ undefined, p…
245 compilerOptions = project.config.options;
248 delete compilerOptions.project;
252compilerOptions.target === undefined && compilerOptions.module !== ts.ModuleKind.Node16 && compile…
253 …if (compilerOptions.newLine === undefined) compilerOptions.newLine = ts.NewLineKind.CarriageReturn…
254 … if (compilerOptions.skipDefaultLibCheck === undefined) compilerOptions.skipDefaultLibCheck = true;
255 … if (compilerOptions.noErrorTruncation === undefined) compilerOptions.noErrorTruncation = true;
[all …]
/third_party/typescript/src/compiler/
DmoduleSpecifiers.ts14 …SpecifierPreference, importModuleSpecifierEnding }: UserPreferences, compilerOptions: CompilerOpti…
28 …tensionOnImports(importingSourceFile) || isFormatRequiringExtensions(compilerOptions, importingSou…
29 …: getEmitModuleResolutionKind(compilerOptions) !== ModuleResolutionKind.NodeJs ? Ending.Index : En…
34 …function getPreferencesForUpdate(compilerOptions: CompilerOptions, oldImportSpecifier: string, imp…
37 …asJSFileExtension(oldImportSpecifier) || isFormatRequiringExtensions(compilerOptions, importingSou…
39 …getEmitModuleResolutionKind(compilerOptions) !== ModuleResolutionKind.NodeJs || endsWith(oldImport…
43 …function isFormatRequiringExtensions(compilerOptions: CompilerOptions, importingSourceFileName: Pa…
44 if (getEmitModuleResolutionKind(compilerOptions) !== ModuleResolutionKind.Node16
45 && getEmitModuleResolutionKind(compilerOptions) !== ModuleResolutionKind.NodeNext) {
48 …me, host.getPackageJsonInfoCache?.(), getModuleResolutionHost(host), compilerOptions) !== ModuleKi…
[all …]
DmoduleNameResolver.ts9 …export function isTraceEnabled(compilerOptions: CompilerOptions, host: ModuleResolutionHost): bool…
10 return !!compilerOptions.traceResolution && host.trace !== undefined;
113 compilerOptions: CompilerOptions; property
149 …const message = isOhpm(state.compilerOptions.packageManagerType) ? Diagnostics.oh_package_json5_do…
178 …const message = isOhpm(state.compilerOptions.packageManagerType) ? Diagnostics.oh_package_json5_ha…
376 compilerOptions: options,
975 …export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: Com…
976 const traceEnabled = isTraceEnabled(compilerOptions, host);
978 compilerOptions = redirectedReference.commandLine.options;
996 let moduleResolution = compilerOptions.moduleResolution;
[all …]
Dbuilder.ts48 compilerOptions: CompilerOptions; property
193 const compilerOptions = newProgram.getCompilerOptions(); constant
194 state.compilerOptions = compilerOptions;
195 const outFilePath = outFile(compilerOptions);
200 …else if (compilerOptions.composite && oldState?.outSignature && outFilePath === outFile(oldState?.
204 …state.latestChangedDtsFile = compilerOptions.composite ? oldState?.latestChangedDtsFile : undefine…
209 const oldCompilerOptions = useOldState ? oldState!.compilerOptions : undefined;
211 !compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions!);
219 const canCopyEmitSignatures = compilerOptions.composite &&
222 !compilerOptionsAffectDeclarationPath(compilerOptions, oldState.compilerOptions);
[all …]
/third_party/typescript/src/testRunner/
DprojectsRunner.ts24 compilerOptions?: ts.CompilerOptions; property
80 …constructor(sys: fakes.System | vfs.FileSystem, compilerOptions: ts.CompilerOptions, _testCaseJust…
81 super(sys, compilerOptions);
128 private compilerOptions: ts.CompilerOptions; property in project.ProjectTestCase
134 this.compilerOptions = createCompilerOptions(testCase, moduleKind);
139 if (this.compilerOptions.project) {
141 … configFileName = ts.normalizePath(ts.combinePaths(this.compilerOptions.project, "tsconfig.json"));
154 …figFileContent(result, configParseHost, ts.getDirectoryPath(configFileName), this.compilerOptions);
156 this.compilerOptions = configParseResult.options;
160 …const compilerHost = new ProjectCompilerHost(this.sys, this.compilerOptions, this.testCaseJustName…
[all …]
/third_party/typescript/src/testRunner/unittests/tscWatch/
DprogramUpdates.ts233 compilerOptions: { allowUnusedLabels: true }
242 compilerOptions: { allowUnusedLabels: false }
249 compilerOptions: { allowUnusedLabels: true }
276 compilerOptions: { target: "es6", importsNotUsedAsValues: "error" }
285compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true }
293compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true, e…
487 content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] })
509 … sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { module: "none" } }));
606 content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] })
613 …change: sys => sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: {}, files: ["f1.ts"…
[all …]
DprojectsWithReferences.ts47compilerOptions: { composite: true, declaration: true, declarationDir: "decls" },
61 configJson.compilerOptions.paths = newPaths;
154 compilerOptions: { composite: true, moduleResolution: "classic" },
185 compilerOptions: { composite: true },
192compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } },
200 compilerOptions: { baseUrl: "./", paths: { "@ref/*": ["../refs/*"] } },
272compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } },
289 compilerOptions: { composite: true },
308 content: JSON.stringify({ compilerOptions: { composite: true } }),
313compilerOptions: { composite: true, baseUrl: "./", paths: { "@ref/*": ["../*"] } },
[all …]
Dincremental.ts7 content: JSON.stringify({ compilerOptions: { incremental: true } })
97 … content: JSON.stringify({ compilerOptions: { incremental: true, outFile: "out.js" } })
114 content: JSON.stringify({ compilerOptions: { incremental: true, module: "amd" } })
180 assert.deepEqual(state.compilerOptions, {
211 …content: JSON.stringify({ compilerOptions: { incremental: true, module: "amd", outFile: "out.js" }…
222 compilerOptions: {
279 … { path: configFile.path, content: JSON.stringify({ compilerOptions: { incremental: true, } }) }
308 … { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }
310 …modifyFs: host => host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { ...jsxImport…
319 … { path: configFile.path, content: JSON.stringify({ compilerOptions: jsxImportSourceOptions }) }
[all …]
DforceConsistentCasingInFileNames.ts14 compilerOptions: { forceConsistentCasingInFileNames: true }
69 … content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } })
115compilerOptions: { jsx: "react-jsx", jsxImportSource: "react", forceConsistentCasingInFileNames: t…
147 … content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } })
194 … content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true } })
245 …content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: true, outFile: "out…
287 compilerOptions: {
316 compilerOptions: {
349 compilerOptions: {
/third_party/typescript/src/services/
DstringCompletions.ts166 …node: StringLiteralLike, position: number, typeChecker: TypeChecker, compilerOptions: CompilerOpti…
193 … paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeCh…
259 … paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeCh…
366 …ionsFromModuleNames(sourceFile: SourceFile, node: LiteralExpression, compilerOptions: CompilerOpti…
367 …, getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, compilerOptions, host, typeCh…
370 …omModuleNamesWorker(sourceFile: SourceFile, node: LiteralExpression, compilerOptions: CompilerOpti…
377 …return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (isRootedDiskPath(liter…
378 …? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scr…
379 …ionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, getInc…
391 …function getExtensionOptions(compilerOptions: CompilerOptions, includeExtensionsOption = IncludeEx…
[all …]
Dtranspile.ts3 compilerOptions?: CompilerOptions; property
29 …ions: CompilerOptions = transpileOptions.compilerOptions ? fixupCompilerOptions(transpileOptions.c…
75 …e = transpileOptions.fileName || (transpileOptions.compilerOptions && transpileOptions.compilerOpt…
118 …export function transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, dia…
119 …const output = transpileModule(input, { compilerOptions, fileName, reportDiagnostics: !!diagnostic…
/third_party/typescript/src/testRunner/unittests/
Dtransform.ts127 compilerOptions: {
138 compilerOptions: {
150 compilerOptions: {
182 compilerOptions: {
196 compilerOptions: {
211 compilerOptions: {
223 compilerOptions: {
264 compilerOptions: {
296 compilerOptions: {
329 compilerOptions: {
[all …]
/third_party/typescript/src/services/codefixes/
DimportFixes.ts63 const compilerOptions = program.getCompilerOptions(); constant
83 … const symbolName = getNameForExportedSymbol(exportedSymbol, getEmitScriptTarget(compilerOptions));
214 compilerOptions);
350 const compilerOptions = program.getCompilerOptions(); constant
368 getQuotePreference(sourceFile, preferences), compilerOptions))
373 const compilerOptions = program.getCompilerOptions(); constant
374 …single(getSymbolNamesToImport(sourceFile, program.getTypeChecker(), symbolToken, compilerOptions));
377 …ceFile, symbolName, fix, includeSymbolNameInDescription, QuotePreference.Double, compilerOptions));
401 const compilerOptions = program.getCompilerOptions(); constant
410 const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);
[all …]
/third_party/typescript/src/compiler/transformers/module/
DesnextAnd2015.ts10 const compilerOptions = context.getCompilerOptions(); constant
11 const languageVersion = getEmitScriptTarget(compilerOptions);
29 if (isExternalModule(node) || compilerOptions.isolatedModules) {
53 …on = createExternalHelpersImportDeclarationIfNeeded(factory, emitHelpers(), node, compilerOptions);
75 …return getEmitModuleKind(compilerOptions) >= ModuleKind.Node16 ? visitImportEqualsDeclaration(node…
92 …teral(factory, importNode, Debug.checkDefined(currentSourceFile), host, resolver, compilerOptions);
191 … if (compilerOptions.module !== undefined && compilerOptions.module > ModuleKind.ES2015) {
239 …if ((isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {
/third_party/typescript/src/testRunner/unittests/tsbuildWatch/
DprogramUpdates.ts188 compilerOptions: { composite: true, declaration: true },
246compilerOptions: { composite: true, declaration: true, outFile: "index.js" }
252compilerOptions: { composite: true, declaration: true, outFile: "index.js" },
297 content: JSON.stringify({ compilerOptions: { composite: true } })
386 content: JSON.stringify({ compilerOptions: { composite: true } })
510 compilerOptions: {
521 compilerOptions: {
552 …oreConfig: File = { path: coreConfig.path, content: JSON.stringify({ compilerOptions: { composite:…
579 compilerOptions: {
599 compilerOptions: {
[all …]

123456789