nitc :: Prod :: start_token
# The token where the production really start (skipping ADoc).
private fun start_token: nullable Token do return first_token
src/pretty.nit:373,2--374,62
# Skip doc if any.
redef fun start_token do
if n_moduledecl != null then return n_moduledecl.first_token
if not n_imports.is_empty then return n_imports.first.first_token
if not n_classdefs.is_empty then return n_classdefs.first.first_token
return first_token
end
src/pretty.nit:592,2--598,4
redef fun start_token do
if n_doc == null then return super
return n_doc.last_token.next_token
end
src/pretty.nit:901,2--904,4
redef fun start_token do
if not n_visibility isa APublicVisibility then return n_visibility.first_token
if n_kwredef != null then return n_kwredef
return n_classkind.first_token
end
src/pretty.nit:747,2--751,4