![]() |
Spicy
|
#include <assign.h>
Public Member Functions | |
Assign (Expression target, Expression src, Meta m=Meta()) | |
const auto & | target () const |
const auto & | source () const |
bool | operator== (const Assign &other) const |
bool | isLhs () const |
bool | isTemporary () const |
auto | type () const |
auto | isConstant () const |
auto | isEqual (const Expression &other) const |
auto | properties () const |
![]() | |
NodeBase (Meta meta) | |
NodeBase (std::vector< Node > childs, Meta meta) | |
template<typename T > | |
const T & | child (int i) const |
template<typename T > | |
void | assertChildIsA (int i) |
template<typename T > | |
std::vector< T > | childs (int begin, int end) const |
template<typename T > | |
std::vector< T > | childsOfType () const |
template<typename T > | |
auto | nodesOfType () const |
template<typename T > | |
auto | nodesOfType () |
void | addChild (Node n) |
auto & | childs () const |
auto & | childs () |
auto & | meta () const |
void | setMeta (Meta m) |
const NodeRef & | originalNode () const |
void | setOriginalNode (const NodeRef &n) |
void | clearCache () |
Static Public Member Functions | |
static Expression | setTarget (const Assign &e, const Expression &t) |
static Expression | setSource (const Assign &e, const Expression &s) |
AST node for an assign expression.
|
inline |
Implements Expression
interface.
|
inline |
Implements Expression
interface.
|
inline |
Implements Expression
interface.
|
inline |
Implements Expression
interface.
|
inline |
Implements Node
interface.
|
inlinestatic |
Returns a new assign expression with the source expression replaced.
d | original expression |
t | new source expresssion |
|
inlinestatic |
Returns a new assign expression with the target expression replaced.
d | original expression |
t | new target expresssion |
|
inline |
Implements Expression
interface.