Class: Rubycc::Front::AST::Goto

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

Overview

A goto identifier; jump (6.8.6.1). label is the target label's name. The target may be defined anywhere in the same function, before or after the goto; the generator resolves the name against a function-scoped label table and diagnoses a jump to an undefined label at the function's end.

Instance Attribute Summary collapse

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



304
305
306
# File 'lib/rubycc/front/ast.rb', line 304

def label
  @label
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



304
305
306
# File 'lib/rubycc/front/ast.rb', line 304

def token
  @token
end