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