Skip to content

Commit

Permalink
Don't pass checker in CompilerImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Dec 6, 2023
1 parent 7128763 commit 7230680
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
11 changes: 1 addition & 10 deletions src/Fable.Cli/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand All @@ -483,7 +476,6 @@ type ProjectCracked
None

CompilerImpl(
checker,
currentFile,
project,
opts,
Expand Down Expand Up @@ -635,7 +627,6 @@ and FableCompiler
async {
let com =
projCracked.MakeCompiler(
checker,
fileName,
fableProj,
triggeredByDependency =
Expand Down
2 changes: 0 additions & 2 deletions src/Fable.Compiler/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ let compileProjectToJavaScript

let compiler: Compiler =
CompilerImpl(
checker,
currentFile,
fableProj,
opts,
Expand Down Expand Up @@ -253,7 +252,6 @@ let compileFileToJavaScript

let compiler: Compiler =
CompilerImpl(
checker,
currentFile,
fableProj,
opts,
Expand Down
2 changes: 0 additions & 2 deletions src/Fable.Transforms/State.fs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ type Log =
/// Not thread-safe, an instance must be created per file
type CompilerImpl
(
checker: InteractiveChecker,
currentFile,
project: Project,
options,
Expand Down Expand Up @@ -369,7 +368,6 @@ type CompilerImpl
|> Path.getRelativeFileOrDirPath false file true

CompilerImpl(
checker,
file,
project,
options,
Expand Down

0 comments on commit 7230680

Please sign in to comment.