Skip to content

Commit

Permalink
Initial replacement of heuristic code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Nov 23, 2022
1 parent 2d98905 commit a7a6c74
Show file tree
Hide file tree
Showing 20 changed files with 1,195 additions and 3,880 deletions.
8 changes: 0 additions & 8 deletions src/Compiler/Driver/ParseAndCheckInputs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1395,10 +1395,6 @@ let CheckOneInput
)
}

let mutable asts = ConcurrentDictionary<string, ParsedInput>()

let mutable fsiBackedInfos = ConcurrentDictionary<string, ModuleOrNamespaceType>()

/// Typecheck a single file (or interactive entry into F# Interactive)
let CheckOneInputAux'
((checkForErrors,
Expand Down Expand Up @@ -1459,10 +1455,6 @@ let CheckOneInputAux'
let m = qualNameOfFile.Range
TcOpenModuleOrNamespaceDecl tcSink tcGlobals amap m tcEnv (prefixPath, m)

// Save info needed for type-checking .fs file later on
// printfn $"[{Thread.CurrentThread.ManagedThreadId}] Saving fsiBackedInfos for {file.FileName}"
fsiBackedInfos[file.FileName] <- sigFileType

// printfn $"Finished Processing Sig {file.FileName}"
return
fun tcState ->
Expand Down
4 changes: 0 additions & 4 deletions src/Compiler/Driver/ParseAndCheckInputs.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ val AddCheckResultsToTcState:

type PartialResult = TcEnv * TopAttribs * CheckedImplFile option * ModuleOrNamespaceType

val mutable fsiBackedInfos: System.Collections.Concurrent.ConcurrentDictionary<string, ModuleOrNamespaceType>

type CheckArgs =
CompilationThreadToken * (unit -> bool) * TcConfig * TcImports * TcGlobals * LongIdent option * TcState * (PhasedDiagnostic -> PhasedDiagnostic) * ParsedInput list

Expand All @@ -176,8 +174,6 @@ val CheckOneInput:
skipImplIfSigExists: bool ->
Cancellable<(TcEnv * TopAttribs * CheckedImplFile option * ModuleOrNamespaceType) * TcState>

val mutable asts: System.Collections.Concurrent.ConcurrentDictionary<string, ParsedInput>

/// Check one input, returned as an Eventually computation
val CheckOneInput':
checkForErrors: (unit -> bool) *
Expand Down

0 comments on commit a7a6c74

Please sign in to comment.