ASignature
and MSignature
The given mcontract
provided adapt_nsignature
and adapt_msignature
to copy and adapt the given signature (nsignature
and msignature
)
# Method use to define the signature part of the method `ASignature` and `MSignature`
# The given `mcontract` provided `adapt_nsignature` and `adapt_msignature` to copy and adapt the given signature (`nsignature` and `msignature`)
fun define_signature(mcontract: MContract, nsignature: nullable ASignature, msignature: nullable MSignature)
do
if nsignature != null and msignature != null then nsignature.ret_type = msignature.return_mtype
self.n_signature = mcontract.adapt_nsignature(nsignature)
self.m_signature = mcontract.adapt_msignature(msignature)
end
src/contracts.nit:119,2--126,4