Home
last modified time | relevance | path

Searched refs:ModuleKind (Results 1 – 25 of 57) sorted by relevance

123

/third_party/typescript/src/testRunner/unittests/services/
Dtranspile.ts89 options: { compilerOptions: { module: ModuleKind.CommonJS } }
94 options: { compilerOptions: { module: ModuleKind.CommonJS } }
98 options: { compilerOptions: { module: ModuleKind.CommonJS } }
102 options: { compilerOptions: { module: ModuleKind.CommonJS } }
106 options: { compilerOptions: { module: ModuleKind.CommonJS } }
110 options: { compilerOptions: { module: ModuleKind.AMD } }
114 … options: { compilerOptions: { module: ModuleKind.CommonJS, newLine: NewLineKind.LineFeed } }
118 …options: { compilerOptions: { module: ModuleKind.System, newLine: NewLineKind.LineFeed }, moduleNa…
122 options: { compilerOptions: { module: ModuleKind.CommonJS }, fileName: "file" }
129 …options: { compilerOptions: { module: ModuleKind.System, newLine: NewLineKind.LineFeed }, renamedD…
[all …]
DdocumentRegistry.ts14 …t compilerOptions: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.AMD };
36 compilerOptions.module = ts.ModuleKind.System;
/third_party/typescript/src/testRunner/unittests/config/
DconvertCompilerOptionsFromJson.ts100 module: ModuleKind.CommonJS,
125 module: ModuleKind.CommonJS,
150 module: ModuleKind.CommonJS,
288 module: ModuleKind.CommonJS,
319 module: ModuleKind.CommonJS,
350 module: ModuleKind.CommonJS,
381 module: ModuleKind.CommonJS,
412 module: ModuleKind.CommonJS,
490 module: ModuleKind.CommonJS,
520 module: ModuleKind.CommonJS,
[all …]
DconfigurationExtension.ts313 module: ModuleKind.System
322 module: ModuleKind.System
/third_party/typescript/src/services/codefixes/
DfixModuleAndTargetOptions.ts17 … const moduleOutOfRange = moduleKind >= ModuleKind.ES2015 && moduleKind < ModuleKind.ESNext;
33 if (moduleKind === ModuleKind.CommonJS) {
DimportFixes.ts401 return getEmitModuleKind(compilerOptions) < ModuleKind.ES2015;
526 case ModuleKind.AMD:
527 case ModuleKind.CommonJS:
528 case ModuleKind.UMD:
533 case ModuleKind.System:
534 case ModuleKind.ES2015:
535 case ModuleKind.ES2020:
536 case ModuleKind.ESNext:
537 case ModuleKind.None:
627 if (getEmitModuleKind(compilerOptions) >= ModuleKind.ES2015) {
DfixInvalidImportSyntax.ts14 if (getEmitModuleKind(opts) === ModuleKind.CommonJS) {
/third_party/typescript/src/testRunner/
DprojectsRunner.ts22 moduleKind: ts.ModuleKind;
76 …stName: string, testCase: ProjectRunnerTestCase & ts.CompilerOptions, _moduleKind: ts.ModuleKind) {
116 moduleKind: ts.ModuleKind;
199 … { name: `@module: commonjs`, payload: { testCase, moduleKind: ts.ModuleKind.CommonJS, vfs: fs } },
200 … { name: `@module: amd`, payload: { testCase, moduleKind: ts.ModuleKind.AMD, vfs: fs } }
283 private getBaselineFolder(moduleKind: ts.ModuleKind) {
310 …private compileProjectFiles(moduleKind: ts.ModuleKind, configFileSourceFiles: readonly ts.SourceFi…
398 function moduleNameToString(moduleKind: ts.ModuleKind) {
399 return moduleKind === ts.ModuleKind.AMD ? "amd" :
400 moduleKind === ts.ModuleKind.CommonJS ? "node" : "none";
[all …]
Dtest262Runner.ts14 module: ts.ModuleKind.CommonJS
/third_party/typescript/tests/baselines/reference/
DAPISample_transform.js21 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
35 var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
DAPISample_compile.js44 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
78 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
DAPISample_watcher.js116 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
199 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
/third_party/typescript/src/compiler/
Dtransformer.ts3 function getModuleTransformer(moduleKind: ModuleKind): TransformerFactory<SourceFile | Bundle> {
5 case ModuleKind.ESNext:
6 case ModuleKind.ES2020:
7 case ModuleKind.ES2015:
9 case ModuleKind.System:
/third_party/typescript/src/testRunner/unittests/
DmoduleResolution.ts479 const options: CompilerOptions = { module: ModuleKind.CommonJS };
606 { module: ModuleKind.AMD },
621 { module: ModuleKind.AMD, forceConsistentCasingInFileNames: true },
658 { module: ModuleKind.AMD, forceConsistentCasingInFileNames: true },
695 { module: ModuleKind.CommonJS, forceConsistentCasingInFileNames: true },
733 { module: ModuleKind.AMD },
771 { module: ModuleKind.CommonJS, forceConsistentCasingInFileNames: true },
849 { module: ModuleKind.CommonJS, forceConsistentCasingInFileNames: true },
902 { module: ModuleKind.CommonJS, forceConsistentCasingInFileNames: true },
918 { module: ModuleKind.CommonJS, forceConsistentCasingInFileNames: true },
DreuseProgramStructure.ts295 const program1 = newProgram(files, ["a.ts"], { target, module: ModuleKind.CommonJS });
296 … const program2 = updateProgram(program1, ["a.ts"], { target, module: ModuleKind.AMD }, noop);
301 …const program1 = newProgram(files, ["a.ts"], { target, module: ModuleKind.CommonJS, rootDir: "/a/b…
302 …const program2 = updateProgram(program1, ["a.ts"], { target, module: ModuleKind.CommonJS, rootDir:…
307 …const program1 = newProgram(files, ["a.ts"], { target, module: ModuleKind.CommonJS, configFilePath…
308 …const program2 = updateProgram(program1, ["a.ts"], { target, module: ModuleKind.CommonJS, configFi…
/third_party/typescript/src/compiler/transformers/module/
Dmodule.ts10 … function getTransformModuleDelegate(moduleKind: ModuleKind): (node: SourceFile) => SourceFile {
12 case ModuleKind.AMD: return transformAMDModule;
13 case ModuleKind.UMD: return transformUMDModule;
441 if (moduleKind === ModuleKind.AMD) {
618 case ModuleKind.AMD:
620 case ModuleKind.UMD:
622 case ModuleKind.CommonJS:
797 if (moduleKind !== ModuleKind.AMD) {
918 if (moduleKind !== ModuleKind.AMD) {
1002 if (moduleKind !== ModuleKind.AMD) {
[all …]
DesnextAnd2015.ts77 … if (compilerOptions.module !== undefined && compilerOptions.module > ModuleKind.ES2015) {
/third_party/typescript/tests/cases/compiler/
DAPISample_transform.ts25 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
DAPISample_compile.ts48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
DAPISample_watcher.ts120 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
/third_party/typescript/src/testRunner/unittests/tscWatch/
DresolutionCache.ts16 … const watch = createWatchOfFilesAndCompilerOptions([root.path], host, { module: ModuleKind.AMD });
117 … const watch = createWatchOfFilesAndCompilerOptions([root.path], host, { module: ModuleKind.AMD });
158 … const watch = createWatchOfFilesAndCompilerOptions([root.path], host, { module: ModuleKind.AMD });
DprogramUpdates.ts1068 { module: ModuleKind.AMD }
1073 { module: ModuleKind.AMD, outFile: "build/outFile.js" }
1078 { module: ModuleKind.AMD, outDir: "build" }
1083 { module: ModuleKind.AMD, declaration: true }
1088 … { module: ModuleKind.AMD, outDir: "build", declaration: true, declarationDir: "decls" }
1093 { module: ModuleKind.AMD, declaration: true, declarationDir: "decls" }
/third_party/typescript/scripts/
DconfigureLanguageServiceBuild.ts81 compilerOptions: { module: ts.ModuleKind.CommonJS }
/third_party/typescript/src/compiler/factory/
Dutilities.ts408 if (moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) {
466 && moduleKind !== ModuleKind.System
467 && moduleKind < ModuleKind.ES2015;
/third_party/typescript/src/harness/
DevaluatorImpl.ts12 module: ts.ModuleKind.CommonJS,

123