Searched refs:ModuleKind (Results 1 – 25 of 57) sorted by relevance
123
/third_party/typescript/src/testRunner/unittests/services/ |
D | transpile.ts | 89 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 …]
|
D | documentRegistry.ts | 14 …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/ |
D | convertCompilerOptionsFromJson.ts | 100 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 …]
|
D | configurationExtension.ts | 313 module: ModuleKind.System 322 module: ModuleKind.System
|
/third_party/typescript/src/services/codefixes/ |
D | fixModuleAndTargetOptions.ts | 17 … const moduleOutOfRange = moduleKind >= ModuleKind.ES2015 && moduleKind < ModuleKind.ESNext; 33 if (moduleKind === ModuleKind.CommonJS) {
|
D | importFixes.ts | 401 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) {
|
D | fixInvalidImportSyntax.ts | 14 if (getEmitModuleKind(opts) === ModuleKind.CommonJS) {
|
/third_party/typescript/src/testRunner/ |
D | projectsRunner.ts | 22 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 …]
|
D | test262Runner.ts | 14 module: ts.ModuleKind.CommonJS
|
/third_party/typescript/tests/baselines/reference/ |
D | APISample_transform.js | 21 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); 35 var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
|
D | APISample_compile.js | 44 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS 78 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
D | APISample_watcher.js | 116 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }); 199 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
|
/third_party/typescript/src/compiler/ |
D | transformer.ts | 3 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/ |
D | moduleResolution.ts | 479 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 },
|
D | reuseProgramStructure.ts | 295 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/ |
D | module.ts | 10 … 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 …]
|
D | esnextAnd2015.ts | 77 … if (compilerOptions.module !== undefined && compilerOptions.module > ModuleKind.ES2015) {
|
/third_party/typescript/tests/cases/compiler/ |
D | APISample_transform.ts | 25 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
|
D | APISample_compile.ts | 48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
D | APISample_watcher.ts | 120 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
|
/third_party/typescript/src/testRunner/unittests/tscWatch/ |
D | resolutionCache.ts | 16 … 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 });
|
D | programUpdates.ts | 1068 { 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/ |
D | configureLanguageServiceBuild.ts | 81 compilerOptions: { module: ts.ModuleKind.CommonJS }
|
/third_party/typescript/src/compiler/factory/ |
D | utilities.ts | 408 if (moduleKind >= ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) { 466 && moduleKind !== ModuleKind.System 467 && moduleKind < ModuleKind.ES2015;
|
/third_party/typescript/src/harness/ |
D | evaluatorImpl.ts | 12 module: ts.ModuleKind.CommonJS,
|
123