Return the most specific values defined in mmodule and its imported modules.

Unlike lookup_values, only the most specific value, according to importation, is returned.

Property definitions

nitc $ MModuleData :: lookup_first_value
	# Return the most specific values defined in `mmodule` and its imported modules.
	# Unlike `lookup_values`, only the most specific value, according to importation, is returned.
	fun lookup_first_value(mmodule: MModule, min_visibility: MVisibility): nullable E
	do
		var mmodules = lookup_all_modules(mmodule, min_visibility)
		if mmodules.is_empty then return null
		mmodules = model.mmodule_importation_hierarchy.linearize(mmodules)
		return defs[mmodules.last]
	end
src/model/mmodule_data.nit:93,2--101,4