nitc :: Model :: mentities_by_name
full_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