struct Attribute
Defined at line 36 of file ../../tools/fidl/fidlc/src/attributes.h
Public Members
SourceSpan name
vector args
SourceSpan span
bool compiled
static basic_string_view kDocCommentName
static basic_string_view kModifierAvailabilityName
Public Methods
void Attribute (SourceSpan name, std::vector<std::unique_ptr<AttributeArg>> args, SourceSpan span)
Defined at line 37 of file ../../tools/fidl/fidlc/src/attributes.h
const AttributeArg * GetArg (std::string_view arg_name)
AttributeArg * GetStandaloneAnonymousArg ()
Returns the lone argument if there is exactly 1 and it is not named. For
example it returns non-null for `
("x")` but not for `
(bar="x")`.
std::unique_ptr<Attribute> Clone ()