Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab0d7a7

Browse files
dsymeKevinRansom
authored andcommitted
don't keep tcEnvAtEnd for background states unless keepAllBackgroundResolutions=true (dotnet#2388)
1 parent8e66eca commitab0d7a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/fsharp/vs/IncrementalBuild.fs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,8 +1427,8 @@ type IncrementalBuilder(frameworkTcImportsCache: FrameworkImportsCache, tcConfig
14271427
errorLogger.Warning(e)
14281428
frameworkTcImports
14291429

1430-
lettcEnvAtEndOfFile= GetInitialTcEnv(assemblyName, rangeStartup, tcConfig, tcImports, tcGlobals)
1431-
lettcState= GetInitialTcState(rangeStartup, assemblyName, tcConfig, tcGlobals, tcImports, niceNameGen,tcEnvAtEndOfFile)
1430+
lettcInitial= GetInitialTcEnv(assemblyName, rangeStartup, tcConfig, tcImports, tcGlobals)
1431+
lettcState= GetInitialTcState(rangeStartup, assemblyName, tcConfig, tcGlobals, tcImports, niceNameGen,tcInitial)
14321432
letloadClosureErrors=
14331433
[match loadClosureOptwith
14341434
| None->()
@@ -1442,7 +1442,7 @@ type IncrementalBuilder(frameworkTcImportsCache: FrameworkImportsCache, tcConfig
14421442
tcImports=tcImports
14431443
tcState=tcState
14441444
tcConfig=tcConfig
1445-
tcEnvAtEndOfFile=tcEnvAtEndOfFile
1445+
tcEnvAtEndOfFile=tcInitial
14461446
tcResolutions=[]
14471447
tcSymbolUses=[]
14481448
topAttribs=None
@@ -1479,6 +1479,7 @@ type IncrementalBuilder(frameworkTcImportsCache: FrameworkImportsCache, tcConfig
14791479
/// Only keep the typed interface files when doing a "full" build for fsc.exe, otherwise just throw them away
14801480
lettypedImplFiles=if keepAssemblyContentsthen typedImplFileselse[]
14811481
lettcResolutions=if keepAllBackgroundResolutionsthen sink.GetResolutions()else TcResolutions.Empty
1482+
lettcEnvAtEndOfFile=(if keepAllBackgroundResolutionsthen tcEnvAtEndOfFileelse tcState.TcEnvFromImpls)
14821483
lettcSymbolUses= sink.GetSymbolUses()
14831484
fileChecked.Trigger(filename)
14841485
return{tcAccwith tcState=tcState

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp