Parse a [ModuleStmt::Enum
].
Parse a field for a struct or contract. The leading optional pub
and
const
qualifiers must be parsed by the caller, and passed in.
Parse an angle-bracket-wrapped list of generic arguments (eg. the tail end
of Map<address, u256>
).
Parse an impl block.
Parse an optional qualifier (pub
, const
, or idx
).
Returns path and trailing ::
token, if present.
Parse a [ModuleStmt::Struct
].
Parse a trait definition.
Parse a type alias definition, e.g. type MyMap = Map<u8, address>
.
Parse a type description, e.g. u8
or Map<address, u256>
.
Parse a variant for a enum definition.