Skip to content

Commit f170c72

Browse files
committed
update snapshots with signature formatter
1 parent 2135c05 commit f170c72

File tree

110 files changed

+3518
-2757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+3518
-2757
lines changed

lsif-java/src/main/scala/com/sourcegraph/lsif_java/SemanticdbPrinters.scala

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package com.sourcegraph.lsif_java
22

3-
import com.sourcegraph.lsif_semanticdb.{SignatureFormatter, Symtab}
4-
import com.sourcegraph.semanticdb_javac.Semanticdb.SymbolOccurrence.Role
5-
63
import scala.jdk.CollectionConverters._
7-
import com.sourcegraph.semanticdb_javac.Semanticdb.{
8-
SymbolInformation,
9-
SymbolOccurrence,
10-
TextDocument
11-
}
4+
5+
import com.sourcegraph.lsif_semanticdb.SignatureFormatter
6+
import com.sourcegraph.lsif_semanticdb.Symtab
7+
import com.sourcegraph.semanticdb_javac.Semanticdb.SymbolInformation
8+
import com.sourcegraph.semanticdb_javac.Semanticdb.SymbolOccurrence
9+
import com.sourcegraph.semanticdb_javac.Semanticdb.SymbolOccurrence.Role
10+
import com.sourcegraph.semanticdb_javac.Semanticdb.TextDocument
1211

1312
object SemanticdbPrinters {
1413
def printTextDocument(doc: TextDocument): String = {

lsif-semanticdb/src/main/java/com/sourcegraph/lsif_semanticdb/SymbolDescriptor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public IllegalArgumentException fail() {
4646
return new IllegalArgumentException("invalid symbol format\n" + symbol + "\n" + b.toString());
4747
}
4848

49-
5049
public char readChar() {
5150
if (i < 0) throw fail();
5251

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
package minimized;
22

3+
import java.util.HashMap;
4+
import java.util.Iterator;
5+
import java.util.List;
36
import java.util.Map;
47

5-
public class ParameterizedTypes<A, B> {
8+
public class ParameterizedTypes<A, B extends String> {
9+
public <T extends Iterable<A> & Iterator<B>> void iteratorable(List<T> list) {}
10+
611
public String app(A a, B b) {
712
return a.toString() + b;
813
}
914

1015
public Map<? extends String, ?> doStuff() { return null; }
16+
17+
public Quadruplet<String, ?, Object, ? super Integer> createQuadruplet() { return null; }
18+
19+
public static class Quadruplet<T, S, X, Y> {}
1120
}

tests/snapshots/src/main/generated/com/airbnb/epoxy/AfterPropsSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
// ^^^^^^^^^^^^^^^ reference java/lang/annotation/RetentionPolicy#
4040
// ^^^^^ reference java/lang/annotation/RetentionPolicy#CLASS.
4141
public @interface AfterPropsSet {
42-
// ^^^^^^^^^^^^^ definition com/airbnb/epoxy/AfterPropsSet#
42+
// ^^^^^^^^^^^^^ definition com/airbnb/epoxy/AfterPropsSet# public abstract AfterPropsSet extends Annotation
4343
}
4444

tests/snapshots/src/main/generated/com/airbnb/epoxy/AsyncEpoxyController.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
* See https://github.com/airbnb/epoxy/wiki/Epoxy-Controller#asynchronous-support
2424
*/
2525
public abstract class AsyncEpoxyController extends EpoxyController {
26-
// ^^^^^^^^^^^^^^^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#
26+
// ^^^^^^^^^^^^^^^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController# public abstract class AsyncEpoxyController extends EpoxyController
2727
// ^^^^^^^^^^^^^^^ reference com/airbnb/epoxy/EpoxyController#
2828

2929
/**
3030
* A new instance that does model building and diffing asynchronously.
3131
*/
3232
public AsyncEpoxyController() {
33-
// ^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#`<init>`().
33+
// ^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#`<init>`(). public <init>()
3434
this(true);
3535
// ^^^^ reference com/airbnb/epoxy/AsyncEpoxyController#`<init>`(+1).
3636
}
@@ -40,8 +40,8 @@ public AsyncEpoxyController() {
4040
* both on the main thread.
4141
*/
4242
public AsyncEpoxyController(boolean enableAsync) {
43-
// ^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#`<init>`(+1).
44-
// ^^^^^^^^^^^ definition local0
43+
// ^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#`<init>`(+1). public <init>(boolean enableAsync)
44+
// ^^^^^^^^^^^ definition local0 boolean enableAsync
4545
this(enableAsync, enableAsync);
4646
// ^^^^ reference com/airbnb/epoxy/AsyncEpoxyController#`<init>`(+2).
4747
// ^^^^^^^^^^^ reference local0
@@ -52,9 +52,9 @@ public AsyncEpoxyController(boolean enableAsync) {
5252
* Individually control whether model building and diffing are done async or on the main thread.
5353
*/
5454
public AsyncEpoxyController(boolean enableAsyncModelBuilding, boolean enableAsyncDiffing) {
55-
// ^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#`<init>`(+2).
56-
// ^^^^^^^^^^^^^^^^^^^^^^^^ definition local1
57-
// ^^^^^^^^^^^^^^^^^^ definition local2
55+
// ^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#`<init>`(+2). public <init>(boolean enableAsyncModelBuilding, boolean enableAsyncDiffing)
56+
// ^^^^^^^^^^^^^^^^^^^^^^^^ definition local1 boolean enableAsyncModelBuilding
57+
// ^^^^^^^^^^^^^^^^^^ definition local2 boolean enableAsyncDiffing
5858
super(getHandler(enableAsyncModelBuilding), getHandler(enableAsyncDiffing));
5959
// ^^^^^ reference com/airbnb/epoxy/EpoxyController#`<init>`(+1).
6060
// ^^^^^^^^^^ reference com/airbnb/epoxy/AsyncEpoxyController#getHandler().
@@ -65,8 +65,8 @@ public AsyncEpoxyController(boolean enableAsyncModelBuilding, boolean enableAsyn
6565

6666
private static Handler getHandler(boolean enableAsync) {
6767
// ^^^^^^^ reference _root_/
68-
// ^^^^^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#getHandler().
69-
// ^^^^^^^^^^^ definition local3
68+
// ^^^^^^^^^^ definition com/airbnb/epoxy/AsyncEpoxyController#getHandler(). private static getHandler(boolean enableAsync)
69+
// ^^^^^^^^^^^ definition local3 boolean enableAsync
7070
return enableAsync ? getAsyncBackgroundHandler() : MAIN_THREAD_HANDLER;
7171
// ^^^^^^^^^^^ reference local3
7272
// ^^^^^^^^^^^^^^^^^^^^^^^^^ reference com/airbnb/epoxy/EpoxyAsyncUtil#getAsyncBackgroundHandler().

0 commit comments

Comments
 (0)