nitc :: NitlightVisitor :: _current_module
The current highlight modulenitc :: NitlightVisitor :: _mmodules
List of all highlighted modulesnitc :: NitlightVisitor :: current_module=
The current highlight modulenitc :: NitlightVisitor :: defaultinit
nitc :: NitlightVisitor :: mmodules
List of all highlighted modulesnitc :: NitlightVisitor :: mmodules=
List of all highlighted modulesnitc $ NitlightVisitor :: SELF
Type of this instance, automatically specialized in every classnitc :: NitlightVisitor :: _current_module
The current highlight modulenitc :: AbstractHighlightVisitor :: _first_line
The first line to generate, null if start at the first linenitc :: AbstractHighlightVisitor :: _include_loose_tokens
When highlighting a node, also consider the loose tokens around it.nitc :: AbstractHighlightVisitor :: _include_whole_lines
When highlighting a node, the first and the last lines are fully included.nitc :: AbstractHighlightVisitor :: _last_line
The last line to generate, null if finish at the last linenitc :: HtmlightVisitor :: _line_id_prefix
Prefixes used in generated IDs for line<span>
elements.
nitc :: NitlightVisitor :: _mmodules
List of all highlighted modulesnitc :: HtmlightVisitor :: _show_infobox
When highlighting a node, attach a full popupable infobox, if any.nitc :: AbstractHighlightVisitor :: _show_messages
When highlighting a node, show its messages (errors, warnings), if any.nitc :: HtmlightVisitor :: _with_ast
Should the HTML include a nested<span class"{type_of_node}">
element for each ANode
of the AST?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: HtmlightVisitor :: css_content
Return a default CSS content related to CSS classes used in thehtml
tree.
nitc :: NitlightVisitor :: current_module=
The current highlight modulenitc :: HtmlightVisitor :: defaultinit
core :: Object :: defaultinit
nitc :: NitlightVisitor :: defaultinit
nitc :: AbstractHighlightVisitor :: do_highlight
Low-level highlighting between 2 tokensnitc :: AbstractHighlightVisitor :: first_line
The first line to generate, null if start at the first linenitc :: AbstractHighlightVisitor :: first_line=
The first line to generate, null if start at the first linenitc :: HtmlightVisitor :: foot_content
Additional content to inject just before the closing </body> tagnitc :: HtmlightVisitor :: head_content
Additional content to inject in the <head> tagnitc :: AbstractHighlightVisitor :: highlight_node
Highlight a AST element.nitc :: AbstractHighlightVisitor :: highlight_source
Highlight a full lexed source file.nitc :: HtmlightVisitor :: highlightcode
Fully processcontent
as a Nit source file.
nitc :: AbstractHighlightVisitor :: include_loose_tokens
When highlighting a node, also consider the loose tokens around it.nitc :: AbstractHighlightVisitor :: include_loose_tokens=
When highlighting a node, also consider the loose tokens around it.nitc :: AbstractHighlightVisitor :: include_whole_lines
When highlighting a node, the first and the last lines are fully included.nitc :: AbstractHighlightVisitor :: include_whole_lines=
When highlighting a node, the first and the last lines are fully included.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.
nitc :: AbstractHighlightVisitor :: last_line
The last line to generate, null if finish at the last linenitc :: AbstractHighlightVisitor :: last_line=
The last line to generate, null if finish at the last linenitc :: HtmlightVisitor :: line_id_prefix
Prefixes used in generated IDs for line<span>
elements.
nitc :: HtmlightVisitor :: line_id_prefix=
Prefixes used in generated IDs for line<span>
elements.
nitc :: NitlightVisitor :: mmodules
List of all highlighted modulesnitc :: NitlightVisitor :: mmodules=
List of all highlighted modulescore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: HtmlightVisitor :: show_infobox
When highlighting a node, attach a full popupable infobox, if any.nitc :: HtmlightVisitor :: show_infobox=
When highlighting a node, attach a full popupable infobox, if any.nitc :: AbstractHighlightVisitor :: show_messages
When highlighting a node, show its messages (errors, warnings), if any.nitc :: AbstractHighlightVisitor :: show_messages=
When highlighting a node, show its messages (errors, warnings), if any.nitc :: HtmlightVisitor :: with_ast
Should the HTML include a nested<span class"{type_of_node}">
element for each ANode
of the AST?
nitc :: HtmlightVisitor :: with_ast=
Should the HTML include a nested<span class"{type_of_node}">
element for each ANode
of the AST?
nitc :: AbstractHighlightVisitor
Visitor used to produce a HTML tree based on a AST on aSource
Source
class NitlightVisitor
super HtmlightVisitor
# The current highlight module
#
# It is used to know when to use anchored local links
var current_module: MModule
# List of all highlighted modules
#
# It is used to have links that only targets highlighted entities
#
# Entities outside these modules will not be linked.
var mmodules: Collection[MModule]
redef fun hrefto(entity) do return entity.href(self)
end
src/nitlight.nit:20,1--36,3