class

Syntax::AnnotationDef

Inherits Syntax::ASTNode < Reference < Object

Annotation definition:

'annotation' name
'end'

Constructors

new(name : Syntax::Path)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
clone_without_location
Source
doc

Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil.

Source
doc=(doc : String | Nil)
Source
hash(hasher)

See Object#hash(hasher)

name
Source
name=(name : Path)
Source
name_location
Source
name_location=(name_location : Location | Nil)
Source