@@ -1100,14 +1100,9 @@ let ResolveProvidedTypeNameInEntity (amap, m, typeName, modref: ModuleOrNamespac
11001100| TProvidedNamespaceExtensionPoint( resolutionEnvironment, resolvers) ->
11011101match modref.Deref.PublicPathwith
11021102| Some( PubPath path) ->
1103- let matches = resolvers|> List.map( fun r -> ExtensionTyping.TryResolveProvidedType( r, m, path, typeName))
1104- let tcrefs =
1105- [ for stin matchesdo
1106- match stwith
1107- | None-> ()
1108- | Some st->
1109- yield AddEntityForProvidedType( amap, modref, resolutionEnvironment, st, m) ]
1110- tcrefs
1103+ resolvers
1104+ |> List.choose( fun r -> ExtensionTyping.TryResolveProvidedType( r, m, path, typeName))
1105+ |> List.map( fun st -> AddEntityForProvidedType( amap, modref, resolutionEnvironment, st, m))
11111106| None-> []
11121107
11131108// We have a provided type, look up its nested types (populating them on-demand if necessary)
@@ -1455,20 +1450,18 @@ type TcSymbolUseData =
14551450type TcSymbolUses ( g , capturedNameResolutions :ResizeArray < CapturedNameResolution >, formatSpecifierLocations : ( range * int )[]) =
14561451
14571452// Make sure we only capture the information we really need to report symbol uses
1458- let cnrs = [| for cnrin capturedNameResolutions-> { Item= cnr.Item; ItemOccurence= cnr.ItemOccurence; DisplayEnv= cnr.DisplayEnv; Range= cnr.Range} |]
1453+ let allUsesOfSymbols = [| for cnrin capturedNameResolutions-> { Item= cnr.Item; ItemOccurence= cnr.ItemOccurence; DisplayEnv= cnr.DisplayEnv; Range= cnr.Range} |]
14591454let capturedNameResolutions = ()
14601455do ignore capturedNameResolutions// don't capture this!
14611456
14621457member this.GetUsesOfSymbol ( item ) =
1463- [| for cnr in cnrs do
1464- if protectAssemblyExplorationfalse ( fun () -> ItemsAreEffectivelyEqual g itemcnr .Item) then
1465- yield ( cnr.ItemOccurence , cnr.DisplayEnv , cnr.Range ) |]
1458+ [| for symbolUse in allUsesOfSymbols do
1459+ if protectAssemblyExplorationfalse ( fun () -> ItemsAreEffectivelyEqual g itemsymbolUse .Item) then
1460+ yield symbolUse |]
14661461
1467- member this.GetAllUsesOfSymbols () =
1468- [| for cnrin cnrsdo
1469- yield ( cnr.Item, cnr.ItemOccurence, cnr.DisplayEnv, cnr.Range) |]
1462+ member this.AllUsesOfSymbols = allUsesOfSymbols
14701463
1471- member this.GetFormatSpecifierLocationsAndArity () = formatSpecifierLocations
1464+ member this.GetFormatSpecifierLocationsAndArity () = formatSpecifierLocations
14721465
14731466
14741467/// An accumulator for the results being emitted into the tcSink.