mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Use the range’s JSON property.
This commit is contained in:
parent
ba33e1c4a3
commit
08120cb79f
@ -22,10 +22,7 @@ struct Info: Categorizable, CustomJSONConvertible, Equatable {
|
||||
|
||||
var JSON: Doubt.JSON {
|
||||
return [
|
||||
"range": [
|
||||
range.startIndex.JSON,
|
||||
(range.endIndex - range.startIndex).JSON,
|
||||
],
|
||||
"range": range.JSON,
|
||||
"categories": Array(categories).JSON
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user