1
1
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:
Rob Rix 2015-10-28 18:11:22 -04:00
parent ba33e1c4a3
commit 08120cb79f

View File

@ -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
]
}