Skip to content

class Crystal::Annotation
inherits Crystal::ASTNode

Class methods

.new(path, args = [] of ASTNode, named_args = nil)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#args=(args : Array(ASTNode))

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)

#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)

View source

#named_args : Array(NamedArgument)?

View source

#named_args=(named_args : Array(NamedArgument)?)

View source

#path : Path

View source

#path=(path : Path)

View source