Inline flag definitions
This commit is contained in:
parent
f8b1f968e0
commit
7cc907dc19
4 changed files with 10 additions and 20 deletions
|
|
@ -14,7 +14,7 @@ attributes: []AttributeInfo,
|
|||
|
||||
const Self = @This();
|
||||
|
||||
pub const FieldFlags = enum(u16) {
|
||||
pub const FieldAccessFlags = EnumFlags(enum(u16) {
|
||||
public = 0x0001,
|
||||
private = 0x0002,
|
||||
protected = 0x0004,
|
||||
|
|
@ -24,9 +24,7 @@ pub const FieldFlags = enum(u16) {
|
|||
transient = 0x0080,
|
||||
synthetic = 0x1000,
|
||||
@"enum" = 0x4000,
|
||||
};
|
||||
|
||||
pub const FieldAccessFlags = EnumFlags(FieldFlags);
|
||||
});
|
||||
|
||||
pub fn parse(input: *std.Io.Reader, constant_pool: []const ?ConstantPoolInfo, allocator: std.mem.Allocator) !Self {
|
||||
const access_flags: FieldAccessFlags = .{ .mask = try input.takeInt(u16, .big) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue