class Phlex::Compiler::Generators::Element

def call

def call
	@formatter.append do |f|
		f.text "<"
		f.text tag
	end
	if @node.arguments&.parts&.any?
		@formatter.chain_append do |f|
			f.text "_attributes("
			@node.arguments.format(@formatter)
			f.text ")"
		end
	end
	@formatter.append do |f|
		f.text ">"
	end
	return if void?
	case @node.content
	in SyntaxTree::Statements[body: [c]]
		Content.new(@formatter, content: c, mutating: @mutating).call
	in nil
		nil
	else
		@node.content.format(@formatter)
	end
	@formatter.append do |f|
		f.text "</"
		f.text tag
		f.text ">"
	end
end