@@ -2739,7 +2739,7 @@ let TcValEarlyGeneralizationConsistencyCheck (cenv: cenv) (env: TcEnv) (v: Val,
2739
2739
/// instantiationInfoOpt is is also set when building the final call for a reference to an
2740
2740
/// F# object model member, in which case the instantiationInfoOpt is the type instantiation
2741
2741
/// inferred by member overload resolution.
2742
- let TcVal checkAttributes (cenv: cenv) env (tpenv: UnscopedTyparEnv) (vref: ValRef) instantiationInfoOpt optAfterResolution m =
2742
+ let TcVal (cenv: cenv) env (tpenv: UnscopedTyparEnv) (vref: ValRef) instantiationInfoOpt optAfterResolution m =
2743
2743
let g = cenv.g
2744
2744
2745
2745
let tpsorig, _, _, _, tinst, _ as res =
@@ -2749,8 +2749,7 @@ let TcVal checkAttributes (cenv: cenv) env (tpenv: UnscopedTyparEnv) (vref: ValR
2749
2749
2750
2750
CheckValAccessible m env.eAccessRights vref
2751
2751
2752
- if checkAttributes then
2753
- CheckValAttributes g vref m |> CommitOperationResult
2752
+ CheckValAttributes g vref m |> CommitOperationResult
2754
2753
2755
2754
let vTy = vref.Type
2756
2755
@@ -3046,7 +3045,7 @@ let BuildPossiblyConditionalMethodCall (cenv: cenv) env isMutable m isProp minfo
3046
3045
| _ ->
3047
3046
#endif
3048
3047
let tcVal valref valUse ttypes m =
3049
- let _, exprForVal, _, tau, _, _ = TcVal true cenv env emptyUnscopedTyparEnv valref (Some (valUse, (fun x _ -> ttypes, x))) None m
3048
+ let _, exprForVal, _, tau, _, _ = TcVal cenv env emptyUnscopedTyparEnv valref (Some (valUse, (fun x _ -> ttypes, x))) None m
3050
3049
exprForVal, tau
3051
3050
3052
3051
BuildMethodCall tcVal g cenv.amap isMutable m isProp minfo valUseFlags minst objArgs args staticTyOpt
@@ -5164,7 +5163,7 @@ and TcPatLongIdentActivePatternCase warnOnUpper (cenv: cenv) (env: TcEnv) vFlags
5164
5163
CallNameResolutionSink cenv.tcSink (mLongId, env.NameEnv, item, emptyTyparInst, ItemOccurrence.Pattern, env.eAccessRights)
5165
5164
5166
5165
// TOTAL/PARTIAL ACTIVE PATTERNS
5167
- let _, vExpr, _, _, tinst, _ = TcVal true cenv env tpenv vref None None m
5166
+ let _, vExpr, _, _, tinst, _ = TcVal cenv env tpenv vref None None m
5168
5167
let vExpr = MakeApplicableExprWithFlex cenv env vExpr
5169
5168
let vExprTy = vExpr.Type
5170
5169
@@ -9259,7 +9258,7 @@ and TcValueItemThen cenv overallTy env vref tpenv mItem afterResolution delayed
9259
9258
error (Error(FSComp.SR.expressionHasNoName(), mExprAndTypeArgs))
9260
9259
| _ ->
9261
9260
let checkTys tpenv kinds = TcTypesOrMeasures (Some kinds) cenv NewTyparsOK CheckCxs ItemOccurrence.UseInType env tpenv tys mItem
9262
- let _, vExpr, isSpecial, _, _, tpenv = TcVal true cenv env tpenv vref (Some (NormalValUse, checkTys)) (Some afterResolution) mItem
9261
+ let _, vExpr, isSpecial, _, _, tpenv = TcVal cenv env tpenv vref (Some (NormalValUse, checkTys)) (Some afterResolution) mItem
9263
9262
9264
9263
let vexpFlex = (if isSpecial then MakeApplicableExprNoFlex cenv vExpr else MakeApplicableExprWithFlex cenv env vExpr)
9265
9264
// We need to eventually record the type resolution for an expression, but this is done
@@ -9268,7 +9267,7 @@ and TcValueItemThen cenv overallTy env vref tpenv mItem afterResolution delayed
9268
9267
9269
9268
// Value get
9270
9269
| _ ->
9271
- let _, vExpr, isSpecial, _, _, tpenv = TcVal true cenv env tpenv vref None (Some afterResolution) mItem
9270
+ let _, vExpr, isSpecial, _, _, tpenv = TcVal cenv env tpenv vref None (Some afterResolution) mItem
9272
9271
9273
9272
let vExpr, tpenv =
9274
9273
match vExpr with
0 commit comments