struct Type
Defined at line 29 of file ../../tools/fidl/fidlc/src/types.h
Public Members
Name name
Kind kind
optional type_shape
bool type_shape_compiling
Public Methods
void Type (Name name, Kind kind)
Defined at line 44 of file ../../tools/fidl/fidlc/src/types.h
void ~Type ()
Defined at line 45 of file ../../tools/fidl/fidlc/src/types.h
bool IsNullable ()
Defined at line 54 of file ../../tools/fidl/fidlc/src/types.h
Resourceness Resourceness ()
Returns the nominal resourceness of the type per the FTP-057 definition.
For IdentifierType, can only be called after the Decl has been compiled.
bool ApplyConstraints (TypeResolver * resolver, Reporter * reporter, const TypeConstraints & constraints, const Reference & layout, std::unique_ptr<Type> * out_type, LayoutInvocation * out_params)
Apply the provided constraints to this type, returning the newly constrained
Type and recording the invocation inside resolved_args.
For types in the new syntax, we receive the unresolved TypeConstraints.
Enumerations
enum Kind
| Name | Value |
|---|---|
| kArray | 0 |
| kBox | 1 |
| kVector | 2 |
| kZxExperimentalPointer | 3 |
| kString | 4 |
| kHandle | 5 |
| kTransportSide | 6 |
| kPrimitive | 7 |
| kInternal | 8 |
| kUntypedNumeric | 9 |
| kIdentifier | 10 |
Defined at line 30 of file ../../tools/fidl/fidlc/src/types.h