Skip to content

Commit

Permalink
Name Constant value Value.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Aug 1, 2024
1 parent 7698eca commit 2bf63e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IKVM.ByteCode/Parsing/ConstantValueAttributeRecord.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
namespace IKVM.ByteCode.Parsing
{

public sealed record ConstantValueAttributeRecord(ConstantHandle Handle) : AttributeRecord
public sealed record ConstantValueAttributeRecord(ConstantHandle Value) : AttributeRecord
{

public static bool TryReadConstantValueAttribute(ref ClassFormatReader reader, out AttributeRecord attribute)
{
attribute = null;

if (reader.TryReadU2(out ushort handleIndex) == false)
if (reader.TryReadU2(out ushort valueIndex) == false)
return false;

attribute = new ConstantValueAttributeRecord(new ConstantHandle(handleIndex));
attribute = new ConstantValueAttributeRecord(new ConstantHandle(valueIndex));
return true;
}

Expand Down

0 comments on commit 2bf63e8

Please sign in to comment.