Try to get MMethod property if exist in the given mclassdef. return new MMethod if not exist.

Property definitions

nitc :: astbuilder $ ModelBuilder :: get_mmethod
	# Try to get MMethod property if exist in the given mclassdef. return new `MMethod` if not exist.
	private fun get_mmethod(name: String, mclassdef: MClassDef, visibility: nullable MVisibility): MMethod do
		visibility = visibility or else public_visibility
		var mproperty = try_get_mproperty_by_name(null, mclassdef, name).as(nullable MMethod)
		if mproperty == null then mproperty = new MMethod(mclassdef, name, mclassdef.location, visibility)
		return mproperty
	end
src/astbuilder.nit:1039,2--1045,4