Skip to content

Commit b18f302

Browse files
author
7sharp9
committed
Fixed typo, and switched to IList
1 parent 1e39ba4 commit b18f302

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/fsharp/vs/Symbols.fs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,19 +1034,20 @@ and FSharpMemberOrFunctionOrValue(cenv, d:FSharpMemberOrValData, item) =
10341034
| Some v -> Some v.Range
10351035
| None -> base.DeclarationLocation
10361036

1037-
member x.Overloads matchParamterNumber=
1037+
member x.Overloads matchParameterNumber =
10381038
checkIsResolved()
10391039
match d with
10401040
| M m ->
10411041
match item with
10421042
| Item.MethodGroup (_name, methodInfos) ->
10431043
let methods =
1044-
if matchParamterNumber then
1044+
if matchParameterNumber then
10451045
methodInfos
10461046
|> List.filter (fun methodInfo -> not (methodInfo.NumArgs = m.NumArgs) )
10471047
else methodInfos
10481048
methods
10491049
|> List.map (fun mi -> FSharpMemberOrFunctionOrValue(cenv, M mi, item))
1050+
|> makeReadOnlyCollection
10501051
|> Some
10511052
| _ -> None
10521053
| _ -> None

src/fsharp/vs/Symbols.fsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,8 @@ and [<Class>] FSharpMemberOrFunctionOrValue =
683683
member CurriedParameterGroups : IList<IList<FSharpParameter>>
684684

685685
/// Gets the overloads for the current method
686-
/// matchParamterNumber indicates whether to filter the overloads to match the number of parameters in the current symbol
687-
member Overloads : bool -> FSharpMemberOrFunctionOrValue list option
686+
/// matchParameterNumber indicates whether to filter the overloads to match the number of parameters in the current symbol
687+
member Overloads : bool -> IList<FSharpMemberOrFunctionOrValue> option
688688

689689
member ReturnParameter : FSharpParameter
690690

0 commit comments

Comments
 (0)