Revert "Make sure impliedNodeFormat is set for the sourceFile"

This reverts commit 651a47fdd6.
This commit is contained in:
Sheetal Nandi
2022-10-31 10:22:35 -07:00
parent 651a47fdd6
commit 2c22989bd5
-2
View File
@@ -1734,7 +1734,6 @@ namespace ts {
if (!newSourceFile) {
return StructureIsReused.Not;
}
newSourceFile.impliedNodeFormat = sourceFileOptions.impliedNodeFormat;
newSourceFile.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined;
newSourceFile.packageJsonScope = sourceFileOptions.packageJsonScope;
@@ -2969,7 +2968,6 @@ namespace ts {
file.path = path;
file.resolvedPath = toPath(fileName);
file.originalFileName = originalFileName;
file.impliedNodeFormat = sourceFileOptions.impliedNodeFormat;
file.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined;
file.packageJsonScope = sourceFileOptions.packageJsonScope;
addFileIncludeReason(file, reason);