Sha256: 4e996eb954f6e2986a8c5bfe21ee755fa42d05fc1bd01361cbd465bf82acb2dd

Contents?: true

Size: 210 Bytes

Versions: 68

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

class UsingTreeRewriter < Parser::TreeRewriter
  def on_send(node)
    wrap(node.loc.expression, '(', ')')
    wrap(node.children[0].loc.expression, '[', ']')
    super
  end
end

Version data entries

68 entries across 54 versions & 10 rubygems

Version Path
passbase-1.3.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
passbase-1.2.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
passbase-1.1.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
passbase-1.0.3 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
passbase-1.0.2 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
passbase-1.0.1 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
passbase-1.0.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.1.5 test/using_tree_rewriter/using_tree_rewriter.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/parser-2.7.0.2/test/using_tree_rewriter/using_tree_rewriter.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/parser-2.7.1.4/test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.1.4 test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.1.3 test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.1.2 test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.1.1 test/using_tree_rewriter/using_tree_rewriter.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/parser-2.7.1.0/test/using_tree_rewriter/using_tree_rewriter.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.0/test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.1.0 test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.0.5 test/using_tree_rewriter/using_tree_rewriter.rb
parser-2.7.0.4 test/using_tree_rewriter/using_tree_rewriter.rb