nitc :: MProperty :: write_synopsis
private fun write_synopsis(mainmodule: MModule, stream: Writer)
do
if visibility == public_visibility then
stream.write "+ "
else stream.write "~ " # protected_visibility
if self isa MMethod then
if is_new and name != "new" then
stream.write "new "
else if is_init and name != "init" then
stream.write "init "
end
end
stream.write name
if self isa MMethod then
var intro = intro
assert intro isa MMethodDef
var msignature = intro.msignature
if msignature != null then
stream.write msignature.to_s
end
end
var mdoc = intro.mdoc
if mdoc != null then
stream.write " # "
stream.write mdoc.content.first
end
stream.write line_separator
end
src/doc/vim_autocomplete.nit:371,2--402,4