Gyoji Compiler
|
Represents an argument in a function definition. More...
#include <tree.hpp>
Public Member Functions | |
~FunctionDefinitionArg () | |
const TypeSpecifier & | get_type_specifier () const |
const Terminal & | get_identifier () const |
![]() | |
SyntaxNode (Gyoji::context::TokenID _type, specific_type_t _data, const Gyoji::context::SourceReference &_source_ref) | |
const std::vector< std::reference_wrapper< const SyntaxNode > > & | get_children () const |
const Gyoji::context::TokenID & | get_type () const |
template<class T > | |
bool | has_data () const |
template<class T > | |
const T & | get_data () const |
const SyntaxNode & | get_syntax_node () const |
const Gyoji::context::SourceReference & | get_source_ref () const |
Represents an argument in a function definition.
This represents an element of a list of arguments when defining or declaring a function. For example, in the declaration of sqrt(double v), this would represent the "double v" portion of that declaration consisting of the type specifier and the name of the argument.
FunctionDefinitionArg::~FunctionDefinitionArg | ( | ) |
Destructor, nothing special.
const Terminal & FunctionDefinitionArg::get_identifier | ( | ) | const |
Represents the name of the argument;
const TypeSpecifier & FunctionDefinitionArg::get_type_specifier | ( | ) | const |
Represents the type of the argument.