1
1
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:
Rob Rix 2015-10-19 11:37:13 -04:00
parent e78f5d5c43
commit 2a313b18a1

View File

@ -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 {