Skip to content

Commit fb25920

Browse files
committed
remove warnings
1 parent 1e8b300 commit fb25920

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/fsharp/vs/Exprs.fs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,20 @@ module ExprTranslationImpl =
134134
/// The core tree of data produced by converting F# compiler TAST expressions into the form which we make available through the compiler API
135135
/// through active patterns.
136136
type E =
137-
| Value of FSharpMemberFunctionOrValue
137+
| Value of FSharpMemberOrFunctionOrValue
138138
| ThisValue of FSharpType
139139
| BaseValue of FSharpType
140140
| Application of FSharpExpr * FSharpType list * FSharpExpr list
141-
| Lambda of FSharpMemberFunctionOrValue * FSharpExpr
141+
| Lambda of FSharpMemberOrFunctionOrValue * FSharpExpr
142142
| TypeLambda of FSharpGenericParameter list * FSharpExpr
143143
| Quote of FSharpExpr
144144
| IfThenElse of FSharpExpr * FSharpExpr * FSharpExpr
145145
| DecisionTree of FSharpExpr * (FSharpMemberOrFunctionOrValue list * FSharpExpr) list
146146
| DecisionTreeSuccess of int * FSharpExpr list
147147
| Call of FSharpExpr option * FSharpMemberOrFunctionOrValue * FSharpType list * FSharpType list * FSharpExpr list
148148
| NewObject of FSharpMemberOrFunctionOrValue * FSharpType list * FSharpExpr list
149-
| LetRec of ( FSharpMemberFunctionOrValue * FSharpExpr) list * FSharpExpr
150-
| Let of (FSharpMemberFunctionOrValue * FSharpExpr) * FSharpExpr
149+
| LetRec of ( FSharpMemberOrFunctionOrValue * FSharpExpr) list * FSharpExpr
150+
| Let of (FSharpMemberOrFunctionOrValue * FSharpExpr) * FSharpExpr
151151
| NewRecord of FSharpType * FSharpExpr list
152152
| ObjectExpr of FSharpType * FSharpExpr * FSharpObjectExprOverride list * (FSharpType * FSharpObjectExprOverride list) list
153153
| FSharpFieldGet of FSharpExpr option * FSharpType * FSharpField
@@ -173,14 +173,14 @@ type E =
173173
| FastIntegerForLoop of FSharpExpr * FSharpExpr * FSharpExpr * bool
174174
| WhileLoop of FSharpExpr * FSharpExpr
175175
| TryFinally of FSharpExpr * FSharpExpr
176-
| TryWith of FSharpExpr * FSharpMemberFunctionOrValue * FSharpExpr * FSharpMemberFunctionOrValue * FSharpExpr
176+
| TryWith of FSharpExpr * FSharpMemberOrFunctionOrValue * FSharpExpr * FSharpMemberOrFunctionOrValue * FSharpExpr
177177
| NewDelegate of FSharpType * FSharpExpr
178178
| ILFieldGet of FSharpExpr option * FSharpType * string
179179
| ILFieldSet of FSharpExpr option * FSharpType * string * FSharpExpr
180180
| ILAsm of string * FSharpType list * FSharpExpr list
181181

182182
/// Used to represent the information at an object expression member
183-
and [<Sealed>] FSharpObjectExprOverride(sgn: FSharpAbstractSignature, gps: FSharpGenericParameter list, args:FSharpMemberFunctionOrValue list list, body: FSharpExpr) =
183+
and [<Sealed>] FSharpObjectExprOverride(sgn: FSharpAbstractSignature, gps: FSharpGenericParameter list, args:FSharpMemberOrFunctionOrValue list list, body: FSharpExpr) =
184184
member __.Signature = sgn
185185
member __.GenericParameters = gps
186186
member __.CurriedParameterGroups = args
@@ -435,7 +435,7 @@ module FSharpExprConvert =
435435
let callArgs = (objArgs::untupledCurriedArgs) |> List.concat
436436
let enclTyArgs, methTyArgs = List.splitAfter numEnclTypeArgs tyargs
437437
// tailcall
438-
ConvObjectModelCallLinear cenv env (isNewObj, FSharpMemberFunctionOrValue(cenv,vref), enclTyArgs, methTyArgs, callArgs) contf2
438+
ConvObjectModelCallLinear cenv env (isNewObj, FSharpMemberOrFunctionOrValue(cenv,vref), enclTyArgs, methTyArgs, callArgs) contf2
439439
else
440440
let v = FSharpMemberOrFunctionOrValue(cenv, vref)
441441
// tailcall
@@ -752,7 +752,7 @@ module FSharpExprConvert =
752752
let envinner = env.BindVal v
753753
Some(vR,rhsR),envinner
754754

755-
and ConvObjectModelCallLinear cenv env (isNewObj, v:FSharpMemberFunctionOrValue, enclTyArgs, methTyArgs,callArgs) contf =
755+
and ConvObjectModelCallLinear cenv env (isNewObj, v:FSharpMemberOrFunctionOrValue, enclTyArgs, methTyArgs,callArgs) contf =
756756
let enclTyArgsR = ConvTypes cenv enclTyArgs
757757
let methTyArgsR = ConvTypes cenv methTyArgs
758758
let obj, callArgs =
@@ -802,11 +802,11 @@ module FSharpExprConvert =
802802
elif v.BaseOrThisInfo = BaseVal then
803803
E.BaseValue(ConvType cenv v.Type)
804804
else
805-
E.Value(FSharpMemberFunctionOrValue(cenv, vref))
805+
E.Value(FSharpMemberOrFunctionOrValue(cenv, vref))
806806

807807
and ConvVal cenv (v:Val) =
808808
let vref = mkLocalValRef v
809-
FSharpMemberFunctionOrValue(cenv, vref)
809+
FSharpMemberOrFunctionOrValue(cenv, vref)
810810

811811
and ConvConst cenv env m c ty =
812812
match TryEliminateDesugaredConstants cenv.g m c with

src/fsharp/vs/Exprs.fsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ and [<Sealed>] FSharpObjectExprOverride =
6767
/// The generic parameters of the method
6868
member GenericParameters : FSharpGenericParameter list
6969
/// The parameters of the method
70-
member CurriedParameterGroups : FSharpMemberFunctionOrValue list list
70+
member CurriedParameterGroups : FSharpMemberOrFunctionOrValue list list
7171
/// The expression that forms the body of the method
7272
member Body : FSharpExpr
7373

@@ -101,10 +101,10 @@ module BasicPatterns =
101101

102102
/// Matches expressions which are calls to members or module-defined functions. When calling curried functions and members the
103103
/// arguments are collapsed to a single collection of arguments, as done in the compiled version of these.
104-
val (|Call|_|) : FSharpExpr -> (FSharpExpr option * FSharpMemberFunctionOrValue * FSharpType list * FSharpType list * FSharpExpr list) option
104+
val (|Call|_|) : FSharpExpr -> (FSharpExpr option * FSharpMemberOrFunctionOrValue * FSharpType list * FSharpType list * FSharpExpr list) option
105105

106106
/// Matches expressions which are calls to object constructors
107-
val (|NewObject|_|) : FSharpExpr -> (FSharpMemberFunctionOrValue * FSharpType list * FSharpExpr list) option
107+
val (|NewObject|_|) : FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpType list * FSharpExpr list) option
108108

109109
/// Matches expressions which are uses of the 'this' value
110110
val (|ThisValue|_|) : FSharpExpr -> FSharpType option

0 commit comments

Comments
 (0)