-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from sourcegraph/nsc/implementations
emit overridden_symbols for Go to Implementations
- Loading branch information
Showing
29 changed files
with
532 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...icdb-kotlinc/minimized/src/generatedSnapshots/resources/java/snapshots/ClassConsumer.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...-kotlinc/minimized/src/generatedSnapshots/resources/java/snapshots/CompanionConsumer.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
...nticdb-kotlinc/minimized/src/generatedSnapshots/resources/java/snapshots/KotlinClass.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...icdb-kotlinc/minimized/src/generatedSnapshots/resources/java/snapshots/KotlinLambdas.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...b-kotlinc/minimized/src/generatedSnapshots/resources/java/snapshots/ObjectKtConsumer.java
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
semanticdb-kotlinc/minimized/src/generatedSnapshots/resources/kotlin/snapshots/Class.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...cdb-kotlinc/minimized/src/generatedSnapshots/resources/kotlin/snapshots/CompanionOwner.kt
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
semanticdb-kotlinc/minimized/src/generatedSnapshots/resources/kotlin/snapshots/Docstrings.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
semanticdb-kotlinc/minimized/src/generatedSnapshots/resources/kotlin/snapshots/Functions.kt
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
semanticdb-kotlinc/minimized/src/generatedSnapshots/resources/kotlin/snapshots/Lambdas.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
semanticdb-kotlinc/minimized/src/generatedSnapshots/resources/kotlin/snapshots/ObjectKt.kt
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...apshots/resources/semanticdb-kotlinc/minimized/src/main/java/snapshots/ClassConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package snapshots; | ||
|
||
public class ClassConsumer { | ||
// ^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/ClassConsumer# | ||
// documentation ```java\npublic class ClassConsumer\n``` | ||
// ^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/ClassConsumer#`<init>`(). | ||
// documentation ```java\npublic ClassConsumer()\n``` | ||
public static void run() { | ||
// ^^^ definition semanticdb maven . . snapshots/ClassConsumer#run(). | ||
// documentation ```java\npublic static void run()\n``` | ||
System.out.println(new Class().getAsdf()); | ||
// ^^^^^^ reference semanticdb maven jdk 8 java/lang/System# | ||
// ^^^ reference semanticdb maven jdk 8 java/lang/System#out. | ||
// ^^^^^^^ reference semanticdb maven jdk 8 java/io/PrintStream#println(+9). | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class#`<init>`(+1). | ||
// ^^^^^^^ reference semanticdb maven . . snapshots/Class#getAsdf(). | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ots/resources/semanticdb-kotlinc/minimized/src/main/java/snapshots/CompanionConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package snapshots; | ||
|
||
public class CompanionConsumer { | ||
// ^^^^^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/CompanionConsumer# | ||
// documentation ```java\npublic class CompanionConsumer\n``` | ||
CompanionConsumer() { | ||
// ^^^^^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/CompanionConsumer#`<init>`(). | ||
// documentation ```java\nCompanionConsumer()\n``` | ||
CompanionOwner.Companion.create(); | ||
// ^^^^^^^^^^^^^^ reference semanticdb maven . . snapshots/CompanionOwner# | ||
// ^^^^^^^^^ reference semanticdb maven . . snapshots/CompanionOwner#Companion. | ||
// ^^^^^^ reference semanticdb maven . . snapshots/CompanionOwner#Companion#create(). | ||
new CompanionOwner().create(); | ||
// ^^^^^^^^^^^^^^ reference semanticdb maven . . snapshots/CompanionOwner#`<init>`(). | ||
// ^^^^^^ reference semanticdb maven . . snapshots/CompanionOwner#create(). | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...Snapshots/resources/semanticdb-kotlinc/minimized/src/main/java/snapshots/KotlinClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package snapshots; | ||
|
||
public class KotlinClass { | ||
// ^^^^^^^^^^^ definition semanticdb maven . . snapshots/KotlinClass# | ||
// documentation ```java\npublic class KotlinClass\n``` | ||
KotlinClass() throws Class { | ||
// ^^^^^^^^^^^ definition semanticdb maven . . snapshots/KotlinClass#`<init>`(). | ||
// documentation ```java\nKotlinClass() throws Class\n``` | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class# | ||
throw new Class(); | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class#`<init>`(+1). | ||
} | ||
|
||
void test() throws Class { | ||
// ^^^^ definition semanticdb maven . . snapshots/KotlinClass#test(). | ||
// documentation ```java\nvoid test() throws Class\n``` | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class# | ||
throw new Class(1, ""); | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class#`<init>`(). | ||
} | ||
|
||
void other() throws Class { | ||
// ^^^^^ definition semanticdb maven . . snapshots/KotlinClass#other(). | ||
// documentation ```java\nvoid other() throws Class\n``` | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class# | ||
throw new Class(1); | ||
// ^^^^^ reference semanticdb maven . . snapshots/Class#`<init>`(+2). | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...apshots/resources/semanticdb-kotlinc/minimized/src/main/java/snapshots/KotlinLambdas.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package snapshots; | ||
|
||
import kotlin.collections.CollectionsKt; | ||
// ^^^^^^ reference semanticdb maven . . kotlin/ | ||
// ^^^^^^^^^^^ reference semanticdb maven . . kotlin/collections/ | ||
// ^^^^^^^^^^^^^ reference semanticdb maven . . kotlin/collections/CollectionsKt# | ||
import kotlin.text.StringsKt; | ||
// ^^^^^^ reference semanticdb maven . . kotlin/ | ||
// ^^^^ reference semanticdb maven . . kotlin/text/ | ||
// ^^^^^^^^^ reference semanticdb maven . . kotlin/text/StringsKt# | ||
|
||
|
||
public class KotlinLambdas { | ||
// ^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/KotlinLambdas# | ||
// documentation ```java\npublic class KotlinLambdas\n``` | ||
// ^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/KotlinLambdas#`<init>`(). | ||
// documentation ```java\npublic KotlinLambdas()\n``` | ||
public void test() { | ||
// ^^^^ definition semanticdb maven . . snapshots/KotlinLambdas#test(). | ||
// documentation ```java\npublic void test()\n``` | ||
LambdasKt.getX();// TODO figure out emit getX on kotlin side | ||
// ^^^^^^^^^ reference semanticdb maven . . snapshots/LambdasKt# | ||
// ^^^^ reference semanticdb maven . . snapshots/LambdasKt#getX(). | ||
|
||
kotlin.collections.CollectionsKt.listOf(); | ||
// ^^^^^^ reference semanticdb maven . . kotlin/ | ||
// ^^^^^^^^^^^ reference semanticdb maven . . kotlin/collections/ | ||
// ^^^^^^^^^^^^^ reference semanticdb maven . . kotlin/collections/CollectionsKt# | ||
// ^^^^^^ reference semanticdb maven . . kotlin/collections/CollectionsKt__CollectionsKt#listOf(). | ||
FunctionsKt.sampleText(""); | ||
// ^^^^^^^^^^^ reference semanticdb maven . . snapshots/FunctionsKt# | ||
// ^^^^^^^^^^ reference semanticdb maven . . snapshots/FunctionsKt#sampleText(). | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...hots/resources/semanticdb-kotlinc/minimized/src/main/java/snapshots/ObjectKtConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package snapshots; | ||
|
||
public class ObjectKtConsumer { | ||
// ^^^^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/ObjectKtConsumer# | ||
// documentation ```java\npublic class ObjectKtConsumer\n``` | ||
// ^^^^^^^^^^^^^^^^ definition semanticdb maven . . snapshots/ObjectKtConsumer#`<init>`(). | ||
// documentation ```java\npublic ObjectKtConsumer()\n``` | ||
public static void run() { | ||
// ^^^ definition semanticdb maven . . snapshots/ObjectKtConsumer#run(). | ||
// documentation ```java\npublic static void run()\n``` | ||
ObjectKt.INSTANCE.fail("boom"); | ||
// ^^^^^^^^ reference semanticdb maven . . snapshots/ObjectKt# | ||
// ^^^^^^^^ reference semanticdb maven . . snapshots/ObjectKt#INSTANCE. | ||
// ^^^^ reference semanticdb maven . . snapshots/ObjectKt#fail(). | ||
} | ||
} |
Oops, something went wrong.