@@ -335,7 +335,7 @@ let CrackParamAttribsInfo g (ty: TType, argInfo: ArgReprInfo) =
335
335
| ValueSome optTy when typeEquiv g g.int32_ ty optTy -> CallerFilePath
336
336
| _ -> CallerLineNumber
337
337
338
- ParamAttribs( isParamArrayArg, isInArg, isOutArg, optArgInfo, callerInfo, reflArgInfo)
338
+ ParamAttribs( isParamArrayArg, isInArg, isOutArg, optArgInfo, callerInfo, reflArgInfo), argInfo.Attribs
339
339
340
340
#if ! NO_ TYPEPROVIDERS
341
341
@@ -1195,7 +1195,7 @@ type MethInfo =
1195
1195
if p.Type.TypeRef.FullName = " System.Int32" then CallerFilePath
1196
1196
else CallerLineNumber
1197
1197
1198
- ParamAttribs( isParamArrayArg, isInArg, isOutArg, optArgInfo, callerInfo, reflArgInfo) ] ]
1198
+ ParamAttribs( isParamArrayArg, isInArg, isOutArg, optArgInfo, callerInfo, reflArgInfo), [] ] ]
1199
1199
1200
1200
| FSMeth( g, _, vref, _) ->
1201
1201
GetArgInfosOfMember x.IsCSharpStyleExtensionMember g vref
@@ -1216,7 +1216,7 @@ type MethInfo =
1216
1216
| None -> ReflectedArgInfo.None
1217
1217
let isOutArg = p.PUntaint(( fun p -> p.IsOut && not p.IsIn), m)
1218
1218
let isInArg = p.PUntaint(( fun p -> p.IsIn && not p.IsOut), m)
1219
- ParamAttribs( isParamArrayArg, isInArg, isOutArg, optArgInfo, NoCallerInfo, reflArgInfo)] ]
1219
+ ParamAttribs( isParamArrayArg, isInArg, isOutArg, optArgInfo, NoCallerInfo, reflArgInfo), [] ] ]
1220
1220
#endif
1221
1221
1222
1222
/// Get the signature of an abstract method slot.
@@ -1317,13 +1317,13 @@ type MethInfo =
1317
1317
#endif
1318
1318
1319
1319
let paramAttribs = x.GetParamAttribs( amap, m)
1320
- ( paramAttribs, paramNamesAndTypes) ||> List.map2 ( List.map2 ( fun info ( ParamNameAndType ( nmOpt , pty )) ->
1320
+ ( paramAttribs, paramNamesAndTypes) ||> List.map2 ( List.map2 ( fun ( info , attribs ) ( ParamNameAndType ( nmOpt , pty )) ->
1321
1321
let ( ParamAttribs ( isParamArrayArg , isInArg , isOutArg , optArgInfo , callerInfo , reflArgInfo )) = info
1322
- ParamData( isParamArrayArg, isInArg, isOutArg, optArgInfo, callerInfo, nmOpt, reflArgInfo, pty)))
1322
+ ParamData( isParamArrayArg, isInArg, isOutArg, optArgInfo, callerInfo, nmOpt, reflArgInfo, pty), attribs ))
1323
1323
1324
1324
/// Get the ParamData objects for the parameters of a MethInfo
1325
1325
member x.HasParamArrayArg ( amap , m , minst ) =
1326
- x.GetParamDatas( amap, m, minst) |> List.existsSquared ( fun ( ParamData ( isParamArrayArg , _ , _ , _ , _ , _ , _ , _ )) -> isParamArrayArg)
1326
+ x.GetParamDatas( amap, m, minst) |> List.existsSquared ( fun ( ParamData ( isParamArrayArg , _ , _ , _ , _ , _ , _ , _ ), _ ) -> isParamArrayArg)
1327
1327
1328
1328
/// Select all the type parameters of the declaring type of a method.
1329
1329
///
0 commit comments