mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
Use the Term typealias.
This commit is contained in:
parent
1df957877e
commit
abfe582247
@ -8,7 +8,7 @@ func readFile(path: String) -> String? {
|
||||
|
||||
typealias Term = Cofree<String, Range<Int>>
|
||||
|
||||
func termWithInput(string: String) -> Cofree<String, Range<Int>>? {
|
||||
func termWithInput(string: String) -> Term? {
|
||||
let document = ts_document_make()
|
||||
defer { ts_document_free(document) }
|
||||
return string.withCString {
|
||||
|
Loading…
Reference in New Issue
Block a user