Skip to content

Commit

Permalink
Revert "Make sure impliedNodeFormat is set for the sourceFile"
Browse files Browse the repository at this point in the history
This reverts commit 651a47f.
  • Loading branch information
sheetalkamat committed Oct 31, 2022
1 parent 651a47f commit 2c22989
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2c22989

Please sign in to comment.