nitc $ VerifyNitniCallbacksPhase :: SELF
Type of this instance, automatically specialized in every classnitc $ VerifyNitniCallbacksPhase :: process_npropdef
Specific actions to execute on the tree of a propertynitc :: ffi $ VerifyNitniCallbacksPhase :: process_npropdef
Specific actions to execute on the tree of a propertynitc :: Phase :: _in_hierarchy
The dependence relation of the phase with the other phasesnitc :: Phase :: _toolcontext
The toolcontext instance attached to the phasecore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: Phase :: defaultinit
core :: Object :: defaultinit
nitc :: Phase :: in_hierarchy
The dependence relation of the phase with the other phasesnitc :: Phase :: in_hierarchy=
The dependence relation of the phase with the other phasescore :: 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.
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 :: Phase :: process_annotated_node
Specific actions to execute on annotated nodesnitc :: Phase :: process_mainmodule
Specific action to execute on the whole program.nitc :: Phase :: process_nclassdef
Specific actions to execute on the tree of a class definitionnitc :: Phase :: process_nmodule
Specific actions to execute on the whole tree of a modulenitc :: Phase :: process_nmodule_after
Specific actions to execute on the whole tree of a modulenitc :: Phase :: process_npropdef
Specific actions to execute on the tree of a propertynitc :: Phase :: toolcontext
The toolcontext instance attached to the phasenitc :: Phase :: toolcontext=
The toolcontext instance attached to the phase
# * checks for the validity of callbacks
# * store the callbacks on each method
class VerifyNitniCallbacksPhase
super Phase
redef fun process_npropdef(npropdef)
do
if not npropdef isa AMethPropdef then return
var mpropdef = npropdef.mpropdef
if mpropdef == null then return
if not mpropdef.is_extern then return
npropdef.verify_nitni_callbacks(toolcontext)
end
end
src/nitni/nitni_callbacks.nit:29,1--43,3
redef class VerifyNitniCallbacksPhase
redef fun process_npropdef(npropdef)
do
super
if not npropdef isa AMethPropdef then return
var code_block = npropdef.n_extern_code_block
if code_block == null then return
var lang = code_block.language
assert lang != null
# Associate callbacks used by an extern method to its foreign language
for callback in npropdef.foreign_callbacks.all do
var map = npropdef.mpropdef.mclassdef.mmodule.ffi_callbacks
if not map.keys.has(lang) then map[lang] = new HashSet[NitniCallback]
map[lang].add(callback)
end
end
end
src/ffi/ffi.nit:79,1--99,3