Skip to content

Commit

Permalink
Revert "fsxc: also write comments for other preprocessors"
Browse files Browse the repository at this point in the history
This reverts commit a8662ee.
  • Loading branch information
knocte committed Sep 5, 2024
1 parent 1092170 commit 7b9bb84
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions fsxc/Fsxc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -631,21 +631,8 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }
)

match action with
| PreProcessorAction.Skip ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)
| PreProcessorAction.Skip -> ()
| PreProcessorAction.Load fileName ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let file =
FileInfo(
Path.Combine(
Expand All @@ -658,14 +645,6 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }

#if LEGACY_FRAMEWORK
| PreProcessorAction.NugetRef(nugetPkgName, version) ->

File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let downloadedRef =
nugetRefToNormalRef
origScript
Expand All @@ -676,22 +655,9 @@ let fsi = { CommandLineArgs = System.Environment.GetCommandLineArgs() }
#else

| PreProcessorAction.NugetRef(_nugetPkgName, _version) ->
File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)
()
#endif
| PreProcessorAction.Ref refName ->

File.AppendAllText(
autogeneratedFile.FullName,
startCommentInFSharp
+ line
+ Environment.NewLine
)

let maybeFile =
FileInfo(
Path.Combine(
Expand Down

0 comments on commit 7b9bb84

Please sign in to comment.