Class: Node::ARGSCAT

Inherits:
Node
  • Object
show all
Defined in:
lib/decompiler/node/as_expression.rb

Instance Method Summary collapse

Methods inherited from Node

#as_code, #as_expression, #as_paren_expression, define_code, define_expression

Instance Method Details

#as_expression_impl(node, brackets = true) ⇒ Object



117
118
119
120
121
122
123
124
# File 'lib/decompiler/node/as_expression.rb', line 117

def as_expression_impl(node, brackets = true)
  s = brackets ? '[' : ''
  s << node.head.as_expression(false)
  s << ", "
  s << "*#{node.body.as_expression}"
  s << (brackets ? ']' : '')
  s
end