Skip to content

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 );
PARAMETERDESCRIPTION
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;
PARAMETERDESCRIPTION
context
RETURNSDESCRIPTION
Expression

A shared pointer to the cloned expression.

method createstatic

DEFINITION
static Expression  create ( const Location & location,
Symbol  symbol );
PARAMETERDESCRIPTION
location
symbol
RETURNSDESCRIPTION
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;
PARAMETERDESCRIPTION
stream

The stream to serialize to.

method set_argument

DEFINITION
void  set_argument ( const Expression & argument );
PARAMETERDESCRIPTION
argument

member argumentprivate

DEFINITION
Expression  argument;

member symbolprivate

DEFINITION
Symbol  symbol;