struct Assignment: BinaryExpression
{
+ struct Target
+ {
+ enum ChainType
+ {
+ MEMBER = 0x40,
+ SWIZZLE = 0x80,
+ ARRAY = 0xC0
+ };
+
+ Statement *declaration;
+ Msp::UInt8 chain_len;
+ Msp::UInt8 chain[7];
+
+ Target(Statement * = 0);
+
+ bool operator<(const Target &) const;
+ };
+
bool self_referencing;
- VariableDeclaration *target_declaration;
+ Target target;
Assignment();
Assignment(const Assignment &);
NodeArray<VariableDeclaration> parameters;
Block body;
+ std::string signature;
FunctionDeclaration *definition;
TypeDeclaration *return_type_declaration;