nitc :: AnnotatedMEntity :: defaultinit
# A MEntity that can hold annotations from it's source code
#
# We do not introduce these services in MEntity to avoid semantics confusion.
# At this stage, the annotation concept is only relevant to source code related
# mentities such as MModules, MClassDefs and MPropdefs.
abstract class AnnotatedMEntity
# Names of the annotations found on `self` declaration
var annotations: Set[String] = new HashSet[String]
# Does `self` contains `annotation` in its declaration?
fun has_annotation(annotation: String): Bool do return annotations.has(annotation)
end
src/frontend/parse_annotations.nit:93,1--105,3