mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Compute the unannotated term corresponding to ranged terms.
This commit is contained in:
parent
e78f5d5c43
commit
2a313b18a1
@ -2,6 +2,10 @@ struct RangedTerm {
|
||||
typealias Term = Cofree<String, Range<String.Index>>
|
||||
let term: Term
|
||||
let source: String
|
||||
|
||||
var stripped: UnannotatedTerm {
|
||||
return UnannotatedTerm(term: term.map(const(())))
|
||||
}
|
||||
}
|
||||
|
||||
extension RangedTerm: Arbitrary {
|
||||
|
Loading…
Reference in New Issue
Block a user