markdown2 $ TestMarkdownLocationVisitor :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdVisitor :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
class TestMarkdownLocationVisitor
super MdVisitor
var buffer = new Buffer
var indent = 0
fun print_loc(node: MdNode) do
buffer.append "{" " * indent}{node.class_name}: {node.location}\n"
indent += 1
node.visit_all(self)
indent -= 1
end
redef fun visit(node) do print_loc(node)
end
lib/markdown2/tests/test_markdown_location.nit:38,1--52,3