class AttributeArgSchema
Defined at line 22 of file ../../tools/fidl/fidlc/src/attribute_schema.h
AttributeArgSchema defines a schema for a single argument in an attribute.
This includes its type (string, uint64, etc.), whether it is optional or
required, and (if applicable) a special-case rule for resolving its value.
Public Methods
void AttributeArgSchema (std::variant<ConstantValue::Kind, SpecialCase> type, Optionality optionality)
Defined at line 34 of file ../../tools/fidl/fidlc/src/attribute_schema.h
bool IsOptional ()
Defined at line 42 of file ../../tools/fidl/fidlc/src/attribute_schema.h
void ResolveArg (CompileStep *step,Attribute *attribute,AttributeArg *arg,boolliteral_only)
Enumerations
enum class Optionality : uint8_t
| Name | Value |
|---|---|
| kOptional | 0 |
| kRequired | 1 |
Defined at line 24 of file ../../tools/fidl/fidlc/src/attribute_schema.h
enum class SpecialCase : uint8_t
| Name | Value | Comments |
|---|---|---|
| kVersion | 0 |
Allows a uint32 literal or the special constant `NEXT` or `HEAD`. |
Defined at line 29 of file ../../tools/fidl/fidlc/src/attribute_schema.h