Skip to content

Commit d3fd0b7

Browse files
committed
Minor cleanup
1 parent c0fde6d commit d3fd0b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/fsharp/FSharp.Compiler.Service/service_slim.fs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ open FSharp.Compiler.AbstractIL
1515
open FSharp.Compiler.AbstractIL.IL
1616
open FSharp.Compiler.AbstractIL.ILBinaryReader
1717
open FSharp.Compiler.CodeAnalysis
18-
1918
open FSharp.Compiler.CheckExpressions
2019
open FSharp.Compiler.CheckDeclarations
2120
open FSharp.Compiler.CompilerConfig
@@ -123,7 +122,9 @@ type internal CompilerStateCache(projectOptions: FSharpProjectOptions) as this =
123122
member x.Reset() =
124123
lock lockObj (fun () -> compilerStateLazy <- lazy initializeCompilerState())
125124

126-
type InteractiveChecker internal (compilerStateCache) =
125+
[<AutoOpen>]
126+
module internal ParseAndCheck =
127+
127128
let userOpName = "Unknown"
128129
let suggestNamesForErrors = true
129130

@@ -224,6 +225,9 @@ type InteractiveChecker internal (compilerStateCache) =
224225
errors |> Array.iter (Array.sortInPlaceBy (fun x -> x.StartLine, x.StartColumn))
225226
errors |> Array.concat
226227

228+
229+
type InteractiveChecker internal (compilerStateCache) =
230+
227231
static member Create(projectOptions: FSharpProjectOptions) =
228232
InteractiveChecker(CompilerStateCache(projectOptions))
229233

0 commit comments

Comments
 (0)