Method: SyntaxTree::StringConcat#copy
- Defined in:
- lib/syntax_tree/node.rb
#copy(left: nil, right: nil, location: nil) ⇒ Object
10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 |
# File 'lib/syntax_tree/node.rb', line 10165 def copy(left: nil, right: nil, location: nil) node = StringConcat.new( left: left || self.left, right: right || self.right, location: location || self.location ) node.comments.concat(comments.map(&:copy)) node end |