Class: Rubycc::Front::AST::Block

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

A compound-statement "{ block-item* }" introducing a new scope. items is a flat array of declaration/statement nodes.

Instance Attribute Summary collapse

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



249
250
251
# File 'lib/rubycc/front/ast.rb', line 249

def items
  @items
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



249
250
251
# File 'lib/rubycc/front/ast.rb', line 249

def token
  @token
end