class Name
Defined at line 157 of file ../../tools/fidl/fidlc/src/name.h
Name represents the name of a declaration. There are three kinds of names:
sourced (the usual kind), anonymous (derived from source but chosen by the
compiler), and intrinsic (not derived from any user source).
Public Methods
Name CreateSourced (const Library * library, SourceSpan span, std::optional<std::string> member_name)
Defined at line 159 of file ../../tools/fidl/fidlc/src/name.h
Name CreateAnonymous (const Library * library, SourceSpan span, std::shared_ptr<NamingContext> context, Provenance provenance)
Defined at line 175 of file ../../tools/fidl/fidlc/src/name.h
Name CreateIntrinsic (const Library * library, std::string name)
Defined at line 180 of file ../../tools/fidl/fidlc/src/name.h
Name WithMemberName (std::string member_name)
Defined at line 184 of file ../../tools/fidl/fidlc/src/name.h
const Library * library ()
Defined at line 191 of file ../../tools/fidl/fidlc/src/name.h
std::optional<SourceSpan> span ()
std::string_view decl_name ()
std::string full_name ()
const std::optional<std::string> & member_name ()
Defined at line 195 of file ../../tools/fidl/fidlc/src/name.h
bool is_sourced ()
Defined at line 224 of file ../../tools/fidl/fidlc/src/name.h
bool is_intrinsic ()
Defined at line 225 of file ../../tools/fidl/fidlc/src/name.h
const Anonymous * as_anonymous ()
Defined at line 226 of file ../../tools/fidl/fidlc/src/name.h
Enumerations
enum Provenance
| Name | Value |
|---|---|
| kAnonymousLayout | 0 |
| kGeneratedResultUnion | 1 |
| kGeneratedEmptySuccessStruct | 2 |
Defined at line 164 of file ../../tools/fidl/fidlc/src/name.h