From 72306804be6a63434eaf8c9c7a15b0beacf2c498 Mon Sep 17 00:00:00 2001 From: nojaf Date: Sat, 2 Dec 2023 12:54:57 +0100 Subject: [PATCH] Don't pass checker in CompilerImpl. --- src/Fable.Cli/Main.fs | 11 +---------- src/Fable.Compiler/Library.fs | 2 -- src/Fable.Transforms/State.fs | 2 -- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Fable.Cli/Main.fs b/src/Fable.Cli/Main.fs index 82fb635c3f..fe23dfb95e 100644 --- a/src/Fable.Cli/Main.fs +++ b/src/Fable.Cli/Main.fs @@ -459,14 +459,7 @@ type ProjectCracked member _.FableLibDir = crackerResponse.FableLibDir member _.FableModulesDir = crackerResponse.FableModulesDir - member _.MakeCompiler - ( - checker: InteractiveChecker, - currentFile, - project, - ?triggeredByDependency - ) - = + member _.MakeCompiler(currentFile, project, ?triggeredByDependency) = let opts = match triggeredByDependency with | Some t -> @@ -483,7 +476,6 @@ type ProjectCracked None CompilerImpl( - checker, currentFile, project, opts, @@ -635,7 +627,6 @@ and FableCompiler async { let com = projCracked.MakeCompiler( - checker, fileName, fableProj, triggeredByDependency = diff --git a/src/Fable.Compiler/Library.fs b/src/Fable.Compiler/Library.fs index c18948c16b..799003610e 100644 --- a/src/Fable.Compiler/Library.fs +++ b/src/Fable.Compiler/Library.fs @@ -176,7 +176,6 @@ let compileProjectToJavaScript let compiler: Compiler = CompilerImpl( - checker, currentFile, fableProj, opts, @@ -253,7 +252,6 @@ let compileFileToJavaScript let compiler: Compiler = CompilerImpl( - checker, currentFile, fableProj, opts, diff --git a/src/Fable.Transforms/State.fs b/src/Fable.Transforms/State.fs index 6ba135e047..c6f6d85f96 100644 --- a/src/Fable.Transforms/State.fs +++ b/src/Fable.Transforms/State.fs @@ -315,7 +315,6 @@ type Log = /// Not thread-safe, an instance must be created per file type CompilerImpl ( - checker: InteractiveChecker, currentFile, project: Project, options, @@ -369,7 +368,6 @@ type CompilerImpl |> Path.getRelativeFileOrDirPath false file true CompilerImpl( - checker, file, project, options,