|
Gyoji Compiler
|
#include <types.hpp>
Public Member Functions | |
| Argument (const Type *_argument_type, const Gyoji::context::SourceReference &_source_ref) | |
| Argument (const Argument &_other) | |
| ~Argument () | |
| Move along, nothing to see here. | |
| const Type * | get_type () const |
| const Gyoji::context::SourceReference & | get_source_ref () const |
Function argument.
This class represents the argument to a function for function-pointer types.
| Argument::Argument | ( | const Type * | _argument_type, |
| const Gyoji::context::SourceReference & | _source_ref | ||
| ) |
Creates a new argument with the given type based on the type of the argument and a reference to the source location where it was declared.
| Argument::Argument | ( | const Argument & | _other | ) |
This makes a copy of the argument. It is provided so that the type class may use a map or array to store the members rather than storing them by pointer, so a copy and assignment is required.
| Argument::~Argument | ( | ) |
Move along, nothing to see here.
Move along, nothing to see here.
| const Gyoji::context::SourceReference & Argument::get_source_ref | ( | ) | const |
Returns a reference to the source where this argument was declared.
| const Type * Argument::get_type | ( | ) | const |
Returns the type of argument.