Return the single annotation name locally assocated to mmodule, if any.

Obviously, if there is no ast associated to mmodule, then nothing is returned.

Property definitions

nitc :: annotation $ ModelBuilder :: get_mmodule_annotation
	# Return the single annotation `name` locally assocated to `mmodule`, if any.
	# Obviously, if there is no ast associated to `mmodule`, then nothing is returned.
	fun get_mmodule_annotation(name: String, mmodule: MModule): nullable AAnnotation
	do
		var amod = mmodule2node(mmodule)
		if amod == null then return null
		var module_decl = amod.n_moduledecl
		if module_decl == null then return null
		var res = module_decl.get_single_annotation(name, self)
		return res
	end
src/annotation.nit:100,2--110,4