@@ -1984,7 +1984,7 @@ type ExceptionInfo =
19841984
19851985/// Represents the contents of a module or namespace
19861986[<Sealed; StructuredFormatDisplay( " {DebugText}" ) >]
1987- type ModuleOrNamespaceType ( kind : ModuleOrNamespaceKind , vals : QueueList < Val >, entities : QueueList < Entity >) =
1987+ type ModuleOrNamespaceType ( kind : ModuleOrNamespaceKind , vals : CachedDList < Val >, entities : CachedDList < Entity >) =
19881988
19891989 /// Mutation used during compilation of FSharp.Core.dll
19901990 let mutable entities = entities
@@ -2030,15 +2030,15 @@ type ModuleOrNamespaceType(kind: ModuleOrNamespaceKind, vals: QueueList<Val>, en
20302030
20312031 /// Mutation used during compilation of FSharp.Core.dll
20322032 member _.AddModuleOrNamespaceByMutation ( modul : ModuleOrNamespace ) =
2033- entities <- QueueList .appendOne entities modul
2033+ entities <- CachedDList .appendOne entities modul
20342034 modulesByDemangledNameCache <- None
20352035 allEntitiesByMangledNameCache <- None
20362036 allEntitiesByLogicalMangledNameCache <- None
20372037
20382038#if ! NO_ TYPEPROVIDERS
20392039 /// Mutation used in hosting scenarios to hold the hosted types in this module or namespace
20402040 member mtyp.AddProvidedTypeEntity ( entity : Entity ) =
2041- entities <- QueueList .appendOne entities entity
2041+ entities <- CachedDList .appendOne entities entity
20422042 tyconsByMangledNameCache <- None
20432043 tyconsByDemangledNameAndArityCache <- None
20442044 tyconsByAccessNamesCache <- None
@@ -2098,13 +2098,13 @@ type ModuleOrNamespaceType(kind: ModuleOrNamespaceKind, vals: QueueList<Val>, en
20982098 else NameMap.add name2 x tab
20992099
21002100 cacheOptByref & allEntitiesByMangledNameCache ( fun () ->
2101- QueueList .foldBack addEntityByMangledName entities Map.empty)
2101+ CachedDList .foldBack addEntityByMangledName entities Map.empty)
21022102
21032103 /// Get a table of entities indexed by logical name
21042104 member _.AllEntitiesByLogicalMangledName : NameMap < Entity > =
21052105 let addEntityByMangledName ( x : Entity ) tab = NameMap.add x.LogicalName x tab
21062106 cacheOptByref & allEntitiesByLogicalMangledNameCache ( fun () ->
2107- QueueList .foldBack addEntityByMangledName entities Map.empty)
2107+ CachedDList .foldBack addEntityByMangledName entities Map.empty)
21082108
21092109 /// Get a table of values and members indexed by partial linkage key, which includes name, the mangled name of the parent type (if any),
21102110 /// and the method argument count (if any).
@@ -2116,7 +2116,7 @@ type ModuleOrNamespaceType(kind: ModuleOrNamespaceKind, vals: QueueList<Val>, en
21162116 else
21172117 tab
21182118 cacheOptByref & allValsAndMembersByPartialLinkageKeyCache ( fun () ->
2119- QueueList .foldBack addValByMangledName vals MultiMap.empty)
2119+ CachedDList .foldBack addValByMangledName vals MultiMap.empty)
21202120
21212121 /// Try to find the member with the given linkage key in the given module.
21222122 member mtyp.TryLinkVal ( ccu : CcuThunk , key : ValLinkageFullKey ) =
@@ -2137,7 +2137,7 @@ type ModuleOrNamespaceType(kind: ModuleOrNamespaceKind, vals: QueueList<Val>, en
21372137 else
21382138 tab
21392139 cacheOptByref & allValsByLogicalNameCache ( fun () ->
2140- QueueList .foldBack addValByName vals Map.empty)
2140+ CachedDList .foldBack addValByName vals Map.empty)
21412141
21422142 /// Compute a table of values and members indexed by logical name.
21432143 member _.AllValsAndMembersByLogicalNameUncached =
@@ -2146,7 +2146,7 @@ type ModuleOrNamespaceType(kind: ModuleOrNamespaceKind, vals: QueueList<Val>, en
21462146 MultiMap.add x.LogicalName x tab
21472147 else
21482148 tab
2149- QueueList .foldBack addValByName vals MultiMap.empty
2149+ CachedDList .foldBack addValByName vals MultiMap.empty
21502150
21512151 /// Get a table of F# exception definitions indexed by demangled name, so 'FailureException' is indexed by 'Failure'
21522152 member mtyp.ExceptionDefinitionsByDemangledName =
@@ -2161,7 +2161,7 @@ type ModuleOrNamespaceType(kind: ModuleOrNamespaceKind, vals: QueueList<Val>, en
21612161 NameMap.add entity.DemangledModuleOrNamespaceName entity acc
21622162 else acc
21632163 cacheOptByref & modulesByDemangledNameCache ( fun () ->
2164- QueueList .foldBack add entities Map.empty)
2164+ CachedDList .foldBack add entities Map.empty)
21652165
21662166 [<DebuggerBrowsable( DebuggerBrowsableState.Never) >]
21672167 member mtyp.DebugText = mtyp.ToString()
@@ -6041,7 +6041,7 @@ type Construct() =
60416041
60426042 /// Create a new node for the contents of a module or namespace
60436043 static member NewModuleOrNamespaceType mkind tycons vals =
6044- ModuleOrNamespaceType( mkind, QueueList .ofList vals, QueueList .ofList tycons)
6044+ ModuleOrNamespaceType( mkind, CachedDList .ofList vals, CachedDList .ofList tycons)
60456045
60466046 /// Create a new node for an empty module or namespace contents
60476047 static member NewEmptyModuleOrNamespaceType mkind =
@@ -6129,7 +6129,7 @@ type Construct() =
61296129 entity_ typars= LazyWithContext.NotLazy []
61306130 entity_ tycon_ repr = repr
61316131 entity_ tycon_ tcaug= TyconAugmentation.Create()
6132- entity_ modul_ type = MaybeLazy.Lazy( InterruptibleLazy( fun _ -> ModuleOrNamespaceType( Namespace true , QueueList .ofList [], QueueList .ofList [])))
6132+ entity_ modul_ type = MaybeLazy.Lazy( InterruptibleLazy( fun _ -> ModuleOrNamespaceType( Namespace true , CachedDList .ofList [], CachedDList .ofList [])))
61336133 // Generated types get internal accessibility
61346134 entity_ pubpath = Some pubpath
61356135 entity_ cpath = Some cpath
0 commit comments