The name of a value, function, parameter or argument. More...
#include <Identifier.h>
Public Member Functions | |
Identifier (const std::string &name, const Type *=nullptr, const SourceRange &src=SourceRange::None()) | |
virtual void | PrettyPrint (Bytestream &, size_t indent=0) const override |
Print a human-readable representation to an output stream and return that output stream. | |
const std::string & | name () const |
bool | reservedName () const |
bool | operator== (const Identifier &) const |
bool | operator< (const Identifier &) const |
virtual void | Accept (Visitor &) const |
Public Member Functions inherited from fabrique::HasSource | |
HasSource (const SourceRange &src) | |
const SourceRange & | source () const |
Public Member Functions inherited from fabrique::Printable | |
Printable (const Printable &) | |
Printable & | operator= (const Printable &) |
virtual std::string | str () const |
Public Member Functions inherited from fabrique::Visitable< Visitor > | |
virtual void | Accept (Visitor &) const =0 |
Public Member Functions inherited from fabrique::OptionallyTyped | |
OptionallyTyped (const Type *t) | |
bool | isTyped () const |
const Type & | type () const |
Additional Inherited Members | |
Protected Member Functions inherited from fabrique::ast::Node | |
Node (const SourceRange &src) | |
The name of a value, function, parameter or argument.
Definition at line 49 of file Identifier.h.