class

Syntax::Block

Inherits Syntax::ASTNode < Reference < Object

A code block.

'do' [ '|' arg [ ',' arg ]* '|' ]
  body
'end'

| '{' [ '|' arg [ ',' arg ]* '|' ] body '}'

Constructors

new(args : Array(Syntax::Var) = [] of Var, body = nil, splat_index : Int32 | Nil = 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(Var))
Source
body
Source
body=(body : ASTNode)
Source
call
Source
call=(call : Call | Nil)
Source
clone_without_location
Source
hash(hasher)

See Object#hash(hasher)

splat_index
Source
splat_index=(splat_index : Int32 | Nil)
Source