Skip to content

Commit a7a6c74

Browse files
committed
Initial replacement of heuristic code.
1 parent 2d98905 commit a7a6c74

20 files changed

+1195
-3880
lines changed

src/Compiler/Driver/ParseAndCheckInputs.fs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,10 +1395,6 @@ let CheckOneInput
13951395
)
13961396
}
13971397

1398-
let mutable asts = ConcurrentDictionary<string, ParsedInput>()
1399-
1400-
let mutable fsiBackedInfos = ConcurrentDictionary<string, ModuleOrNamespaceType>()
1401-
14021398
/// Typecheck a single file (or interactive entry into F# Interactive)
14031399
let CheckOneInputAux'
14041400
((checkForErrors,
@@ -1459,10 +1455,6 @@ let CheckOneInputAux'
14591455
let m = qualNameOfFile.Range
14601456
TcOpenModuleOrNamespaceDecl tcSink tcGlobals amap m tcEnv (prefixPath, m)
14611457

1462-
// Save info needed for type-checking .fs file later on
1463-
// printfn $"[{Thread.CurrentThread.ManagedThreadId}] Saving fsiBackedInfos for {file.FileName}"
1464-
fsiBackedInfos[file.FileName] <- sigFileType
1465-
14661458
// printfn $"Finished Processing Sig {file.FileName}"
14671459
return
14681460
fun tcState ->

src/Compiler/Driver/ParseAndCheckInputs.fsi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ val AddCheckResultsToTcState:
152152

153153
type PartialResult = TcEnv * TopAttribs * CheckedImplFile option * ModuleOrNamespaceType
154154

155-
val mutable fsiBackedInfos: System.Collections.Concurrent.ConcurrentDictionary<string, ModuleOrNamespaceType>
156-
157155
type CheckArgs =
158156
CompilationThreadToken * (unit -> bool) * TcConfig * TcImports * TcGlobals * LongIdent option * TcState * (PhasedDiagnostic -> PhasedDiagnostic) * ParsedInput list
159157

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

179-
val mutable asts: System.Collections.Concurrent.ConcurrentDictionary<string, ParsedInput>
180-
181177
/// Check one input, returned as an Eventually computation
182178
val CheckOneInput':
183179
checkForErrors: (unit -> bool) *

0 commit comments

Comments
 (0)