class Drizzle::AST::BlockStatement

Overview

Node defining a block. A block is a set of statements contained within braces.

Defined in:

drizzle/ast/block.cr

Constructors

Instance Method Summary

Instance methods inherited from class Drizzle::AST::Node

literal : String literal, to_s : String to_s

Constructor Detail

def self.new(token : Token, statements : Array(Statement)) #

[View source]

Instance Method Detail

def literal : String #

[View source]
def statements : Array(Drizzle::AST::Statement) #

The array of statements contained within the block


[View source]
def to_s : String #

[View source]
def token : Drizzle::Token #

The token that led to the creation of the node


[View source]