Syntax::Macro
Inherits Syntax::ASTNode < Reference < Object
Constructors
new(name : String, args : Array(Syntax::Arg) = [] of Arg, body : Syntax::ASTNode = Nop.new, block_arg : Nil | Syntax::Arg = nil, splat_index : Int32 | Nil = nil, double_splat : Nil | Syntax::Arg = nil)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourceargs
Sourceblock_arg
Sourceblock_arg=(block_arg : Arg | Nil)
Sourcebody
Sourcebody=(body : ASTNode)
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.
double_splat
Sourcedouble_splat=(double_splat : Arg | Nil)
Sourcehash(hasher)
See Object#hash(hasher)
name
Sourcename_location
Sourcename_location=(name_location : Location | Nil)
Sourcename_size
Sourcesplat_index
Sourcevisibility
Sourcevisibility=(visibility : Syntax::Visibility)
Source