- # Default is `true`.
- var include_empty_doc = true is writable
-
- # Can we accept this `mentity` regarding its documentation?
- fun accept_empty_doc(mentity: MEntity): Bool do
- if include_empty_doc then return true
- return mentity.mdoc != null
- end
-
- # Should we accept nitunit test suites?
- #
- # Default is `false`.
- var include_test = false is writable
-
- # Can we accept this `mentity` regarding its test suite status?
- fun accept_test(mentity: MEntity): Bool do
- if include_test then return true
- if not mentity isa MModule then return true
- return not mentity.is_test
- end
-
- # Should we accept `MAttribute` instances?
- #
- # Default is `true`.
- var include_attribute = true is writable
-
- # Can we accept this `mentity` regarding its type?
- fun accept_attribute(mentity: MEntity): Bool do
- if include_attribute then return true
- if mentity isa MAttribute then return false
- if mentity isa MAttributeDef then return false
- return true
+ # See ModelFilters for configuration.
+ var filter: ModelFilter is lazy, writable, optional do
+ return new ModelFilter(
+ min_visibility = protected_visibility,
+ accept_fictive = false,
+ accept_test = false,
+ accept_example = false,
+ accept_redef = true,
+ accept_extern = true,
+ accept_attribute = true,
+ accept_empty_doc = true
+ )