Syntax::AnnotationDef
Inherits Syntax::ASTNode < Reference < Object
Annotation definition:
'annotation' name
'end'
Constructors
new(name : Syntax::Path)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourceclone_without_location
Sourcedoc
Returns the doc comment attached to this node. Not every node
supports having doc comments, so by default this returns nil.
hash(hasher)
See Object#hash(hasher)
name
Sourcename_location
Sourcename_location=(name_location : Location | Nil)
Source