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 MethodFlags = enum(u16) {
|
||||
pub const MethodAccessFlags = EnumFlags(enum(u16) {
|
||||
public = 0x0001,
|
||||
private = 0x0002,
|
||||
protected = 0x0004,
|
||||
|
|
@ -27,9 +27,7 @@ pub const MethodFlags = enum(u16) {
|
|||
abstract = 0x0400,
|
||||
strict = 0x0800,
|
||||
synthetic = 0x1000,
|
||||
};
|
||||
|
||||
pub const MethodAccessFlags = EnumFlags(MethodFlags);
|
||||
});
|
||||
|
||||
pub fn parse(input: *std.Io.Reader, constant_pool: []const ?ConstantPoolInfo, allocator: std.mem.Allocator) !Self {
|
||||
const access_flags: MethodAccessFlags = .{ .mask = try input.takeInt(u16, .big) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue