ArgumentExpression
INCLUDE FILE
#include "Expression/ArgumentExpression.h"
class ArgumentExpression
This is a placeholder for arguments, so they can be resolved in macro and function bodies.
It is replaced with the actual argument expression during call expansion.
DEFINITION
class ArgumentExpression;
constructor ArgumentExpression
DEFINITION
| ArgumentExpression | ( | const Location & location, | |
| Symbol symbol | ); |
| PARAMETER | DESCRIPTION |
|---|---|
location |
|
symbol |
method clear_argument
DEFINITION
| void clear_argument | ( | ); |
method cloneconst virtual
Create a deep copy of the expression.
A subclass must override this method if it can occur in a macro or function definition, .repeat body, or instruction encoding.
DEFINITION
| virtual Expression clone | ( | const CloneContext & context | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
context |
| RETURNS | DESCRIPTION |
|---|---|
Expression |
A shared pointer to the cloned expression. |
method createstatic
DEFINITION
| static Expression create | ( | const Location & location, | |
| Symbol symbol | ); |
| PARAMETER | DESCRIPTION |
|---|---|
location |
|
symbol |
| RETURNS | DESCRIPTION |
|---|---|
Expression |
method serialize_subconst virtual protected
Serialize the expression to a stream.
This method must be implemented by derived classes.
DEFINITION
| virtual void serialize_sub | ( | std::ostream & stream | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
The stream to serialize to. |
method set_argument
DEFINITION
| void set_argument | ( | const Expression & argument | ); |
| PARAMETER | DESCRIPTION |
|---|---|
argument |
member argumentprivate
DEFINITION
Expression argument;
member symbolprivate
DEFINITION
Symbol symbol;