File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
main/kotlin/com/sourcegraph/semanticdb_kotlinc
test/kotlin/com/sourcegraph/semanticdb_kotlinc/test Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class SemanticdbTextDocumentBuilder(
37
37
this .md5 = semanticMd5
38
38
this .schema = Semanticdb .Schema .SEMANTICDB4
39
39
this .language = Semanticdb .Language .KOTLIN
40
+ occurrences.sortWith(compareBy({ it.range.startLine }, { it.range.startCharacter }))
40
41
this .addAllOccurrences(occurrences)
41
42
this .addAllSymbols(symbols)
42
43
}
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ class SemanticdbSymbolsTest {
390
390
listOf (
391
391
SymbolOccurrence {
392
392
role = Role .DEFINITION
393
- symbol = " Test#sample. "
393
+ symbol = " Test#`<init>`().(sample) "
394
394
range {
395
395
startLine = 0
396
396
startCharacter = 15
@@ -400,7 +400,7 @@ class SemanticdbSymbolsTest {
400
400
},
401
401
SymbolOccurrence {
402
402
role = Role .DEFINITION
403
- symbol = " Test#getSample() ."
403
+ symbol = " Test#sample ."
404
404
range {
405
405
startLine = 0
406
406
startCharacter = 15
@@ -410,7 +410,7 @@ class SemanticdbSymbolsTest {
410
410
},
411
411
SymbolOccurrence {
412
412
role = Role .DEFINITION
413
- symbol = " Test#setSample ()."
413
+ symbol = " Test#getSample ()."
414
414
range {
415
415
startLine = 0
416
416
startCharacter = 15
@@ -420,7 +420,7 @@ class SemanticdbSymbolsTest {
420
420
},
421
421
SymbolOccurrence {
422
422
role = Role .DEFINITION
423
- symbol = " Test#`<init>` ().(sample) "
423
+ symbol = " Test#setSample ()."
424
424
range {
425
425
startLine = 0
426
426
startCharacter = 15
You can’t perform that action at this time.
0 commit comments