Class: Rubycc::Front::AST::Assignment

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

Overview

Simple assignment target = value. target is a VariableRef or a dereference (Unary with op :deref); the parser rejects any other, non-assignable target.

Instance Attribute Summary collapse

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



227
228
229
# File 'lib/rubycc/front/ast.rb', line 227

def target
  @target
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



227
228
229
# File 'lib/rubycc/front/ast.rb', line 227

def token
  @token
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



227
228
229
# File 'lib/rubycc/front/ast.rb', line 227

def value
  @value
end