| /third_party/typescript/src/services/ |
| D | documentRegistry.ts | 114 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 118 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 238 …impliedNodeFormat: host && getImpliedNodeFormatForFile(path, host.getCompilerHost?.()?.getModuleRe… 243 …const keyWithMode = getDocumentRegistryBucketKeyWithMode(key, sourceFileOptions.impliedNodeFormat); 330 …ing, compilationSettings: CompilerOptions, scriptKind?: ScriptKind, impliedNodeFormat?: SourceFile… 333 return releaseDocumentWithKey(path, key, scriptKind, impliedNodeFormat); 336 …ath: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind, impliedNodeFormat?: SourceFile… 337 …et = Debug.checkDefined(buckets.get(getDocumentRegistryBucketKeyWithMode(key, impliedNodeFormat)));
|
| D | transpile.ts | 82 …impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, "", compilerHost.getCanonical…
|
| D | suggestionDiagnostics.ts | 9 …const isCommonJSFile = sourceFile.impliedNodeFormat === ModuleKind.CommonJS || fileExtensionIsOneO…
|
| D | services.ts | 1034 impliedNodeFormat: getImpliedNodeFormatForFile( constant 1126 impliedNodeFormat: sourceFile.impliedNodeFormat, constant 1476 …ourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat); 1533 …Settings(program.getCompilerOptions()), oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat); 1637 … documentRegistry.releaseDocumentWithKey(f.resolvedPath, key, f.scriptKind, f.impliedNodeFormat));
|
| D | importTracker.ts | 370 …peReferenceDirectives().get(ref.fileName, ref.resolutionMode || referencingFile.impliedNodeFormat);
|
| D | goToDefinition.ts | 220 …eferenceDirective.fileName, typeReferenceDirective.resolutionMode || sourceFile.impliedNodeFormat);
|
| /third_party/typescript/src/compiler/transformers/module/ |
| D | node.ts | 40 if (currentSourceFile.impliedNodeFormat === ModuleKind.ESNext) { 54 if (currentSourceFile.impliedNodeFormat === ModuleKind.ESNext) { 61 return file.impliedNodeFormat === ModuleKind.ESNext ? esmTransform : cjsTransform;
|
| D | module.ts | 559 if (isImportCall(node) && currentSourceFile.impliedNodeFormat === undefined) {
|
| /third_party/typescript/src/compiler/ |
| D | program.ts | 201 …onst impliedNodeFormat: SourceFile["impliedNodeFormat"] = typeof languageVersionOrOptions === "obj… constant 202 const forImpliedNodeFormat = sourceFileCache.get(impliedNodeFormat); 208 … sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || new Map()).set(key, sourceFile)); 509 impliedNodeFormat?: SourceFile["impliedNodeFormat"]; property 532 if (file.impliedNodeFormat === undefined) return undefined; 558 …export function getModeForUsageLocation(file: {impliedNodeFormat?: SourceFile["impliedNodeFormat"]… 559 if (file.impliedNodeFormat === undefined) return undefined; 575 if (file.impliedNodeFormat !== ModuleKind.ESNext) { 734 …ile.typeReferenceDirectives[index].fileName), resolutionMode || file.impliedNodeFormat)?.packageId; 851 return typeof result === "object" ? result.impliedNodeFormat : result; [all …]
|
| D | moduleSpecifiers.ts | 124 …lerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences… 227 …if (importingSourceFile.impliedNodeFormat && importingSourceFile.impliedNodeFormat !== getModeForR… 260 …lerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences… 820 const importMode = overrideMode || importingSourceFile.impliedNodeFormat;
|
| D | builderState.ts | 301 impliedFormat: sourceFile.impliedNodeFormat
|
| D | watch.ts | 256 switch (file.impliedNodeFormat) {
|
| D | parser.ts | 928 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; 953 impliedNodeFormat: format 960 file.impliedNodeFormat = format; 9660 result.impliedNodeFormat = sourceFile.impliedNodeFormat;
|
| D | checker.ts | 2829 … const result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); 3725 …getModeForUsageLocation(currentSourceFile, contextSpecifier) : currentSourceFile.impliedNodeFormat; 3751 …const isSyncImport = (currentSourceFile.impliedNodeFormat === ModuleKind.CommonJS && !findAncestor… 3756 …if (isSyncImport && sourceFile.impliedNodeFormat === ModuleKind.ESNext && !getResolutionModeOverri… 3999 …ortImportingCommonjsFormatFile(getUsageModeForExpression(reference), targetFile.impliedNodeFormat); 6458 const resolutionMode = overrideImportMode || contextFile?.impliedNodeFormat; 6513 …if (targetFile?.impliedNodeFormat === ModuleKind.ESNext && targetFile.impliedNodeFormat !== contex… 6532 …const swappedMode = contextFile?.impliedNodeFormat === ModuleKind.ESNext ? ModuleKind.CommonJS : M… 33193 if (getSourceFileOfNode(node).impliedNodeFormat !== ModuleKind.ESNext) { 34252 if (sourceFile.impliedNodeFormat === ModuleKind.CommonJS) { [all …]
|
| D | moduleNameResolver.ts | 795 …const mode = !isString(entry) ? entry.resolutionMode || file.impliedNodeFormat : getModeForResolut…
|
| /third_party/typescript/src/compiler/factory/ |
| D | utilities.ts | 485 …ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || sourceFile.impliedNodeFormat === ModuleKi… 544 … && (moduleKind < ModuleKind.ES2015 || node.impliedNodeFormat === ModuleKind.CommonJS);
|
| D | nodeFactory.ts | 5474 node.impliedNodeFormat = source.impliedNodeFormat;
|
| /third_party/typescript/src/services/codefixes/ |
| D | importFixes.ts | 895 …return importingFile.impliedNodeFormat === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.C…
|
| /third_party/typescript/lib/ |
| D | typingsInstaller.js | 14729 …eFile === null || oldSourceFile === void 0 ? void 0 : oldSourceFile.impliedNodeFormat) : oldSource… 20476 …return (file.impliedNodeFormat === ts.ModuleKind.ESNext || (ts.fileExtensionIsOneOf(file.fileName,… 27058 node.impliedNodeFormat = source.impliedNodeFormat; 30642 …uleKind.ES2015 && moduleKind <= ts.ModuleKind.ESNext) || sourceFile.impliedNodeFormat === ts.Modul… 30695 … && (moduleKind < ts.ModuleKind.ES2015 || node.impliedNodeFormat === ts.ModuleKind.CommonJS); 32340 … overrideSetExternalModuleIndicator = _a.setExternalModuleIndicator, format = _a.impliedNodeFormat; 32346 file.impliedNodeFormat = format; 39937 result.impliedNodeFormat = sourceFile.impliedNodeFormat; 44592 …var mode = !ts.isString(entry) ? entry.resolutionMode || file.impliedNodeFormat : ts.getModeForRes… 53064 … var result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); [all …]
|
| D | tsc.js | 11257 …eFile === null || oldSourceFile === void 0 ? void 0 : oldSourceFile.impliedNodeFormat) : oldSource… 16250 …return (file.impliedNodeFormat === ts.ModuleKind.ESNext || (ts.fileExtensionIsOneOf(file.fileName,… 21858 node.impliedNodeFormat = source.impliedNodeFormat; 24749 …uleKind.ES2015 && moduleKind <= ts.ModuleKind.ESNext) || sourceFile.impliedNodeFormat === ts.Modul… 24796 … && (moduleKind < ts.ModuleKind.ES2015 || node.impliedNodeFormat === ts.ModuleKind.CommonJS); 26219 … overrideSetExternalModuleIndicator = _a.setExternalModuleIndicator, format = _a.impliedNodeFormat; 26225 file.impliedNodeFormat = format; 32488 result.impliedNodeFormat = sourceFile.impliedNodeFormat; 36609 …var mode = !ts.isString(entry) ? entry.resolutionMode || file.impliedNodeFormat : ts.getModeForRes… 43807 … var result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); [all …]
|
| D | typescript.d.ts | 2152 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; property 5208 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; 5549 impliedNodeFormat?: SourceFile["impliedNodeFormat"]; 7364 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 7368 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
|
| D | typescriptServices.d.ts | 2152 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; property 5208 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; 5549 impliedNodeFormat?: SourceFile["impliedNodeFormat"]; 7364 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 7368 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
|
| D | tsserverlibrary.d.ts | 2152 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; property 5208 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; 5549 impliedNodeFormat?: SourceFile["impliedNodeFormat"]; 7364 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 7368 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
|
| /third_party/typescript/tests/baselines/reference/api/ |
| D | typescript.d.ts | 2152 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; property 5208 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; 5549 impliedNodeFormat?: SourceFile["impliedNodeFormat"]; 7364 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 7368 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
|
| D | tsserverlibrary.d.ts | 2152 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; property 5208 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS; 5549 impliedNodeFormat?: SourceFile["impliedNodeFormat"]; 7364 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[… 7368 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
|