Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions docs/release-notes/.FSharp.Compiler.Service/11.0.200.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
* Transparent compiler: with `enablePartialTypeChecking`, a project that is only referenced by another project is type checked from its signatures. Implementation files that have a signature file are no longer parsed or type checked to produce the referenced assembly. `ParseAndCheckProject` still checks all files. ([PR #20703](https://github.com/dotnet/fsharp/pull/20703))
* With `enablePartialTypeChecking`, a project that is only referenced by another project no longer type checks its implementation files that have a signature file. Producing the referenced assembly only needs the signatures, but finalizing the project also collected the diagnostics of the skipped files, which type checked all of them and kept their results in memory. `ParseAndCheckProject` still reports the diagnostics of these files. ([PR #20699](https://github.com/dotnet/fsharp/pull/20699))

### Improved

* Import: share a referenced project's CCU instead of pickling it ([PR #20416](https://github.com/dotnet/fsharp/pull/20416))

### Changed

* Remove the unused internal `--test:NoErrorText` switch and its argument-only diagnostic formatting. ([PR #20742](https://github.com/dotnet/fsharp/pull/20742))
Expand Down
11 changes: 4 additions & 7 deletions src/Compiler/Driver/CompilerConfig.fs
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,7 @@ type TypeCheckingConfig =
}

[<RequireQualifiedAccess>]
type ImportReuseKey =
{
LangVersion: decimal
CheckNullness: bool
}
type ImportReuseKey = { ImportsNullness: bool }

[<NoEquality; NoComparison>]
type TcConfigBuilder =
Expand Down Expand Up @@ -1421,8 +1417,9 @@ type TcConfig private (data: TcConfigBuilder, validate: bool) =

member _.importReuseKey =
{
ImportReuseKey.LangVersion = data.langVersion.SpecifiedVersion
ImportReuseKey.CheckNullness = data.checkNullness
ImportReuseKey.ImportsNullness =
data.checkNullness
&& data.langVersion.SupportsFeature LanguageFeature.NullnessChecking
}

member _.dumpSignatureData = data.dumpSignatureData
Expand Down
7 changes: 3 additions & 4 deletions src/Compiler/Driver/CompilerConfig.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,10 @@ type TypeCheckingConfig =
DumpGraph: bool
}

/// A field belongs here when two projects differing in it cannot reuse one imported form
/// What two projects must agree on before one can reuse the other's imports. Importing consults the
/// settings in one place only, whether nullable-reference attributes are read into the TAST.
[<RequireQualifiedAccess>]
type ImportReuseKey =
{ LangVersion: decimal
CheckNullness: bool }
type ImportReuseKey = { ImportsNullness: bool }

[<NoEquality; NoComparison>]
type TcConfigBuilder =
Expand Down
Loading
Loading