class

Syntax::Annotation

Inherits Syntax::ASTNode < Reference < Object

Constructors

new(path : Syntax::Path, args : Array(Syntax::ASTNode) = [] of ASTNode, named_args : Nil | Array(Syntax::NamedArgument) = nil)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
args
Source
args=(args : Array(ASTNode))
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)

named_args
Source
named_args=(named_args : Array(NamedArgument) | Nil)
Source
path
Source
path=(path : Path)
Source