Class: RuboCop::Isucon::GDA::NodePatcher

Inherits:
GDA::Visitors::Visitor
  • Object
show all
Defined in:
lib/rubocop/isucon/gda/node_patcher.rb

Overview

Monkey patching to GDA::Nodes::Node

Instance Method Summary collapse

Constructor Details

#initialize(sql) ⇒ NodePatcher

Returns a new instance of NodePatcher.

Parameters:

  • sql (String)


9
10
11
12
13
14
15
# File 'lib/rubocop/isucon/gda/node_patcher.rb', line 9

def initialize(sql)
  @sql = sql
  @normalized_sql = RuboCop::Isucon::GDA.normalize_sql(sql)
  @current_operation_pos = 0
  @current_expr_pos = 0
  super()
end