mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
It’s a type.
This commit is contained in:
parent
1b86134377
commit
53c78fd546
@ -3,7 +3,7 @@ public struct Interpreter<Term: TermType> {
|
|||||||
/// The type of diffs constructed by `Interpreter`s.
|
/// The type of diffs constructed by `Interpreter`s.
|
||||||
public typealias Diff = Free<Term.LeafType, Patch<Term>>
|
public typealias Diff = Free<Term.LeafType, Patch<Term>>
|
||||||
|
|
||||||
/// Constructs an `Interpreter` parameterized by the `equal` and `comparable` tests on `Term`s, and the `cost` function for diffs.
|
/// Constructs an `Interpreter` parameterized by the `equal` and `comparable` tests on `Term`s, and the `cost` function for `Diff`s.
|
||||||
///
|
///
|
||||||
/// `equal` determines whether two terms are equal. This should typically be strict syntactic equality, not e.g. including any annotations of source ranges. If two terms are considered equal by this function, then an unchanged diff will be returned directly. No diffing will be performed, and `comparable` will not be applied to the terms at all.
|
/// `equal` determines whether two terms are equal. This should typically be strict syntactic equality, not e.g. including any annotations of source ranges. If two terms are considered equal by this function, then an unchanged diff will be returned directly. No diffing will be performed, and `comparable` will not be applied to the terms at all.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user