@@ -341,7 +341,7 @@ let AddNonLocalCcu g amap scopem env assemblyName (ccu: CcuThunk, internalsVisib
341341 env
342342
343343/// 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 ) =
345345 // Compute the top-rooted module or namespace references
346346 let modrefs = moduleTy.ModuleAndNamespaceDefinitions |> List.map mkLocalModuleRef
347347 // Compute the top-rooted type definitions
@@ -350,7 +350,6 @@ let AddLocalRootModuleOrNamespace tcSink g amap scopem env (moduleTy: ModuleOrNa
350350 let env = { env with
351351 eNameResEnv = if isNil tcrefs then env.eNameResEnv else AddTyconRefsToNameEnv BulkAdd.No false g amap env.eAccessRights scopem true env.eNameResEnv tcrefs
352352 eUngeneralizableItems = addFreeItemOfModuleTy moduleTy env.eUngeneralizableItems }
353- CallEnvSink tcSink ( scopem, env.NameEnv, env.eAccessRights)
354353 env
355354
356355/// 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
49784977 CallNameResolutionSink cenv.tcSink ( moduleEntity.Range, env.NameEnv, item, emptyTyparInst, ItemOccurrence.Binding, env.AccessRights))
49794978
49804979 // 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
49824981 let nsInfo = Some ( modulNSOpt, envNS.eModuleOrNamespaceTypeAccumulator)
49834982 let mutRecNSInfo = if isRec then nsInfo else None
49844983
@@ -4990,7 +4989,7 @@ let rec TcSignatureElementNonMutRec (cenv: cenv) parent typeNames endm (env: TcE
49904989 if isNil enclosingNamespacePath then
49914990 envAtEnd
49924991 else
4993- let env = AddLocalRootModuleOrNamespace cenv.tcSink g cenv.amap m env modTyRoot
4992+ let env = AddLocalRootModuleOrNamespace g cenv.amap m env modTyRoot
49944993
49954994 // If the namespace is an interactive fragment e.g. FSI_0002, then open FSI_0002 in the subsequent environment.
49964995 let env , _openDecls =
@@ -5440,7 +5439,7 @@ let rec TcModuleOrNamespaceElementNonMutRec (cenv: cenv) parent typeNames scopem
54405439 CallNameResolutionSink cenv.tcSink ( moduleEntity.Range, env.NameEnv, item, emptyTyparInst, ItemOccurrence.Binding, env.AccessRights))
54415440
54425441 // 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
54445443 let nsInfo = Some ( modulNSOpt, envNS.eModuleOrNamespaceTypeAccumulator)
54455444 let mutRecNSInfo = if isRec then nsInfo else None
54465445
@@ -5453,7 +5452,7 @@ let rec TcModuleOrNamespaceElementNonMutRec (cenv: cenv) parent typeNames scopem
54535452 if isNil enclosingNamespacePath then
54545453 envAtEnd, []
54555454 else
5456- let env = AddLocalRootModuleOrNamespace cenv.tcSink g cenv.amap m env modTyRoot
5455+ let env = AddLocalRootModuleOrNamespace g cenv.amap m env modTyRoot
54575456
54585457 // If the namespace is an interactive fragment e.g. FSI_0002, then open FSI_0002 in the subsequent environment
54595458 let env , openDecls =
0 commit comments