Skip to content

Commit

Permalink
clarify that syncheck:find-source-object's result needs to make sense…
Browse files Browse the repository at this point in the history
… with `equal?`
  • Loading branch information
rfindler committed Apr 4, 2023
1 parent 6868b16 commit cda4737
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,13 @@ in order to make the results be platform independent.
annotations are those in the original file and this is a syntax object
introduced by a macro and thus has a source location from some other file).

Otherwise, it should return some (non-@racket[#f])
value that will then be passed to one of the other methods below as
a @racket[_source-obj] argument.
Otherwise, it should return some (non-@racket[#f]) value
that will then be passed to one of the other methods below
as a @racket[_source-obj] argument. Also, the result of this
method is used as a key in an @racket[equal?]-based
@tech[#:doc '(lib "scribblings/reference/reference.scrbl")]{hash},
so two source objects should refer to the same original source
if and only if they are @racket[equal?].
}

@defmethod[(syncheck:add-text-type [source-obj (not/c #f)]
Expand Down

0 comments on commit cda4737

Please sign in to comment.