blob: 65b0f68336900b9f313b82a939706caabdd8712c [file] [log] [blame]
library fidl.test.placementofattributes;
// TODO: Support placement of an attribute on using.
using exampleusing;
@on_bits
type ExampleBits = strict bits {
@on_bits_member
MEMBER = 1;
};
@on_const
const EXAMPLE_CONST uint32 = 0;
@on_enum
type ExampleEnum = strict enum {
@on_enum_member
MEMBER = 1;
};
@on_protocol
protocol ExampleProtocol {
@on_method
Method(struct {
arg exampleusing.Empty;
});
};
@on_struct
type ExampleStruct = struct {
@on_struct_member
member uint32;
};
@on_table
type ExampleTable = table {
@on_table_member
1: member uint32;
};
@on_type_alias
alias TypeAlias = uint32;
@on_union
type ExampleUnion = strict union {
@on_union_member
1: variant uint32;
};
@on_x_union
type ExampleXUnion = flexible union {
@on_x_union_member
1: variant uint32;
};