Class: RLSL::Prism::IR::FieldAccess

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/expressions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

Constructor Details

#initialize(receiver, field, type = nil) ⇒ FieldAccess

Returns a new instance of FieldAccess.



112
113
114
115
116
117
# File 'lib/rlsl/prism/ir/expressions.rb', line 112

def initialize(receiver, field, type = nil)
  super()
  @receiver = receiver
  @field = field
  @type = type
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



108
109
110
# File 'lib/rlsl/prism/ir/expressions.rb', line 108

def field
  @field
end

#receiverObject (readonly)

Returns the value of attribute receiver.



108
109
110
# File 'lib/rlsl/prism/ir/expressions.rb', line 108

def receiver
  @receiver
end