@@ -341,7 +341,7 @@ let AddNonLocalCcu g amap scopem env assemblyName (ccu: CcuThunk, internalsVisib
341
341
env
342
342
343
343
/// Adjust the TcEnv to account for a fully processed "namespace" declaration in this file
344
- let AddLocalRootModuleOrNamespace tcSink g amap scopem env ( moduleTy : ModuleOrNamespaceType ) =
344
+ let AddLocalRootModuleOrNamespace g amap scopem env ( moduleTy : ModuleOrNamespaceType ) =
345
345
// Compute the top-rooted module or namespace references
346
346
let modrefs = moduleTy.ModuleAndNamespaceDefinitions |> List.map mkLocalModuleRef
347
347
// Compute the top-rooted type definitions
@@ -350,7 +350,6 @@ let AddLocalRootModuleOrNamespace tcSink g amap scopem env (moduleTy: ModuleOrNa
350
350
let env = { env with
351
351
eNameResEnv = if isNil tcrefs then env.eNameResEnv else AddTyconRefsToNameEnv BulkAdd.No false g amap env.eAccessRights scopem true env.eNameResEnv tcrefs
352
352
eUngeneralizableItems = addFreeItemOfModuleTy moduleTy env.eUngeneralizableItems }
353
- CallEnvSink tcSink ( scopem, env.NameEnv, env.eAccessRights)
354
353
env
355
354
356
355
/// Inside "namespace X.Y.Z" there is an implicit open of "X.Y.Z"
@@ -4978,7 +4977,7 @@ let rec TcSignatureElementNonMutRec (cenv: cenv) parent typeNames endm (env: TcE
4978
4977
CallNameResolutionSink cenv.tcSink ( moduleEntity.Range, env.NameEnv, item, emptyTyparInst, ItemOccurrence.Binding, env.AccessRights))
4979
4978
4980
4979
// For 'namespace rec' and 'module rec' we add the thing being defined
4981
- let envNS = if isRec then AddLocalRootModuleOrNamespace cenv.tcSink g cenv.amap m envNS modTyRoot else envNS
4980
+ let envNS = if isRec then AddLocalRootModuleOrNamespace g cenv.amap m envNS modTyRoot else envNS
4982
4981
let nsInfo = Some ( modulNSOpt, envNS.eModuleOrNamespaceTypeAccumulator)
4983
4982
let mutRecNSInfo = if isRec then nsInfo else None
4984
4983
@@ -4990,7 +4989,7 @@ let rec TcSignatureElementNonMutRec (cenv: cenv) parent typeNames endm (env: TcE
4990
4989
if isNil enclosingNamespacePath then
4991
4990
envAtEnd
4992
4991
else
4993
- let env = AddLocalRootModuleOrNamespace cenv.tcSink g cenv.amap m env modTyRoot
4992
+ let env = AddLocalRootModuleOrNamespace g cenv.amap m env modTyRoot
4994
4993
4995
4994
// If the namespace is an interactive fragment e.g. FSI_0002, then open FSI_0002 in the subsequent environment.
4996
4995
let env , _openDecls =
@@ -5440,7 +5439,7 @@ let rec TcModuleOrNamespaceElementNonMutRec (cenv: cenv) parent typeNames scopem
5440
5439
CallNameResolutionSink cenv.tcSink ( moduleEntity.Range, env.NameEnv, item, emptyTyparInst, ItemOccurrence.Binding, env.AccessRights))
5441
5440
5442
5441
// For 'namespace rec' and 'module rec' we add the thing being defined
5443
- let envNS = if isRec then AddLocalRootModuleOrNamespace cenv.tcSink g cenv.amap m envNS modTyRoot else envNS
5442
+ let envNS = if isRec then AddLocalRootModuleOrNamespace g cenv.amap m envNS modTyRoot else envNS
5444
5443
let nsInfo = Some ( modulNSOpt, envNS.eModuleOrNamespaceTypeAccumulator)
5445
5444
let mutRecNSInfo = if isRec then nsInfo else None
5446
5445
@@ -5453,7 +5452,7 @@ let rec TcModuleOrNamespaceElementNonMutRec (cenv: cenv) parent typeNames scopem
5453
5452
if isNil enclosingNamespacePath then
5454
5453
envAtEnd, []
5455
5454
else
5456
- let env = AddLocalRootModuleOrNamespace cenv.tcSink g cenv.amap m env modTyRoot
5455
+ let env = AddLocalRootModuleOrNamespace g cenv.amap m env modTyRoot
5457
5456
5458
5457
// If the namespace is an interactive fragment e.g. FSI_0002, then open FSI_0002 in the subsequent environment
5459
5458
let env , openDecls =
0 commit comments