class RuboCop::AST::NodePattern::Compiler::Debug::Trace

which should be an instance of this class
Compiled node pattern requires a named parameter ‘trace`,

def enter(node_id)

def enter(node_id)
  @visit[node_id] = false
  true
end

def initialize

def initialize
  @visit = {}
end

def matched?(node_id)

return nil (not visited), false (not matched) or true (matched)
def matched?(node_id)
  @visit[node_id]
end

def success(node_id)

def success(node_id)
  @visit[node_id] = true
end