nitc :: ANode :: create_contracts
private fun create_contracts(v: ContractsVisitor) do end
src/contracts.nit:285,2--57
# Entry point to create a contract (verification of inheritance, or new contract).
redef fun create_contracts(v)
do
v.ast_builder.check_mmodule(mpropdef.mclassdef.mmodule)
v.current_location = self.location
v.is_intro_contract = mpropdef.is_intro
if n_annotations != null then
for n_annotation in n_annotations.n_items do
check_annotation(v,n_annotation)
end
end
if not mpropdef.is_intro and not v.find_no_contract then
self.check_redef(v)
end
# reset the flag
v.find_no_contract = false
end
src/contracts.nit:790,2--810,4