Skip to content

Commit c3432ff

Browse files
update expect
1 parent 506a9c4 commit c3432ff

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

tests/semanticdb/expect/Givens.expect.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ package b
44
object Givens/*<-a::b::Givens.*/:
55

66
extension on [A](any: A):
7-
def /*<-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]*/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().*/"
7+
def /*<-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]*/sayHello/*<-a::b::Givens.extension_sayHello_A.sayHello().*/ = s"Hello, I am $any"/*->scala::StringContext.*//*->a::b::Givens.extension_sayHello_A.sayHello().(any)*//*->scala::StringContext#s().*//*->scala::StringContext.apply().*/
88

99
extension on [B](any: B):
10-
def sa/*<-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]*/yGoodbye/*<-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().*/"
10+
def sa/*<-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]*/yGoodbye/*<-a::b::Givens.extension_sayGoodbye_B.sayGoodbye().*/ = s"Goodbye, from $any"/*->scala::StringContext.*//*->a::b::Givens.extension_sayGoodbye_B.sayGoodbye().(any)*//*->scala::StringContext#s().*//*->scala::StringContext.apply().*/
11+
def saySoLong/*<-a::b::Givens.extension_sayGoodbye_B.saySoLong().*/ = s"So Long, from $any"/*->scala::StringContext.*//*->a::b::Givens.extension_sayGoodbye_B.saySoLong().(any)*//*->scala::StringContext#s().*//*->scala::StringContext.apply().*/
1212

1313
val hello1/*<-a::b::Givens.hello1.*/ = /*->a::b::Givens.extension_sayHello_A.sayHello().*/1.sayHello
1414
val goodbye1/*<-a::b::Givens.goodbye1.*/ = /*->a::b::Givens.extension_sayGoodbye_B.sayGoodbye().*/1.sayGoodbye

