Skip to content

Commit

Permalink
[chore] Rename file to legacy_reporters.go (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastorina authored Feb 10, 2024
1 parent 9642d4c commit 8f01326
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ func (ChanReporter) ChunkErr(ctx context.Context, err error) error {

var _ UnitReporter = (*VisitorReporter)(nil)

// VisitorReporter is a UnitReporter that will call the provided callbacks for
// finding units and reporting errors. VisitErr is optional; if unset it will
// log the error.
type VisitorReporter struct {
VisitUnit func(context.Context, SourceUnit) error
VisitErr func(context.Context, error) error
Expand Down

0 comments on commit 8f01326

Please sign in to comment.