markdown :: TokenEm :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: Token :: defaultinit
markdown :: TokenEm :: defaultinit
core :: Object :: defaultinit
MarkdownEmitter::decorator
.
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.
self
in the original input.
markdown :: Token :: location=
Location ofself
in the original input.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# An emphasis token.
abstract class TokenEm
super Token
redef fun emit(v) do
var tmp = v.push_buffer
var b = v.emit_text_until(v.current_text.as(not null), pos + 1, self)
v.pop_buffer
if b > 0 then
v.decorator.add_em(v, tmp)
v.current_pos = b
else
v.addc char
end
end
end
lib/markdown/markdown.nit:1977,1--1992,3