/// <summary> /// Visits a function declaration. /// </summary> /// <param name="declaration">the function declaration</param> protected internal virtual void visitFunctionDeclaration(FunctionDeclaration declaration) { }
//TODO: link function body to declaration /// <summary> /// Creates a function body based on a function declaration. /// </summary> /// <param name="declaration">the base function declaration</param> public FunctionBody(FunctionDeclaration declaration) : base(declaration) { this.returnType = declaration.ReturnType; }