class Phlex::Compiler::Nodes::MethodAddBlock

def arguments

def arguments
	method_call.arguments
end

def content

def content
	case @node.block
	in SyntaxTree::BraceBlock
		@node.block.statements
	in SyntaxTree::DoBlock
		@node.block.bodystmt.statements
	end
end

def method_call

def method_call
	@method_call ||= case @node.call
	in SyntaxTree::FCall
		Phlex::Compiler::Nodes::FCall.new(@node.call)
	in SyntaxTree::Command
		Phlex::Compiler::Nodes::Command.new(@node.call)
	in SyntaxTree::Call
		Phlex::Compiler::Nodes::Call.new(@node.call)
	end
end

def name

def name
	method_call.name
end