@@ -763,7 +763,7 @@ type ILMethInfo =
763763 member x.IsDllImport g =
764764 match g.attrib_ DllImportAttribute with
765765 | None -> false
766- | Some ( AttribInfo( tref,_)) -> x.RawMetadata.CustomAttrs |> TryDecodeILAttribute g tref ( Some tref.Scope ) |> isSome
766+ | Some ( AttribInfo( tref,_)) -> x.RawMetadata.CustomAttrs |> TryDecodeILAttribute g tref |> isSome
767767
768768 /// Get the (zero or one) 'self'/'this'/'object' arguments associated with an IL method.
769769 /// An instance extension method returns one object argument.
@@ -1252,7 +1252,7 @@ type MethInfo =
12521252 [ [ for p in ilMethInfo.ParamMetadata do
12531253 let isParamArrayArg = TryFindILAttribute g.attrib_ ParamArrayAttribute p.CustomAttrs
12541254 let reflArgInfo =
1255- match TryDecodeILAttribute g g.attrib_ ReflectedDefinitionAttribute.TypeRef ( Some ( g.attrib _ ReflectedDefinitionAttribute.TypeRef.Scope )) p.CustomAttrs with
1255+ match TryDecodeILAttribute g g.attrib_ ReflectedDefinitionAttribute.TypeRef p.CustomAttrs with
12561256 | Some ([ ILAttribElem.Bool b ],_) -> ReflectedArgInfo.Quote b
12571257 | Some _ -> ReflectedArgInfo.Quote false
12581258 | _ -> ReflectedArgInfo.None
@@ -2651,7 +2651,7 @@ type AttribInfo =
26512651 let obj = evalFSharpAttribArg g evaluatedExpr
26522652 ty, obj)
26532653 | ILAttribInfo ( g, amap, scoref, cattr, m) ->
2654- let parms , _args = decodeILAttribData g.ilg cattr ( Some scoref )
2654+ let parms , _args = decodeILAttribData g.ilg cattr
26552655 [ for ( argty, argval) in Seq.zip cattr.Method.FormalArgTypes parms ->
26562656 let ty = ImportType scoref amap m [] argty
26572657 let obj = evalILAttribElem argval
@@ -2666,7 +2666,7 @@ type AttribInfo =
26662666 let obj = evalFSharpAttribArg g evaluatedExpr
26672667 ty, nm, isField, obj)
26682668 | ILAttribInfo ( g, amap, scoref, cattr, m) ->
2669- let _parms , namedArgs = decodeILAttribData g.ilg cattr ( Some scoref )
2669+ let _parms , namedArgs = decodeILAttribData g.ilg cattr
26702670 [ for ( nm, argty, isProp, argval) in namedArgs ->
26712671 let ty = ImportType scoref amap m [] argty
26722672 let obj = evalILAttribElem argval
@@ -2753,7 +2753,7 @@ module AttributeChecking =
27532753 | None -> None
27542754#endif
27552755 | ILTypeMetadata (_, tdef) ->
2756- match TryDecodeILAttribute g atref ( Some ( atref.Scope )) tdef.CustomAttrs with
2756+ match TryDecodeILAttribute g atref tdef.CustomAttrs with
27572757 | Some attr -> f1 attr
27582758 | _ -> None
27592759 | FSharpOrArrayOrByrefOrTupleOrExnTypeMetadata ->
@@ -2782,7 +2782,7 @@ module AttributeChecking =
27822782 ignore f3
27832783#endif
27842784 BindMethInfoAttributes m minfo
2785- ( fun ilAttribs -> TryDecodeILAttribute g atref ( Some ( atref.Scope )) ilAttribs |> Option.bind f1)
2785+ ( fun ilAttribs -> TryDecodeILAttribute g atref ilAttribs |> Option.bind f1)
27862786 ( fun fsAttribs -> TryFindFSharpAttribute g attribSpec fsAttribs |> Option.bind f2)
27872787#if EXTENSIONTYPING
27882788 ( fun provAttribs ->
@@ -2815,7 +2815,7 @@ module AttributeChecking =
28152815 /// Check IL attributes for 'ObsoleteAttribute', returning errors and warnings as data
28162816 let private CheckILAttributes g cattrs m =
28172817 let ( AttribInfo ( tref , _ )) = g.attrib_ SystemObsolete
2818- match TryDecodeILAttribute g tref ( Some ( tref.Scope )) cattrs with
2818+ match TryDecodeILAttribute g tref cattrs with
28192819 | Some ([ ILAttribElem.String ( Some msg) ],_) ->
28202820 WarnD( ObsoleteWarning( msg, m))
28212821 | Some ([ ILAttribElem.String ( Some msg); ILAttribElem.Bool isError ],_) ->
@@ -2900,7 +2900,7 @@ module AttributeChecking =
29002900 /// Indicate if a list of IL attributes contains 'ObsoleteAttribute'. Used to suppress the item in intellisense.
29012901 let CheckILAttributesForUnseen g cattrs _m =
29022902 let ( AttribInfo ( tref , _ )) = g.attrib_ SystemObsolete
2903- isSome ( TryDecodeILAttribute g tref ( Some ( tref.Scope )) cattrs)
2903+ isSome ( TryDecodeILAttribute g tref cattrs)
29042904
29052905 /// Checks the attributes for CompilerMessageAttribute, which has an IsHidden argument that allows
29062906 /// items to be suppressed from intellisense.
0 commit comments