}
+void Import::visit(NodeVisitor &visitor)
+{
+ visitor.visit(*this);
+}
+
+
void Layout::visit(NodeVisitor &visitor)
{
visitor.visit(*this);
FunctionDeclaration::FunctionDeclaration():
- definition(false)
+ definition(0)
+{ }
+
+FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other):
+ return_type(other.return_type),
+ name(other.name),
+ parameters(other.parameters),
+ definition(other.definition==&other ? this : other.definition),
+ body(other.body)
{ }
void FunctionDeclaration::visit(NodeVisitor &visitor)