Skip to content

class Crystal::AnnotationDef
inherits Crystal::ASTNode

Annotation definition:

'annotation' name
'end'

Class methods

.new(name)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#clone_without_location

View source

#doc : String?

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

View source

#doc=(doc : String?)

View source

#hash(hasher)

#name : Path

View source

#name=(name : Path)

View source

#name_location : Location?

View source

#name_location=(name_location : Location?)

View source