Class: Rubycc::Front::AST::Case

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

Overview

A case <constant>: statement label (6.8.1). value is the case constant folded to a Ruby Integer at parse time (an integer or character constant, optionally signed — general constant-expression evaluation arrives in a later step). body is the labeled statement. A Case only has meaning inside a switch; the generator diagnoses one that is not.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



293
294
295
# File 'lib/rubycc/front/ast.rb', line 293

def body
  @body
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



293
294
295
# File 'lib/rubycc/front/ast.rb', line 293

def token
  @token
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



293
294
295
# File 'lib/rubycc/front/ast.rb', line 293

def value
  @value
end