Skip to content

Commit 74e56a0

Browse files
committed
update expect tests for semanticdb
1 parent b63dd6a commit 74e56a0

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

tests/semanticdb/expect/Givens.expect.scala

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ package b
33

44
object Givens/*<-a::b::Givens.*/
55

6-
given extension [A](any: /*<-a::b::Givens.given_sayHello_of_A.*//*<-a::b::Givens.given_sayHello_of_A.sayHello().[A]*//*<-a::b::Givens.given_sayHello_of_A.sayHello().(any)*/A/*->a::b::Givens.given_sayHello_of_A.sayHello().[A]*/)
7-
def sayHello/*<-a::b::Givens.given_sayHello_of_A.sayHello().*/ = s"/*->scala::StringContext.apply().*/Hello, I am $any/*->a::b::Givens.given_sayHello_of_A.sayHello().(any)*//*->scala::StringContext#s().*/"
6+
given extension [A](any: A/*<-a::b::Givens.extension_sayHello_A.*//*<-a::b::Givens.extension_sayHello_A.sayHello().[A]*//*<-a::b::Givens.extension_sayHello_A.sayHello().(any)*//*->a::b::Givens.extension_sayHello_A.sayHello().[A]*/)
7+
def sayHello/*<-a::b::Givens.extension_sayHello_A.sayHello().*/ = s"/*->scala::StringContext.apply().*/Hello, I am $any/*->a::b::Givens.extension_sayHello_A.sayHello().(any)*//*->scala::StringContext#s().*/"
88

9-
given extension [B](any: B)/*<-a::b::Givens.given_sayGoodbye_of_B.*//*<-a::b::Givens.given_sayGoodbye_of_B.sayGoodbye().[B]*//*<-a::b::Givens.given_sayGoodbye_of_B.saySoLong().[B]*//*<-a::b::Givens.given_sayGoodbye_of_B.sayGoodbye().(any)*//*<-a::b::Givens.given_sayGoodbye_of_B.saySoLong().(any)*//*->a::b::Givens.given_sayGoodbye_of_B.sayGoodbye().[B]*//*->a::b::Givens.given_sayGoodbye_of_B.saySoLong().[B]*/
10-
def sayGoodbye/*<-a::b::Givens.given_sayGoodbye_of_B.sayGoodbye().*/ = s"/*->scala::StringContext.apply().*/Goodbye, from $any/*->a::b::Givens.given_sayGoodbye_of_B.sayGoodbye().(any)*//*->scala::StringContext#s().*/"
11-
def saySoLong/*<-a::b::Givens.given_sayGoodbye_of_B.saySoLong().*/ = s"/*->scala::StringContext.apply().*/So Long, from $any/*->a::b::Givens.given_sayGoodbye_of_B.saySoLong().(any)*//*->scala::StringContext#s().*/"
9+
given extension [B](any: B)
10+
/*<-a::b::Givens.extension_sayGoodbye_B.*//*<-a::b::Givens.extension_sayGoodbye_B.sayGoodbye().[B]*//*<-a::b::Givens.extension_sayGoodbye_B.saySoLong().[B]*//*<-a::b::Givens.extension_sayGoodbye_B.sayGoodbye().(any)*//*<-a::b::Givens.extension_sayGoodbye_B.saySoLong().(any)*//*->a::b::Givens.extension_sayGoodbye_B.sayGoodbye().[B]*//*->a::b::Givens.extension_sayGoodbye_B.saySoLong().[B]*/ def sayGoodbye/*<-a::b::Givens.extension_sayGoodbye_B.sayGoodbye().*/ = s"/*->scala::StringContext.apply().*/Goodbye, from $any/*->a::b::Givens.extension_sayGoodbye_B.sayGoodbye().(any)*//*->scala::StringContext#s().*/"
11+
def saySoLong/*<-a::b::Givens.extension_sayGoodbye_B.saySoLong().*/ = s"/*->scala::StringContext.apply().*/So Long, from $any/*->a::b::Givens.extension_sayGoodbye_B.saySoLong().(any)*//*->scala::StringContext#s().*/"
1212

13-
val hello1/*<-a::b::Givens.hello1.*/ = /*->a::b::Givens.given_sayHello_of_A.sayHello().*/1.sayHello
14-
val goodbye1/*<-a::b::Givens.goodbye1.*/ = /*->a::b::Givens.given_sayGoodbye_of_B.sayGoodbye().*/1.sayGoodbye
15-
val soLong1/*<-a::b::Givens.soLong1.*/ = /*->a::b::Givens.given_sayGoodbye_of_B.saySoLong().*/1.saySoLong
13+
val hello1/*<-a::b::Givens.hello1.*/ = /*->a::b::Givens.extension_sayHello_A.sayHello().*/1.sayHello
14+
val goodbye1/*<-a::b::Givens.goodbye1.*/ = /*->a::b::Givens.extension_sayGoodbye_B.sayGoodbye().*/1.sayGoodbye
15+
val soLong1/*<-a::b::Givens.soLong1.*/ = /*->a::b::Givens.extension_sayGoodbye_B.saySoLong().*/1.saySoLong
1616

