class

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)
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(Arg))
Source
block_arg
Source
block_arg=(block_arg : Arg | Nil)
Source
body
Source
body=(body : 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
double_splat
Source
double_splat=(double_splat : Arg | Nil)
Source
hash(hasher)

See Object#hash(hasher)

name
Source
name=(name : String)
Source
name_location
Source
name_location=(name_location : Location | Nil)
Source
name_size
Source
splat_index
Source
splat_index=(splat_index : Int32 | Nil)
Source
visibility
Source
visibility=(visibility : Syntax::Visibility)
Source