Searches the MEntities that matches full_name.

Property definitions

nitc :: model_collect $ Model :: mentities_by_name
	# Searches the MEntities that matches `full_name`.
	fun mentities_by_name(name: String, filter: nullable ModelFilter): Array[MEntity] do
		var res = new Array[MEntity]
		for mentity in collect_mentities(filter) do
			if filter != null and not filter.accept_mentity(mentity) then continue
			if mentity.name == name then res.add mentity
		end
		return res
	end
src/model/model_collect.nit:255,2--263,4

nitc :: model_index $ Model :: mentities_by_name
	redef fun mentities_by_name(name, filter) do
		var res = new Array[MEntity]
		if not index.names.has_key(name) then return res
		for mentity in index.names[name] do
			if filter == null or filter.accept_mentity(mentity) then res.add mentity
		end
		return res
	end
src/model/model_index.nit:154,2--161,4