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:
parent
83328cc0d0
commit
2ea54805f1
@ -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) }
|
||||
|
Loading…
Reference in New Issue
Block a user