declaration(0)
{ }
+VariableReference::VariableReference(const VariableReference &other):
+ name(other.name),
+ declaration(0)
+{ }
+
void VariableReference::visit(NodeVisitor &visitor)
{
visitor.visit(*this);
}
+MemberAccess::MemberAccess():
+ declaration(0)
+{ }
+
+MemberAccess::MemberAccess(const MemberAccess &other):
+ left(other.left),
+ member(other.member),
+ declaration(0)
+{ }
+
void MemberAccess::visit(NodeVisitor &visitor)
{
visitor.visit(*this);
target_declaration(0)
{ }
+Assignment::Assignment(const Assignment &other):
+ self_referencing(other.self_referencing),
+ target_declaration(0)
+{ }
+
void Assignment::visit(NodeVisitor &visitor)
{
visitor.visit(*this);
constructor(false)
{ }
+FunctionCall::FunctionCall(const FunctionCall &other):
+ name(other.name),
+ declaration(0),
+ constructor(other.constructor),
+ arguments(other.arguments)
+{ }
+
void FunctionCall::visit(NodeVisitor &visitor)
{
visitor.visit(*this);
linked_declaration(0)
{ }
+VariableDeclaration::VariableDeclaration(const VariableDeclaration &other):
+ constant(other.constant),
+ sampling(other.sampling),
+ interpolation(other.interpolation),
+ interface(other.interface),
+ precision(other.precision),
+ type(other.type),
+ type_declaration(0),
+ name(other.name),
+ array(other.array),
+ array_size(other.array_size),
+ init_expression(other.init_expression),
+ linked_declaration(0),
+ layout(other.layout)
+{ }
+
void VariableDeclaration::visit(NodeVisitor &visitor)
{
visitor.visit(*this);
return_type(other.return_type),
name(other.name),
parameters(other.parameters),
- definition(other.definition==&other ? this : other.definition),
+ definition(other.definition==&other ? this : 0),
body(other.body)
{ }
VariableDeclaration *declaration;
VariableReference();
+ VariableReference(const VariableReference &);
virtual VariableReference *clone() const { return new VariableReference(*this); }
virtual void visit(NodeVisitor &);
std::string member;
VariableDeclaration *declaration;
+ MemberAccess();
+ MemberAccess(const MemberAccess &);
+
virtual MemberAccess *clone() const { return new MemberAccess(*this); }
virtual void visit(NodeVisitor &);
};
VariableDeclaration *target_declaration;
Assignment();
+ Assignment(const Assignment &);
virtual Assignment *clone() const { return new Assignment(*this); }
virtual void visit(NodeVisitor &);
NodeArray<Expression> arguments;
FunctionCall();
+ FunctionCall(const FunctionCall &);
virtual FunctionCall *clone() const { return new FunctionCall(*this); }
virtual void visit(NodeVisitor &);
NodePtr<Layout> layout;
VariableDeclaration();
+ VariableDeclaration(const VariableDeclaration &);
virtual VariableDeclaration *clone() const { return new VariableDeclaration(*this); }
virtual void visit(NodeVisitor &);