tests/semanticdb/expect/ImplicitConversion.expect.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class ImplicitConversion/*<-example::ImplicitConversion#*/ {
2121
val x/*<-example::ImplicitConversion#x.*/: Int/*->scala::Int#*/ = /*->example::ImplicitConversion#string2Number().*/message/*->example::ImplicitConversion#message.*/
2222

2323
// interpolators
24-
s"/*->scala::StringContext.apply().*/Hello $message/*->example::ImplicitConversion#message.*/ $number/*->example::ImplicitConversion#number.*//*->scala::StringContext#s().*/"
25-
/*->scala::Predef.augmentString().*/s"""/*->scala::StringContext.apply().*/Hello
24+
s"Hello $message/*->example::ImplicitConversion#message.*/ $number"/*->scala::StringContext.*//*->example::ImplicitConversion#number.*//*->scala::StringContext#s().*//*->scala::StringContext.apply().*/
25+
/*->scala::Predef.augmentString().*/s"""Hello
2626
|$message/*->example::ImplicitConversion#message.*/
27-
|$number/*->example::ImplicitConversion#number.*//*->scala::StringContext#s().*/""".stripMargin/*->scala::collection::StringOps#stripMargin(+1).*/
27+
|$number"""/*->scala::StringContext.*//*->example::ImplicitConversion#number.*//*->scala::StringContext#s().*//*->scala::StringContext.apply().*/.stripMargin/*->scala::collection::StringOps#stripMargin(+1).*/
2828

2929
val a/*<-example::ImplicitConversion#a.*/: Int/*->scala::Int#*/ = /*->scala::Char.char2int().*/char/*->example::ImplicitConversion#char.*/
3030
val b/*<-example::ImplicitConversion#b.*/: Long/*->scala::Long#*/ = /*->scala::Char.char2long().*/char/*->example::ImplicitConversion#char.*/

tests/semanticdb/metac.expect

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ Uri => Givens.scala
12691269
Text => empty
12701270
Language => Scala
12711271
Symbols => 31 entries
1272-
Occurrences => 72 entries
1272+
Occurrences => 75 entries
12731273

12741274
Symbols:
12751275
a/b/Givens. => final object Givens
@@ -1313,9 +1313,10 @@ Occurrences:
13131313
[5:19..5:22): any <- a/b/Givens.extension_sayHello_A.sayHello().(any)
13141314
[5:24..5:25): A -> a/b/Givens.extension_sayHello_A.sayHello().[A]
13151315
[6:8..6:16): sayHello <- a/b/Givens.extension_sayHello_A.sayHello().
1316-
[6:21..6:21): -> scala/StringContext.apply().
1316+
[6:25..6:38): o, I am $any" -> scala/StringContext.
13171317
[6:34..6:37): any -> a/b/Givens.extension_sayHello_A.sayHello().(any)
1318-
[6:37..6:37): -> scala/StringContext#s().
1318+
[6:38..6:38): -> scala/StringContext#s().
1319+
[6:38..6:38): -> scala/StringContext.apply().
13191320
[8:16..9:10): <- a/b/Givens.extension_sayGoodbye_B.
13201321
[8:16..8:17): B <- a/b/Givens.extension_sayGoodbye_B.sayGoodbye().[B]
13211322
[8:16..8:17): B <- a/b/Givens.extension_sayGoodbye_B.saySoLong().[B]
@@ -1324,13 +1325,15 @@ Occurrences:
13241325
[8:24..8:25): B -> a/b/Givens.extension_sayGoodbye_B.sayGoodbye().[B]
13251326
[8:24..8:25): B -> a/b/Givens.extension_sayGoodbye_B.saySoLong().[B]
13261327
[9:8..9:18): sayGoodbye <- a/b/Givens.extension_sayGoodbye_B.sayGoodbye().
1327-
[9:23..9:23): -> scala/StringContext.apply().
1328+
[9:29..9:42): e, from $any" -> scala/StringContext.
13281329
[9:38..9:41): any -> a/b/Givens.extension_sayGoodbye_B.sayGoodbye().(any)
1329-
[9:41..9:41): -> scala/StringContext#s().
1330+
[9:42..9:42): -> scala/StringContext#s().
1331+
[9:42..9:42): -> scala/StringContext.apply().
13301332
[10:8..10:17): saySoLong <- a/b/Givens.extension_sayGoodbye_B.saySoLong().
1331-
[10:22..10:22): -> scala/StringContext.apply().
1333+
[10:28..10:41): g, from $any" -> scala/StringContext.
13321334
[10:37..10:40): any -> a/b/Givens.extension_sayGoodbye_B.saySoLong().(any)
1333-
[10:40..10:40): -> scala/StringContext#s().
1335+
[10:41..10:41): -> scala/StringContext#s().
1336+
[10:41..10:41): -> scala/StringContext.apply().
13341337
[12:6..12:12): hello1 <- a/b/Givens.hello1.
13351338
[12:15..12:15): -> a/b/Givens.extension_sayHello_A.sayHello().
13361339
[13:6..13:14): goodbye1 <- a/b/Givens.goodbye1.
@@ -1387,7 +1390,7 @@ Uri => ImplicitConversion.scala
13871390
Text => empty
13881391
Language => Scala
13891392
Symbols => 23 entries
1390-
Occurrences => 62 entries
1393+
Occurrences => 64 entries
13911394

13921395
Symbols:
13931396
example/ImplicitConversion# => class ImplicitConversion
@@ -1442,15 +1445,17 @@ Occurrences:
14421445
[20:9..20:12): Int -> scala/Int#
14431446
[20:15..20:15): -> example/ImplicitConversion#string2Number().
14441447
[20:15..20:22): message -> example/ImplicitConversion#message.
1445-
[23:4..23:4): -> scala/StringContext.apply().
14461448
[23:11..23:18): message -> example/ImplicitConversion#message.
1449+
[23:14..23:27): sage $number" -> scala/StringContext.
14471450
[23:20..23:26): number -> example/ImplicitConversion#number.
1448-
[23:26..23:26): -> scala/StringContext#s().
1451+
[23:27..23:27): -> scala/StringContext#s().
1452+
[23:27..23:27): -> scala/StringContext.apply().
14491453
[24:2..24:2): -> scala/Predef.augmentString().
1450-
[24:6..24:6): -> scala/StringContext.apply().
14511454
[25:7..25:14): message -> example/ImplicitConversion#message.
1455+
[26:3..26:16): |$number""" -> scala/StringContext.
14521456
[26:7..26:13): number -> example/ImplicitConversion#number.
1453-
[26:13..26:13): -> scala/StringContext#s().
1457+
[26:16..26:16): -> scala/StringContext#s().
1458+
[26:16..26:16): -> scala/StringContext.apply().
14541459
[26:17..26:28): stripMargin -> scala/collection/StringOps#stripMargin(+1).
14551460
[28:6..28:7): a <- example/ImplicitConversion#a.
14561461
[28:9..28:12): Int -> scala/Int#

0 commit comments

Comments
 (0)