Class: RLSL::Prism::IR::Parenthesized

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(expression) ⇒ Parenthesized

Returns a new instance of Parenthesized.



164
165
166
167
168
# File 'lib/rlsl/prism/ir/expressions.rb', line 164

def initialize(expression)
  super()
  @expression = expression
  @type = expression&.type
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



160
161
162
# File 'lib/rlsl/prism/ir/expressions.rb', line 160

def expression
  @expression
end