2019-07-05 07:03:47 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Diff
|
|
|
|
class PositionTracer
|
|
|
|
class BaseStrategy
|
|
|
|
attr_reader :tracer
|
|
|
|
|
|
|
|
delegate \
|
|
|
|
:project,
|
2020-06-19 17:08:32 -04:00
|
|
|
:diff_file,
|
2019-07-05 07:03:47 -04:00
|
|
|
:ac_diffs,
|
|
|
|
:bd_diffs,
|
|
|
|
:cd_diffs,
|
|
|
|
to: :tracer
|
|
|
|
|
|
|
|
def initialize(tracer)
|
|
|
|
@tracer = tracer
|
|
|
|
end
|
|
|
|
|
|
|
|
def trace(position)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|