You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letexists= ExistsInEntireHierarchyOfType (fun t -> typeEquiv g t (mkAppTy attr.TyconRef [])) g amap m AllowMultiIntfInstantiations.Yes (mkAppTy tcref [])
520
520
casmap.[tcs]<- exists
521
521
exists
522
-
|VNone->false
522
+
|ValueNone->false
523
523
524
524
letIsSecurityCriticalAttribute g (Attrib(tcref,_,_,_,_,_,_))=
525
525
(tyconRefEq g tcref g.attrib_SecurityCriticalAttribute.TyconRef || tyconRefEq g tcref g.attrib_SecuritySafeCriticalAttribute.TyconRef)
val defaultArg :arg:'T option ->defaultValue:'T -> 'T
2000
2027
2028
+
///<summary>Used to specify a default value for an optional argument in the implementation of a function</summary>
2029
+
///<param name="arg">A value option representing the argument.</param>
2030
+
///<param name="defaultValue">The default value of the argument.</param>
2031
+
///<returns>The argument value. If it is None,the defaultValue is returned.</returns>
2032
+
[<CompiledName("DefaultValueArg")>]
2033
+
val defaultValueArg :arg:'T voption ->defaultValue:'T -> 'T
2034
+
2001
2035
///<summary>Concatenate two strings. The operator '+' may also be used.</summary>
2002
2036
[<CompilerMessage("This construct is for ML compatibility. Consider using the '+' operator instead. This may require a type annotation to indicate it acts on strings. This message can be disabled using '--nowarn:62' or '#nowarn \"62\"'.",62,IsHidden=true)>]
/// Try to link a non-local entity reference to an actual entity
@@ -2990,11 +2990,11 @@ and NonLocalEntityRef =
2990
2990
if canError then
2991
2991
ccu.EnsureDerefable(path)
2992
2992
2993
-
if ccu.IsUnresolvedReference thenVNoneelse
2993
+
if ccu.IsUnresolvedReference thenValueNoneelse
2994
2994
2995
2995
match NonLocalEntityRef.TryDerefEntityPath(ccu, path,0, ccu.Contents)with
2996
-
|VSome_as r -> r
2997
-
|VNone->
2996
+
|ValueSome_as r -> r
2997
+
|ValueNone->
2998
2998
// OK, the lookup failed. Check if we can redirect through a type forwarder on this assembly.
2999
2999
// Look for a forwarder for each prefix-path
3000
3000
let rectryForwardPrefixPath i =
@@ -3004,7 +3004,7 @@ and NonLocalEntityRef =
3004
3004
| Some tcref -> NonLocalEntityRef.TryDerefEntityPath(ccu, path,(i+1), tcref.Deref)
3005
3005
| None -> tryForwardPrefixPath (i+1)
3006
3006
else
3007
-
VNone
3007
+
ValueNone
3008
3008
tryForwardPrefixPath 0
3009
3009
3010
3010
/// Get the CCU referenced by the nonlocal reference.
@@ -3036,8 +3036,8 @@ and NonLocalEntityRef =
3036
3036
/// Dereference the nonlocal reference, and raise an error if this fails.
3037
3037
membernleref.Deref=
3038
3038
match nleref.TryDeref(canError=true)with
3039
-
|VSome res -> res
3040
-
|VNone->
3039
+
|ValueSome res -> res
3040
+
|ValueNone->
3041
3041
errorR (InternalUndefinedItemRef (FSComp.SR.tastUndefinedItemRefModuleNamespace, nleref.DisplayName, nleref.AssemblyName,"<some module on this path>"))
3042
3042
raise (KeyNotFoundException())
3043
3043
@@ -3067,9 +3067,9 @@ and
3067
3067
memberprivatetcr.Resolve(canError)=
3068
3068
letres= tcr.nlr.TryDeref(canError)
3069
3069
match res with
3070
-
|VSome r ->
3070
+
|ValueSome r ->
3071
3071
tcr.binding <- nullableSlotFull r
3072
-
|VNone->
3072
+
|ValueNone->
3073
3073
()
3074
3074
3075
3075
/// Dereference the TyconRef to a Tycon. Amortize the cost of doing this.
0 commit comments