nitc :: AMainMethPropdef :: defaultinit
nitc $ AMainMethPropdef :: SELF
Type of this instance, automatically specialized in every classnitc :: pretty $ AMainMethPropdef :: accept_pretty_printer
Start visit ofself
using a PrettyPrinterVisitor
nitc :: parser_prod $ AMainMethPropdef :: n_block=
The body (in Nit) of the method, if anynitc :: parser_prod $ AMainMethPropdef :: n_kwredef=
Theredef
keyword
nitc :: parser_prod $ AMainMethPropdef :: replace_child
Replace a child with an other node in the ASTnitc :: parser_prod $ AMainMethPropdef :: visit_all
Visit all nodes in order.nitc :: APropdef :: _after_flow_context
The ending flownitc :: AMethPropdef :: _auto_super_call
In case of redefined constructors, is an implicit call-to-super required?nitc :: AMethPropdef :: _auto_super_inits
In case of introduced constructor, the list of implicit auto super init constructors invoked (if needed)nitc :: APropdef :: _basic_block
The first basic block of the codenitc :: APropdef :: _before_flow_context
The starting flownitc :: APropdef :: _environment_size
The size of the environment to create to call this methodnitc :: 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 :: AMethPropdef :: _foreign_entry_cache
Handle to the entrypoint of this method in the foreign code librarynitc :: AMethPropdef :: _is_autoinit
Is the method annotatedautoinit
?
nitc :: ANode :: _is_broken
The indication that the node did not pass some semantic verifications.nitc :: APropdef :: _is_compiled
Indicite if this propdef was compilenitc :: APropdef :: _is_generated
If true, the basic blocks where generatednitc :: APropdef :: _is_numbering
Indicate if the variables numbering has been donenitc :: APropdef :: _is_phased
Is the propdef already analyzed byrun_phases_on_npropdef
.
nitc :: Prod :: _last_token
The last token of the production in the ASTnitc :: Prod :: _n_annotations
All the annotations attached directly to the nodenitc :: AMethPropdef :: _n_block
The body (in Nit) of the method, if anynitc :: AMethPropdef :: _n_extern_calls
The list of declared callbacks (for extern methods)nitc :: AMethPropdef :: _n_extern_code_block
The body (in extern code) of the method, if anynitc :: AMethPropdef :: _n_methid
The name of the method, if anynitc :: AMethPropdef :: _n_signature
The signature of the method, if anynitc :: ADefinition :: _n_visibility
The declared visibilitynitc :: APropdef :: _object_sites
Contain all AST-parts related to object mechanisms the propdef has:nitc :: APropdef :: _return_mark
The break escape mark associated with the returnnitc :: APropdef :: _selfvariable
The variable associated to the receiver (if any)nitc :: APropdef :: _variables
The variables contained in the body on this propdefnitc :: ANode :: accept_ast_validation
nitc :: ANode :: accept_auto_super_init
nitc :: AMethPropdef :: accept_externmeth
Should we compile the extern methodself
?
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 :: AMethPropdef :: adapt_block_to_contract
Adapt the block to use the contractsnitc :: APropdef :: after_flow_context=
The ending flownitc :: ANode :: after_simple_misc
nitc :: AMethPropdef :: auto_super_call
In case of redefined constructors, is an implicit call-to-super required?nitc :: AMethPropdef :: auto_super_call=
In case of redefined constructors, is an implicit call-to-super required?nitc :: AMethPropdef :: auto_super_inits
In case of introduced constructor, the list of implicit auto super init constructors invoked (if needed)nitc :: AMethPropdef :: auto_super_inits=
In case of introduced constructor, the list of implicit auto super init constructors invoked (if needed)nitc :: ANode :: bad_expr_message
An additional information message to explain the role of a child expression.nitc :: APropdef :: basic_block
The first basic block of the codenitc :: APropdef :: basic_block=
The first basic block of the codenitc :: APropdef :: before_flow_context
The starting flownitc :: APropdef :: before_flow_context=
The starting flownitc :: APropdef :: build_property
nitc :: APropdef :: build_signature
mpropdef
associated with the current node.
nitc :: AMethPropdef :: call_commons
Execution of the body of the methodnitc :: AMethPropdef :: call_extern
Call this extern methodnitc :: APropdef :: can_inline
nitc :: AMethPropdef :: check_annotation
Verification of the annotation to know if it is a contract annotation.nitc :: ANode :: check_callsite
nitc :: AMethPropdef :: check_redef
Verification if the method have an inherited contract to apply it.nitc :: APropdef :: check_redef_keyword
nitc :: APropdef :: check_repeated_types
Checks for useless type in redef signatures.nitc :: APropdef :: check_signature
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 :: AMethPropdef :: compile_externinit_to_c
Compile an extern factorynitc :: AMethPropdef :: compile_externmeth_to_c
Compile an extern methodnitc :: AMethPropdef :: compile_ffi_method
Compile the necessary wrapper around this extern method or constructornitc :: AMethPropdef :: compile_inside_to_java
Compile the inside of the method bodynitc :: AMethPropdef :: compile_intern_to_java
Compile an intern method using Java primitivesnitc :: APropdef :: compile_to_c
nitc :: APropdef :: compile_to_java
Compile that property definition to java codenitc :: APropdef :: compute_phi
Compute the first phase of SSA algorithm: placing phi-functionsnitc :: ANode :: create_contracts
nitc :: ANode :: decorate_tag
Add aditionnal information on a child-token and return an additionnal HInfoBox on itnitc :: AMethPropdef :: defaultinit
nitc :: TablesCapable :: defaultinit
nitc :: APropdef :: defaultinit
core :: Object :: defaultinit
nitc :: AMainMethPropdef :: defaultinit
core :: Cloneable :: defaultinit
nitc :: ADefinition :: defaultinit
nitc :: ANode :: defaultinit
nitc :: Prod :: defaultinit
nitc :: AMethPropdef :: do_all
Execute all method verification scope flow and typing.nitc :: AMethPropdef :: do_auto_super_init
Collect initializers and build the auto-initnitc :: ANode :: do_cloneable
nitc :: APropdef :: do_local_var_init
Entry point of the whole local variable initialization verifiernitc :: APropdef :: environment_size
The size of the environment to create to call this methodnitc :: APropdef :: environment_size=
The size of the environment to create to call this methodnitc :: 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 :: AMethPropdef :: foreign_callbacks
All foreign callbacks from this methodnitc :: AMethPropdef :: foreign_entry_cache
Handle to the entrypoint of this method in the foreign code librarynitc :: AMethPropdef :: foreign_entry_cache=
Handle to the entrypoint of this method in the foreign code librarynitc :: ANode :: full_transform_visitor
nitc :: APropdef :: generate_basic_blocks
Generate all basic blocks for this codenitc :: 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 :: AMethPropdef :: get_super_candidatedefs
This method returns the list of possible candidates for the current definition.nitc :: ANode :: hot_location
The location of the important part of the node (identifier or whatever)nitc :: AMethPropdef :: insert_artificial_callbacks
Insert additional explicit calls to get the currentJNIEnv
nitc :: AMethPropdef :: intern_call
Interprets a intern or a shortcut extern method.nitc :: AMethPropdef :: is_autoinit=
Is the method annotatedautoinit
?
nitc :: ANode :: is_broken=
The indication that the node did not pass some semantic verifications.nitc :: APropdef :: is_compiled=
Indicite if this propdef was compilenitc :: APropdef :: is_generated=
If true, the basic blocks where generatednitc :: ANode :: is_noserialize
Is this node annotated to not be made serializable?nitc :: APropdef :: is_numbering
Indicate if the variables numbering has been donenitc :: APropdef :: is_numbering=
Indicate if the variables numbering has been donenitc :: APropdef :: is_phased=
Is the propdef already analyzed byrun_phases_on_npropdef
.
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 :: TablesCapable :: lexer_accept
The accept value of the lexer at initc :: TablesCapable :: lexer_goto
The goto value of the lexer at row i, column j-1nitc :: AMethPropdef :: look_like_a_root_init
Can self be used as a root init?nitc :: AMethPropdef :: make
nitc :: 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 :: AMethPropdef :: n_block=
The body (in Nit) of the method, if anynitc :: AMethPropdef :: n_extern_calls
The list of declared callbacks (for extern methods)nitc :: AMethPropdef :: n_extern_calls=
The list of declared callbacks (for extern methods)nitc :: AMethPropdef :: n_extern_code_block
The body (in extern code) of the method, if anynitc :: AMethPropdef :: n_extern_code_block=
The body (in extern code) of the method, if anynitc :: AMethPropdef :: n_kwinit=
Theinit
keyword, if any
nitc :: AMethPropdef :: n_methid=
The name of the method, if anynitc :: AMethPropdef :: n_signature
The signature of the method, if anynitc :: AMethPropdef :: n_signature=
The signature of the method, if anynitc :: ADefinition :: n_visibility=
The declared visibilitycore :: Object :: native_class_name
The class name of the object in CString format.nitc :: APropdef :: numbering_variables
Numbering the variable inside the propdefnitc :: APropdef :: object_sites
Contain all AST-parts related to object mechanisms the propdef has:nitc :: APropdef :: object_sites=
Contain all AST-parts related to object mechanisms the propdef has: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 :: TablesCapable :: parser_action
The action value of the parser at row i, column j-1nitc :: TablesCapable :: parser_goto
The goto value of the parser at row i, column j-1nitc :: APropdef :: propagate_dependences
Propagate the dependences of the phi-functions into following variablesnitc :: APropdef :: rename_variables
Compute the second phase of SSA algorithm: renaming variablesnitc :: 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 :: APropdef :: return_mark
The break escape mark associated with the returnnitc :: APropdef :: return_mark=
The break escape mark associated with the returnnitc :: APropdef :: returnvar=
The return variable of the propdefnitc :: APropdef :: selfvariable
The variable associated to the receiver (if any)nitc :: APropdef :: selfvariable=
The variable associated to the receiver (if any)nitc :: APropdef :: ssa_destruction
Transform SSA-representation into an executable code (delete phi-functions)nitc :: Prod :: start_token
The token where the production really start (skipping ADoc).nitc :: AMethPropdef :: supported_by_dynamic_ffi
Does this method definition use the FFI and is it supported by the interpreter?nitc :: APropdef :: variables=
The variables contained in the body on this propdefnitc :: AMethPropdef :: verify_nitni_callbacks
Verifiy the validity of the explicit callbacks to Nitnitc :: APropdef :: visit_annotations
Factorize annotations visit for all APropdef.nitc :: APropdef :: visit_block
Factorize block visit for APropdefs.nitc :: ANode :: was_inline
Doesself
was written in one line before transformation?
# The implicit main method
class AMainMethPropdef
super AMethPropdef
end
src/parser/parser_nodes.nit:1455,1--1458,3
redef class AMainMethPropdef
init init_amainmethpropdef (
n_kwredef: nullable TKwredef,
n_block: nullable AExpr
)
do
_n_kwredef = n_kwredef
if n_kwredef != null then n_kwredef.parent = self
_n_block = n_block
if n_block != null then n_block.parent = self
end
redef fun replace_child(old_child: ANode, new_child: nullable ANode)
do
if _n_kwredef == old_child then
n_kwredef = new_child.as(nullable TKwredef)
return
end
if _n_block == old_child then
n_block = new_child.as(nullable AExpr)
return
end
end
redef fun n_kwredef=(node)
do
_n_kwredef = node
if node != null then node.parent = self
end
redef fun n_block=(node)
do
_n_block = node
if node != null then node.parent = self
end
redef fun visit_all(v: Visitor)
do
v.enter_visit(_n_kwredef)
v.enter_visit(_n_block)
end
end
src/parser/parser_prod.nit:991,1--1032,3
redef class AMainMethPropdef
redef fun accept_pretty_printer(v) do
v.visit n_block
if v.skip_empty then v.addn
end
end
src/pretty.nit:1004,1--1009,3