Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 4 additions & 32 deletions src/Compiler/Driver/ParseAndCheckInputs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,26 +1159,6 @@ let AddCheckResultsToTcState

ccuSigForFile, tcState

let AddDummyCheckResultsToTcState
(
tcGlobals,
amap,
qualName: QualifiedNameOfFile,
prefixPathOpt,
tcSink,
tcState: TcState,
tcStateForImplFile: TcState,
rootSig
) =
let hadSig = true
let emptyImplFile = CreateEmptyDummyImplFile qualName rootSig
let tcEnvAtEnd = tcStateForImplFile.TcEnvFromImpls

let ccuSigForFile, tcState =
AddCheckResultsToTcState (tcGlobals, amap, hadSig, prefixPathOpt, tcSink, tcState.tcsTcImplEnv, qualName, rootSig) tcState

(tcEnvAtEnd, EmptyTopAttrs, Some emptyImplFile, ccuSigForFile), tcState

/// Typecheck a single file (or interactive entry into F# Interactive)
let CheckOneInputAux
(
Expand Down Expand Up @@ -1347,18 +1327,10 @@ let CheckOneInput

match partialResult with
| Choice1Of2 result -> return result, tcState
| Choice2Of2 (amap, _conditionalDefines, rootSig, _priorErrors, file, tcStateForImplFile, _ccuSigForFile) ->
return
AddDummyCheckResultsToTcState(
tcGlobals,
amap,
file.QualifiedName,
prefixPathOpt,
tcSink,
tcState,
tcStateForImplFile,
rootSig
)
| Choice2Of2 (_amap, _conditionalDefines, rootSig, _priorErrors, file, tcStateForImplFile, ccuSigForFile) ->
let emptyImplFile = CreateEmptyDummyImplFile file.QualifiedName rootSig
let tcEnvAtEnd = tcStateForImplFile.TcEnvFromImpls
return (tcEnvAtEnd, EmptyTopAttrs, Some emptyImplFile, ccuSigForFile), tcState
}

// Within a file, equip loggers to locally filter w.r.t. scope pragmas in each input
Expand Down