Home
last modified time | relevance | path

Searched refs:impliedNodeFormat (Results 1 – 25 of 29) sorted by relevance

12

/third_party/typescript/src/services/
DdocumentRegistry.ts114 …ring, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
118 …path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile[…
238impliedNodeFormat: 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)));
Dtranspile.ts82impliedNodeFormat: getImpliedNodeFormatForFile(toPath(inputFileName, "", compilerHost.getCanonical…
DsuggestionDiagnostics.ts9 …const isCommonJSFile = sourceFile.impliedNodeFormat === ModuleKind.CommonJS || fileExtensionIsOneO…
Dservices.ts1034 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));
DimportTracker.ts370 …peReferenceDirectives().get(ref.fileName, ref.resolutionMode || referencingFile.impliedNodeFormat);
DgoToDefinition.ts220 …eferenceDirective.fileName, typeReferenceDirective.resolutionMode || sourceFile.impliedNodeFormat);
/third_party/typescript/src/compiler/transformers/module/
Dnode.ts40 if (currentSourceFile.impliedNodeFormat === ModuleKind.ESNext) {
54 if (currentSourceFile.impliedNodeFormat === ModuleKind.ESNext) {
61 return file.impliedNodeFormat === ModuleKind.ESNext ? esmTransform : cjsTransform;
Dmodule.ts559 if (isImportCall(node) && currentSourceFile.impliedNodeFormat === undefined) {
/third_party/typescript/src/compiler/
Dprogram.ts201 …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 …]
DmoduleSpecifiers.ts124 …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;
DbuilderState.ts301 impliedFormat: sourceFile.impliedNodeFormat
Dwatch.ts256 switch (file.impliedNodeFormat) {
Dparser.ts928 impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
953 impliedNodeFormat: format
960 file.impliedNodeFormat = format;
9660 result.impliedNodeFormat = sourceFile.impliedNodeFormat;
Dchecker.ts2829 … 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 …]
DmoduleNameResolver.ts795 …const mode = !isString(entry) ? entry.resolutionMode || file.impliedNodeFormat : getModeForResolut…
/third_party/typescript/src/compiler/factory/
Dutilities.ts485 …ModuleKind.ES2015 && moduleKind <= ModuleKind.ESNext) || sourceFile.impliedNodeFormat === ModuleKi…
544 … && (moduleKind < ModuleKind.ES2015 || node.impliedNodeFormat === ModuleKind.CommonJS);
DnodeFactory.ts5474 node.impliedNodeFormat = source.impliedNodeFormat;
/third_party/typescript/src/services/codefixes/
DimportFixes.ts895 …return importingFile.impliedNodeFormat === ModuleKind.ESNext ? ImportKind.Namespace : ImportKind.C…
/third_party/typescript/lib/
DtypingsInstaller.js14729 …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 …]
Dtsc.js11257 …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 …]
Dtypescript.d.ts2152 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[…
DtypescriptServices.d.ts2152 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[…
Dtsserverlibrary.d.ts2152 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/
Dtypescript.d.ts2152 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[…
Dtsserverlibrary.d.ts2152 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[…

12