foo::bar::Baz
nitc :: AQclassid :: _n_qualified
The qualifier, if anynitc :: AQclassid :: defaultinit
nitc :: AQclassid :: init_aqclassid
nitc :: AQclassid :: n_qualified=
The qualifier, if anynitc :: htmlight $ AQclassid :: decorate_tag
Add aditionnal information on a child-token and return an additionnal HInfoBox on itnitc $ AQclassid :: is_structural
Isself
a token or a pure-structural production like AQId
?
nitc :: parser_prod $ AQclassid :: n_qualified=
The qualifier, if anynitc :: parser_prod $ AQclassid :: replace_child
Replace a child with an other node in the ASTnitc :: Prod :: _first_location
Location on the first token after the start of a productionnitc :: Prod :: _first_token
The first token of the production in the ASTnitc :: ANode :: _is_broken
The indication that the node did not pass some semantic verifications.nitc :: Prod :: _last_token
The last token of the production in the ASTnitc :: Prod :: _n_annotations
All the annotations attached directly to the nodenitc :: AQclassid :: _n_qualified
The qualifier, if anynitc :: ANode :: accept_ast_validation
nitc :: ANode :: accept_auto_super_init
nitc :: ANode :: accept_flow_visitor
nitc :: ANode :: accept_forward_analysis
Apply the forward analysisv
to self
.
nitc :: ANode :: accept_literal
nitc :: ANode :: accept_post_typing
nitc :: ANode :: accept_pretty_printer
Start visit ofself
using a PrettyPrinterVisitor
nitc :: ANode :: accept_reaching_defs
Apply a ReachingDefsAnalysis toself
.
nitc :: ANode :: accept_regex_visitor
nitc :: ANode :: accept_scope_visitor
nitc :: ANode :: accept_simple_misc
nitc :: ANode :: accept_string_finder
nitc :: ANode :: after_simple_misc
nitc :: ANode :: bad_expr_message
An additional information message to explain the role of a child expression.nitc :: ANode :: check_callsite
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: ANode :: collect_annotations_by_name
Do a deep search and return an array of node that are annotatednitc :: Prod :: collect_comments
Collect allTComment
contained in the production
nitc :: ANode :: collect_length
Collect the length (inChar
) of the node.
nitc :: ANode :: collect_tokens_by_text
Do a deep search and return an array of tokens that match a given textnitc :: ANode :: common_parent
The most specific common parent betweenself
and other
nitc :: ANode :: create_contracts
nitc :: ANode :: decorate_tag
Add aditionnal information on a child-token and return an additionnal HInfoBox on itnitc :: Prod :: defaultinit
core :: Cloneable :: defaultinit
nitc :: AQclassid :: defaultinit
core :: Object :: defaultinit
nitc :: ANode :: defaultinit
nitc :: ANode :: do_cloneable
nitc :: Prod :: first_location
Location on the first token after the start of a productionnitc :: Prod :: first_location=
Location on the first token after the start of a productionnitc :: Prod :: first_token
The first token of the production in the ASTnitc :: Prod :: first_token=
The first token of the production in the ASTnitc :: ANode :: force_block=
Forceself
to be rendered as a block.
nitc :: ANode :: force_inline=
Forceself
to be rendered as a line.
nitc :: ANode :: full_transform_visitor
nitc :: Prod :: get_annotations
Return all its annotations of a given name in the order of their declarationnitc :: Prod :: get_single_annotation
Try to get its single annotation with a given namenitc :: ANode :: hot_location
The location of the important part of the node (identifier or whatever)nitc :: AQclassid :: init_aqclassid
nitc :: ANode :: is_broken=
The indication that the node did not pass some semantic verifications.nitc :: ANode :: is_noserialize
Is this node annotated to not be made serializable?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 :: ANode :: is_serialize
Is this node annotated to be made serializable?nitc :: ANode :: is_structural
Isself
a token or a pure-structural production like AQId
?
nitc :: Prod :: last_token
The last token of the production in the ASTnitc :: Prod :: last_token=
The last token of the production in the ASTnitc :: ANode :: must_be_block
Doesself
have to be rendered as a block?
nitc :: ANode :: must_be_inline
Doesself
have be rendered as a line?
nitc :: Prod :: n_annotations
All the annotations attached directly to the nodenitc :: Prod :: n_annotations=
All the annotations attached directly to the nodenitc :: AQclassid :: n_qualified=
The qualifier, if anycore :: 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 :: ANode :: parentize_tokens
Visit the AST and computes advanced AST attributes on Tokens and Prodnitc :: ANode :: replace_child
Replace a child with an other node in the ASTnitc :: ANode :: replace_with
Replace itself with an other node in the ASTnitc :: Prod :: start_token
The token where the production really start (skipping ADoc).nitc :: ANode :: was_inline
Doesself
was written in one line before transformation?
# A potentially qualified class identifier `foo::bar::Baz`
class AQclassid
super Prod
# The qualifier, if any
var n_qualified: nullable AQualified = null is writable
# The final identifier
var n_id: TClassid is writable, noinit
redef fun is_structural do return true
end
src/parser/parser_nodes.nit:1767,1--1777,3
redef class AQclassid
init init_aqclassid (
n_qualified: nullable AQualified,
n_id: nullable TClassid
)
do
_n_qualified = n_qualified
if n_qualified != null then n_qualified.parent = self
_n_id = n_id.as(not null)
n_id.parent = self
end
redef fun replace_child(old_child: ANode, new_child: nullable ANode)
do
if _n_qualified == old_child then
n_qualified = new_child.as(nullable AQualified)
return
end
if _n_id == old_child then
n_id = new_child.as(TClassid)
return
end
end
redef fun n_qualified=(node)
do
_n_qualified = node
if node != null then node.parent = self
end
redef fun n_id=(node)
do
_n_id = node
node.parent = self
end
redef fun visit_all(v: Visitor)
do
v.enter_visit(_n_qualified)
v.enter_visit(_n_id)
end
end
src/parser/parser_prod.nit:2317,1--2358,3
redef class AQclassid
# The name of the package part, if any
fun mpackname: nullable String do
var nqualified = n_qualified
if nqualified == null then return null
var nids = nqualified.n_id
if nids.length <= 0 then return null
return nids[0].text
end
# The name of the module part, if any
fun mmodname: nullable String do
var nqualified = n_qualified
if nqualified == null then return null
var nids = nqualified.n_id
if nids.length <= 1 then return null
return nids[1].text
end
# Does `mclass` match the full qualified name?
fun accept(mclass: MClass): Bool
do
if mclass.name != n_id.text then return false
var mpackname = self.mpackname
if mpackname != null then
var mpackage = mclass.intro_mmodule.mpackage
if mpackage == null then return false
if mpackage.name != mpackname then return false
var mmodname = self.mmodname
if mmodname != null and mclass.intro_mmodule.name != mmodname then return false
end
return true
end
# The pretty name represented by self.
fun full_name: String
do
var res = n_id.text
var nqualified = n_qualified
if nqualified == null then return res
var ncid = nqualified.n_classid
if ncid != null then res = ncid.text + "::" + res
var nids = nqualified.n_id
if nids.not_empty then for n in nids.reverse_iterator do
res = n.text + "::" + res
end
return res
end
end
src/modelbuilder_base.nit:618,1--666,3