Gyoji Compiler
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Gyoji::frontend::tree::FunctionDefinitionArg Class Reference

Represents an argument in a function definition. More...

#include <tree.hpp>

Inheritance diagram for Gyoji::frontend::tree::FunctionDefinitionArg:
Inheritance graph
[legend]
Collaboration diagram for Gyoji::frontend::tree::FunctionDefinitionArg:
Collaboration graph
[legend]

Public Member Functions

 ~FunctionDefinitionArg ()
 
const TypeSpecifierget_type_specifier () const
 
const Terminalget_identifier () const
 
- Public Member Functions inherited from Gyoji::frontend::ast::SyntaxNode
 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 SyntaxNodeget_syntax_node () const
 
const Gyoji::context::SourceReferenceget_source_ref () const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~FunctionDefinitionArg()

FunctionDefinitionArg::~FunctionDefinitionArg ( )

Destructor, nothing special.

Member Function Documentation

◆ get_identifier()

const Terminal & FunctionDefinitionArg::get_identifier ( ) const

Represents the name of the argument;

◆ get_type_specifier()

const TypeSpecifier & FunctionDefinitionArg::get_type_specifier ( ) const

Represents the type of the argument.


The documentation for this class was generated from the following files: