@@ -1074,8 +1074,7 @@ let GetNestedTypesOfType (ad, ncenv:NameResolver, optFilter, staticResInfo, chec
10741074
10751075 | _ ->
10761076#endif
1077- mty.TypesByAccessNames.Values
1078- |> Seq.toList
1077+ mty.TypesByAccessNames.Values
10791078 |> List.map ( tcref.NestedTyconRef >> MakeNestedType ncenv tinst m)
10801079 |> List.filter ( IsTypeAccessible g ncenv.amap m ad)
10811080 else [])
@@ -1540,8 +1539,7 @@ let CheckForTypeLegitimacyAndMultipleGenericTypeAmbiguities
15401539 let tcrefs =
15411540 tcrefs
15421541 // remove later duplicates (if we've opened the same module more than once)
1543- |> Seq.distinctBy ( fun ( _ , tcref ) -> tcref.Stamp)
1544- |> Seq.toList
1542+ |> List.distinctBy ( fun ( _ , tcref ) -> tcref.Stamp)
15451543 // List.sortBy is a STABLE sort (the order matters!)
15461544 |> List.sortBy ( fun ( _ , tcref ) -> tcref.Typars( m) .Length)
15471545
@@ -3085,9 +3083,8 @@ let rec ResolvePartialLongIdentInModuleOrNamespace (ncenv: NameResolver) nenv is
30853083
30863084 let ilTyconNames =
30873085 mty.TypesByAccessNames.Values
3088- |> Seq.toList
30893086 |> List.choose ( fun ( tycon : Tycon ) -> if tycon.IsILTycon then Some tycon.DisplayName else None)
3090- |> Set.ofSeq
3087+ |> Set.ofList
30913088
30923089 match plid with
30933090 | [] ->
@@ -3168,17 +3165,15 @@ let rec ResolvePartialLongIdentPrim (ncenv: NameResolver) (nenv: NameResolutionE
31683165
31693166 let ilTyconNames =
31703167 nenv.TyconsByAccessNames( fullyQualified) .Values
3171- |> Seq.toList
31723168 |> List.choose ( fun tyconRef -> if tyconRef.IsILTycon then Some tyconRef.DisplayName else None)
3173- |> Set.ofSeq
3169+ |> Set.ofList
31743170
31753171 /// Include all the entries in the eUnqualifiedItems table.
31763172 let unqualifiedItems =
31773173 match fullyQualified with
31783174 | FullyQualified -> []
31793175 | OpenQualified ->
31803176 nenv.eUnqualifiedItems.Values
3181- |> Seq.toList
31823177 |> List.filter ( function Item.UnqualifiedType _ -> false | _ -> true )
31833178 |> List.filter ( ItemIsUnseen ad g ncenv.amap m >> not )
31843179
@@ -3201,7 +3196,6 @@ let rec ResolvePartialLongIdentPrim (ncenv: NameResolver) (nenv: NameResolutionE
32013196
32023197 let tycons =
32033198 nenv.TyconsByDemangledNameAndArity( fullyQualified) .Values
3204- |> Seq.toList
32053199 |> List.filter ( fun tcref -> not ( tcref.LogicalName.Contains( " ," )))
32063200 |> List.filter ( fun tcref -> not tcref.IsExceptionDecl)
32073201 |> List.filter ( IsTyconUnseen ad g ncenv.amap m >> not )
@@ -3210,7 +3204,6 @@ let rec ResolvePartialLongIdentPrim (ncenv: NameResolver) (nenv: NameResolutionE
32103204 // Get all the constructors accessible from here
32113205 let constructors =
32123206 nenv.TyconsByDemangledNameAndArity( fullyQualified) .Values
3213- |> Seq.toList
32143207 |> List.filter ( IsTyconUnseen ad g ncenv.amap m >> not )
32153208 |> List.collect ( InfosForTyconConstructors ncenv m ad)
32163209
@@ -3266,9 +3259,8 @@ let rec ResolvePartialLongIdentInModuleOrNamespaceForRecordFields (ncenv: NameRe
32663259
32673260 let ilTyconNames =
32683261 mty.TypesByAccessNames.Values
3269- |> Seq.toList
32703262 |> List.choose ( fun ( tycon : Tycon ) -> if tycon.IsILTycon then Some tycon.DisplayName else None)
3271- |> Set.ofSeq
3263+ |> Set.ofList
32723264
32733265 match plid with
32743266 | [] ->
@@ -3333,9 +3325,8 @@ and ResolvePartialLongIdentToClassOrRecdFieldsImpl (ncenv: NameResolver) (nenv:
33333325 // empty plid - return namespaces\modules\record types\accessible fields
33343326 let iltyconNames =
33353327 nenv.TyconsByAccessNames( fullyQualified) .Values
3336- |> Seq.toList
33373328 |> List.choose ( fun tyconRef -> if tyconRef.IsILTycon then Some tyconRef.DisplayName else None)
3338- |> Set.ofSeq
3329+ |> Set.ofList
33393330
33403331 let mods =
33413332 nenv.ModulesAndNamespaces( fullyQualified)
@@ -3348,7 +3339,6 @@ and ResolvePartialLongIdentToClassOrRecdFieldsImpl (ncenv: NameResolver) (nenv:
33483339
33493340 let recdTyCons =
33503341 nenv.TyconsByDemangledNameAndArity( fullyQualified) .Values
3351- |> Seq.toList
33523342 |> List.filter ( fun tcref -> not ( tcref.LogicalName.Contains( " ," )))
33533343 |> List.filter ( fun tcref -> tcref.IsRecordTycon)
33543344 |> List.filter ( IsTyconUnseen ad g ncenv.amap m >> not )
0 commit comments