2019-09-30 21:07:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Diff
|
|
|
|
class PositionTracer
|
|
|
|
class BaseStrategy
|
|
|
|
attr_reader :tracer
|
|
|
|
|
|
|
|
delegate \
|
|
|
|
:project,
|
2020-07-28 23:09:34 +05:30
|
|
|
:diff_file,
|
2019-09-30 21:07:59 +05:30
|
|
|
:ac_diffs,
|
|
|
|
:bd_diffs,
|
|
|
|
:cd_diffs,
|
|
|
|
to: :tracer
|
|
|
|
|
|
|
|
def initialize(tracer)
|
|
|
|
@tracer = tracer
|
|
|
|
end
|
|
|
|
|
|
|
|
def trace(position)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|