1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Add an Info structure.

This commit is contained in:
Rob Rix 2015-10-28 14:22:07 -04:00
parent 83328cc0d0
commit 2ea54805f1

View File

@ -32,6 +32,11 @@ enum Category: String {
case SubscriptAccess = "subscript_access"
}
struct Info {
let range: Range<Int>
let category: Category
}
func termWithInput(string: String) -> Term? {
let document = ts_document_make()
defer { ts_document_free(document) }