Skip to content

Commit

Permalink
seekReadCustomAttributeRow as a struct 3-tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp committed May 17, 2020
1 parent 08b3405 commit da6df7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/absil/ilread.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ let seekReadCustomAttributeRow (ctxt: ILMetadataReader) idx =
let parentIdx = seekReadHasCustomAttributeIdx ctxt mdv &addr
let typeIdx = seekReadCustomAttributeTypeIdx ctxt mdv &addr
let valIdx = seekReadBlobIdx ctxt mdv &addr
(parentIdx, typeIdx, valIdx)
struct (parentIdx, typeIdx, valIdx)

/// Read Table FieldMarshal.
let seekReadFieldMarshalRow (ctxt: ILMetadataReader) mdv idx =
Expand Down Expand Up @@ -2349,10 +2349,10 @@ and customAttrsReader ctxtH tag: ILAttributesStored =
(fun idx ->
let (ctxt: ILMetadataReader) = getHole ctxtH
seekReadIndexedRows (ctxt.getNumRows TableNames.CustomAttribute,
seekReadCustomAttributeRow ctxt, (fun (a, _, _) -> a),
seekReadCustomAttributeRow ctxt, (fun struct (a, _, _) -> a),
hcaCompare (TaggedIndex(tag,idx)),
isSorted ctxt TableNames.CustomAttribute,
(fun (_, b, c) -> seekReadCustomAttr ctxt (b, c)))
(fun struct (_, b, c) -> seekReadCustomAttr ctxt (b, c)))
|> List.toArray)

and seekReadCustomAttr ctxt (TaggedIndex(cat, idx), b) =
Expand Down

0 comments on commit da6df7f

Please sign in to comment.