x:X
nitc :: AParam :: _mparameter
The associated mparameter if anynitc :: AParam :: _n_dotdotdot
The...
symbol to indicate varargs
nitc :: AParam :: defaultinit
nitc :: AParam :: init_aparam
nitc :: AParam :: mparameter=
The associated mparameter if anynitc :: AParam :: n_dotdotdot
The...
symbol to indicate varargs
nitc :: AParam :: n_dotdotdot=
The...
symbol to indicate varargs
nitc :: pretty $ AParam :: accept_pretty_printer
Start visit ofself
using a PrettyPrinterVisitor
nitc :: scope $ AParam :: accept_scope_visitor
nitc :: htmlight $ AParam :: decorate_tag
Add aditionnal information on a child-token and return an additionnal HInfoBox on itnitc :: parser_prod $ AParam :: n_annotations=
All the annotations attached directly to the nodenitc :: parser_prod $ AParam :: n_dotdotdot=
The...
symbol to indicate varargs
nitc :: parser_prod $ AParam :: 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 :: AParam :: _mparameter
The associated mparameter if anynitc :: Prod :: _n_annotations
All the annotations attached directly to the nodenitc :: AParam :: _n_dotdotdot
The...
symbol to indicate varargs
nitc :: 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 itcore :: Object :: defaultinit
nitc :: ANode :: defaultinit
nitc :: AParam :: defaultinit
core :: Cloneable :: defaultinit
nitc :: Prod :: 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 :: AParam :: init_aparam
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 :: AParam :: mparameter=
The associated mparameter if anynitc :: 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 :: AParam :: n_dotdotdot
The...
symbol to indicate varargs
nitc :: AParam :: n_dotdotdot=
The...
symbol to indicate varargs
core :: 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 parameter definition in a signature. eg `x:X`
class AParam
super Prod
# The name of the parameter
var n_id: TId is writable, noinit
# The type of the parameter, if any
var n_type: nullable AType = null is writable
# The `...` symbol to indicate varargs
var n_dotdotdot: nullable TDotdotdot = null is writable
end
src/parser/parser_nodes.nit:1796,1--1808,3
redef class AParam
init init_aparam (
n_id: nullable TId,
n_type: nullable AType,
n_dotdotdot: nullable TDotdotdot,
n_annotations: nullable AAnnotations
)
do
_n_id = n_id.as(not null)
n_id.parent = self
_n_type = n_type
if n_type != null then n_type.parent = self
_n_dotdotdot = n_dotdotdot
if n_dotdotdot != null then n_dotdotdot.parent = self
_n_annotations = n_annotations
if n_annotations != null then n_annotations.parent = self
end
redef fun replace_child(old_child: ANode, new_child: nullable ANode)
do
if _n_id == old_child then
n_id = new_child.as(TId)
return
end
if _n_type == old_child then
n_type = new_child.as(nullable AType)
return
end
if _n_dotdotdot == old_child then
n_dotdotdot = new_child.as(nullable TDotdotdot)
return
end
if _n_annotations == old_child then
n_annotations = new_child.as(nullable AAnnotations)
return
end
end
redef fun n_id=(node)
do
_n_id = node
node.parent = self
end
redef fun n_type=(node)
do
_n_type = node
if node != null then node.parent = self
end
redef fun n_dotdotdot=(node)
do
_n_dotdotdot = node
if node != null then node.parent = self
end
redef fun n_annotations=(node)
do
_n_annotations = node
if node != null then node.parent = self
end
redef fun visit_all(v: Visitor)
do
v.enter_visit(_n_id)
v.enter_visit(_n_type)
v.enter_visit(_n_dotdotdot)
v.enter_visit(_n_annotations)
end
end
src/parser/parser_prod.nit:2418,1--2485,3
redef class AParam
# The variable associated with the parameter
var variable: nullable Variable
redef fun accept_scope_visitor(v)
do
if variable != null then
v.register_variable(self.n_id, variable.as(not null))
return
end
super
var nid = self.n_id
var variable = new Variable(nid.text)
v.register_variable(nid, variable)
self.variable = variable
end
end
src/semantize/scope.nit:266,1--282,3
redef class AParam
# The associated mparameter if any
var mparameter: nullable MParameter = null
end
src/modelize/modelize_property.nit:753,1--756,3
redef class AParam
private init make(v: nullable Variable, t: nullable AType)
do
_n_id = new TId
if v != null then _n_id.text = v.name
_variable = v
_n_type = t
end
redef fun clone: SELF
do
var ntype = n_type
if ntype != null then ntype = n_type.clone
return new AParam.make(variable, ntype)
end
end
src/astbuilder.nit:759,1--775,3