1717
trait Monoid/*<-a::b::Givens.Monoid#*/[A/*<-a::b::Givens.Monoid#[A]*/]
1818
def empty/*<-a::b::Givens.Monoid#empty().*/: A/*->a::b::Givens.Monoid#[A]*/

tests/semanticdb/metac.expect

+31-31
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,17 @@ a/b/Givens.Monoid#combine(). => abstract method combine
12801280
a/b/Givens.Monoid#combine().(x) => param x
12811281
a/b/Givens.Monoid#combine().(y) => param y
12821282
a/b/Givens.Monoid#empty(). => abstract method empty
1283+
a/b/Givens.extension_sayGoodbye_B. => final implicit object extension_sayGoodbye_B
1284+
a/b/Givens.extension_sayGoodbye_B.sayGoodbye(). => method sayGoodbye
1285+
a/b/Givens.extension_sayGoodbye_B.sayGoodbye().(any) => param any
1286+
a/b/Givens.extension_sayGoodbye_B.sayGoodbye().[B] => typeparam B
1287+
a/b/Givens.extension_sayGoodbye_B.saySoLong(). => method saySoLong
1288+
a/b/Givens.extension_sayGoodbye_B.saySoLong().(any) => param any
1289+
a/b/Givens.extension_sayGoodbye_B.saySoLong().[B] => typeparam B
1290+
a/b/Givens.extension_sayHello_A. => final implicit object extension_sayHello_A
1291+
a/b/Givens.extension_sayHello_A.sayHello(). => method sayHello
1292+
a/b/Givens.extension_sayHello_A.sayHello().(any) => param any
1293+
a/b/Givens.extension_sayHello_A.sayHello().[A] => typeparam A
12831294
a/b/Givens.foo(). => method foo
12841295
a/b/Givens.foo().(A) => implicit param A
12851296
a/b/Givens.foo().[A] => typeparam A
@@ -1288,17 +1299,6 @@ a/b/Givens.given_Monoid_String.combine(). => method combine
12881299
a/b/Givens.given_Monoid_String.combine().(x) => param x
12891300
a/b/Givens.given_Monoid_String.combine().(y) => param y
12901301
a/b/Givens.given_Monoid_String.empty(). => method empty
1291-
a/b/Givens.given_sayGoodbye_of_B. => final implicit object given_sayGoodbye_of_B
1292-
a/b/Givens.given_sayGoodbye_of_B.sayGoodbye(). => method sayGoodbye
1293-
a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().(any) => param any
1294-
a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().[B] => typeparam B
1295-
a/b/Givens.given_sayGoodbye_of_B.saySoLong(). => method saySoLong
1296-
a/b/Givens.given_sayGoodbye_of_B.saySoLong().(any) => param any
1297-
a/b/Givens.given_sayGoodbye_of_B.saySoLong().[B] => typeparam B
1298-
a/b/Givens.given_sayHello_of_A. => final implicit object given_sayHello_of_A
1299-
a/b/Givens.given_sayHello_of_A.sayHello(). => method sayHello
1300-
a/b/Givens.given_sayHello_of_A.sayHello().(any) => param any
1301-
a/b/Givens.given_sayHello_of_A.sayHello().[A] => typeparam A
13021302
a/b/Givens.goodbye1. => val method goodbye1
13031303
a/b/Givens.hello1. => val method hello1
13041304
a/b/Givens.int2String(). => final implicit macro int2String
@@ -1308,35 +1308,35 @@ Occurrences:
13081308
[0:8..0:9): a <- a/
13091309
[1:8..1:9): b <- a/b/
13101310
[3:7..3:13): Givens <- a/b/Givens.
1311-
[5:8..5:27): extension [A](any: <- a/b/Givens.given_sayHello_of_A.
1312-
[5:19..5:20): A <- a/b/Givens.given_sayHello_of_A.sayHello().[A]
1313-
[5:22..5:25): any <- a/b/Givens.given_sayHello_of_A.sayHello().(any)
1314-
[5:27..5:28): A -> a/b/Givens.given_sayHello_of_A.sayHello().[A]
1315-
[6:8..6:16): sayHello <- a/b/Givens.given_sayHello_of_A.sayHello().
1311+
[5:8..5:28): extension [A](any: A <- a/b/Givens.extension_sayHello_A.
1312+
[5:19..5:20): A <- a/b/Givens.extension_sayHello_A.sayHello().[A]
1313+
[5:22..5:25): any <- a/b/Givens.extension_sayHello_A.sayHello().(any)
1314+
[5:27..5:28): A -> a/b/Givens.extension_sayHello_A.sayHello().[A]
1315+
[6:8..6:16): sayHello <- a/b/Givens.extension_sayHello_A.sayHello().
13161316
[6:21..6:21): -> scala/StringContext.apply().
1317-
[6:34..6:37): any -> a/b/Givens.given_sayHello_of_A.sayHello().(any)
1317+
[6:34..6:37): any -> a/b/Givens.extension_sayHello_A.sayHello().(any)
13181318
[6:37..6:37): -> scala/StringContext#s().
1319-
[8:8..8:29): extension [B](any: B) <- a/b/Givens.given_sayGoodbye_of_B.
1320-
[8:19..8:20): B <- a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().[B]
1321-
[8:19..8:20): B <- a/b/Givens.given_sayGoodbye_of_B.saySoLong().[B]
1322-
[8:22..8:25): any <- a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().(any)
1323-
[8:22..8:25): any <- a/b/Givens.given_sayGoodbye_of_B.saySoLong().(any)
1324-
[8:27..8:28): B -> a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().[B]
1325-
[8:27..8:28): B -> a/b/Givens.given_sayGoodbye_of_B.saySoLong().[B]
1326-
[9:8..9:18): sayGoodbye <- a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().
1319+
[8:8..9:0): <- a/b/Givens.extension_sayGoodbye_B.
1320+
[8:19..8:20): B <- a/b/Givens.extension_sayGoodbye_B.sayGoodbye().[B]
1321+
[8:19..8:20): B <- a/b/Givens.extension_sayGoodbye_B.saySoLong().[B]
1322+
[8:22..8:25): any <- a/b/Givens.extension_sayGoodbye_B.sayGoodbye().(any)
1323+
[8:22..8:25): any <- a/b/Givens.extension_sayGoodbye_B.saySoLong().(any)
1324+
[8:27..8:28): B -> a/b/Givens.extension_sayGoodbye_B.sayGoodbye().[B]
1325+
[8:27..8:28): B -> a/b/Givens.extension_sayGoodbye_B.saySoLong().[B]
1326+
[9:8..9:18): sayGoodbye <- a/b/Givens.extension_sayGoodbye_B.sayGoodbye().
13271327
[9:23..9:23): -> scala/StringContext.apply().
1328-
[9:38..9:41): any -> a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().(any)
1328+
[9:38..9:41): any -> a/b/Givens.extension_sayGoodbye_B.sayGoodbye().(any)
13291329
[9:41..9:41): -> scala/StringContext#s().
1330-
[10:8..10:17): saySoLong <- a/b/Givens.given_sayGoodbye_of_B.saySoLong().
1330+
[10:8..10:17): saySoLong <- a/b/Givens.extension_sayGoodbye_B.saySoLong().
13311331
[10:22..10:22): -> scala/StringContext.apply().
1332-
[10:37..10:40): any -> a/b/Givens.given_sayGoodbye_of_B.saySoLong().(any)
1332+
[10:37..10:40): any -> a/b/Givens.extension_sayGoodbye_B.saySoLong().(any)
13331333
[10:40..10:40): -> scala/StringContext#s().
13341334
[12:6..12:12): hello1 <- a/b/Givens.hello1.
1335-
[12:15..12:15): -> a/b/Givens.given_sayHello_of_A.sayHello().
1335+
[12:15..12:15): -> a/b/Givens.extension_sayHello_A.sayHello().
13361336
[13:6..13:14): goodbye1 <- a/b/Givens.goodbye1.
1337-
[13:17..13:17): -> a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().
1337+
[13:17..13:17): -> a/b/Givens.extension_sayGoodbye_B.sayGoodbye().
13381338
[14:6..14:13): soLong1 <- a/b/Givens.soLong1.
1339-
[14:16..14:16): -> a/b/Givens.given_sayGoodbye_of_B.saySoLong().
1339+
[14:16..14:16): -> a/b/Givens.extension_sayGoodbye_B.saySoLong().
13401340
[16:8..16:14): Monoid <- a/b/Givens.Monoid#
13411341
[16:14..16:17): <- a/b/Givens.Monoid#`<init>`().
13421342
[16:15..16:16): A <- a/b/Givens.Monoid#[A]

0 commit comments

Comments
 (0)