markdown2 :: MdNode :: prepend_child
self
# Prepend a child to `self`
fun prepend_child(child: MdNode) do
child.unlink
child.parent = self
if first_child != null then
first_child.as(not null).prev = child
child.next = first_child
first_child = child
else
first_child = child
last_child = child
end
end
lib/markdown2/markdown_ast.nit:66,2--78,4