Skip to content

Commit 83d6492

Browse files
committed
Fix typo and update semanticdb.expect
1 parent a054024 commit 83d6492

File tree

2 files changed

+9
-76
lines changed

2 files changed

+9
-76
lines changed

library/src/scala/annotation/capability.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package scala.annotation
22

3-
/** Marks an annotated class as a capabulity.
3+
/** Marks an annotated class as a capability.
44
* If the annotation is present and -Ycc is set, any (possibly aliased
55
* or refined) instance of the class type is implicitly augmented with
66
* the universal capture set. Example

tests/semanticdb/metac.expect

Lines changed: 8 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ Text => empty
319319
Language => Scala
320320
Symbols => 14 entries
321321
Occurrences => 30 entries
322-
Synthetics => 2 entries
323322

324323
Symbols:
325324
example/Anonymous# => class Anonymous extends Object { self: Anonymous & Anonymous => +6 decls }
@@ -369,10 +368,6 @@ Occurrences:
369368
[18:6..18:9): foo <- example/Anonymous#foo.
370369
[18:16..18:19): Foo -> example/Anonymous#Foo#
371370

372-
Synthetics:
373-
[10:2..10:9):locally => *[Unit]
374-
[13:2..13:9):locally => *[Unit]
375-
376371
expect/AnonymousGiven.scala
377372
---------------------------
378373

@@ -407,7 +402,6 @@ Text => empty
407402
Language => Scala
408403
Symbols => 109 entries
409404
Occurrences => 113 entries
410-
Synthetics => 2 entries
411405

412406
Symbols:
413407
classes/C1# => final class C1 extends AnyVal { self: C1 => +2 decls }
@@ -635,10 +629,6 @@ Occurrences:
635629
[53:4..53:9): local -> local4
636630
[53:10..53:11): + -> scala/Int#`+`(+4).
637631

638-
Synthetics:
639-
[51:16..51:27):List(1).map => *[Int]
640-
[51:16..51:20):List => *.apply[Int]
641-
642632
expect/Empty.scala
643633
------------------
644634

@@ -841,7 +831,7 @@ Text => empty
841831
Language => Scala
842832
Symbols => 181 entries
843833
Occurrences => 148 entries
844-
Synthetics => 10 entries
834+
Synthetics => 8 entries
845835

846836
Symbols:
847837
_empty_/Enums. => final object Enums extends Object { self: Enums.type => +30 decls }
@@ -1184,8 +1174,6 @@ Synthetics:
11841174
[52:31..52:50):identity[Option[B]] => *[Function1[A, Option[B]]]
11851175
[54:14..54:18):Some => *.apply[Some[Int]]
11861176
[54:14..54:34):Some(Some(1)).unwrap => *(given_<:<_T_T[Option[Int]])
1187-
[54:19..54:23):Some => *.apply[Int]
1188-
[54:28..54:34):unwrap => *[Some[Int], Int]
11891177
[56:52..56:64):Enum[Planet] => *[Planet]
11901178

11911179
expect/EtaExpansion.scala
@@ -1198,7 +1186,7 @@ Text => empty
11981186
Language => Scala
11991187
Symbols => 3 entries
12001188
Occurrences => 8 entries
1201-
Synthetics => 5 entries
1189+
Synthetics => 1 entries
12021190

12031191
Symbols:
12041192
example/EtaExpansion# => class EtaExpansion extends Object { self: EtaExpansion => +1 decls }
@@ -1216,11 +1204,7 @@ Occurrences:
12161204
[4:25..4:26): + -> java/lang/String#`+`().
12171205

12181206
Synthetics:
1219-
[3:2..3:13):Some(1).map => *[Int]
1220-
[3:2..3:6):Some => *.apply[Int]
1221-
[3:14..3:22):identity => *[Int]
12221207
[4:2..4:18):List(1).foldLeft => *[String]
1223-
[4:2..4:6):List => *.apply[Int]
12241208

12251209
expect/Example.scala
12261210
--------------------
@@ -1370,7 +1354,7 @@ Text => empty
13701354
Language => Scala
13711355
Symbols => 13 entries
13721356
Occurrences => 52 entries
1373-
Synthetics => 6 entries
1357+
Synthetics => 2 entries
13741358

13751359
Symbols:
13761360
example/ForComprehension# => class ForComprehension extends Object { self: ForComprehension => +1 decls }
@@ -1442,10 +1426,6 @@ Occurrences:
14421426
[41:6..41:7): f -> local10
14431427

14441428
Synthetics:
1445-
[4:9..4:13):List => *.apply[Int]
1446-
[5:9..5:13):List => *.apply[Int]
1447-
[10:9..10:13):List => *.apply[Int]
1448-
[11:9..11:13):List => *.apply[Int]
14491429
[19:9..19:13):List => *.apply[Tuple2[Int, Int]]
14501430
[33:9..33:13):List => *.apply[Tuple4[Int, Int, Int, Int]]
14511431

@@ -1459,7 +1439,6 @@ Text => empty
14591439
Language => Scala
14601440
Symbols => 29 entries
14611441
Occurrences => 65 entries
1462-
Synthetics => 3 entries
14631442

14641443
Symbols:
14651444
a/b/Givens. => final object Givens extends Object { self: Givens.type => +12 decls }
@@ -1559,11 +1538,6 @@ Occurrences:
15591538
[26:57..26:58): A -> a/b/Givens.foo().(A)
15601539
[26:59..26:64): empty -> a/b/Givens.Monoid#empty().
15611540

1562-
Synthetics:
1563-
[12:17..12:25):sayHello => *[Int]
1564-
[13:19..13:29):sayGoodbye => *[Int]
1565-
[14:18..14:27):saySoLong => *[Int]
1566-
15671541
expect/ImplicitConversion.scala
15681542
-------------------------------
15691543

@@ -1963,7 +1937,6 @@ Text => empty
19631937
Language => Scala
19641938
Symbols => 6 entries
19651939
Occurrences => 10 entries
1966-
Synthetics => 1 entries
19671940

19681941
Symbols:
19691942
example/Local# => class Local extends Object { self: Local => +2 decls }
@@ -1985,9 +1958,6 @@ Occurrences:
19851958
[4:25..4:26): a -> local1
19861959
[5:4..5:6): id -> local2
19871960

1988-
Synthetics:
1989-
[5:4..5:6):id => *[Int]
1990-
19911961
expect/Locals.scala
19921962
-------------------
19931963

@@ -1998,7 +1968,6 @@ Text => empty
19981968
Language => Scala
19991969
Symbols => 3 entries
20001970
Occurrences => 6 entries
2001-
Synthetics => 1 entries
20021971

20031972
Symbols:
20041973
local0 => val local x: Int
@@ -2013,9 +1982,6 @@ Occurrences:
20131982
[5:4..5:8): List -> scala/package.List.
20141983
[5:9..5:10): x -> local0
20151984

2016-
Synthetics:
2017-
[5:4..5:8):List => *.apply[Int]
2018-
20191985
expect/MetacJava.scala
20201986
----------------------
20211987

@@ -2113,7 +2079,7 @@ Text => empty
21132079
Language => Scala
21142080
Symbols => 3 entries
21152081
Occurrences => 80 entries
2116-
Synthetics => 2 entries
2082+
Synthetics => 1 entries
21172083

21182084
Symbols:
21192085
example/MethodUsages# => class MethodUsages extends Object { self: MethodUsages => +2 decls }
@@ -2203,7 +2169,6 @@ Occurrences:
22032169
[34:8..34:9): m -> example/Methods#m17.m().
22042170

22052171
Synthetics:
2206-
[13:2..13:6):m.m7 => *[Int]
22072172
[13:2..13:26):m.m7(m, new m.List[Int]) => *(Int)
22082173

22092174
expect/Methods.scala
@@ -3056,7 +3021,7 @@ Text => empty
30563021
Language => Scala
30573022
Symbols => 52 entries
30583023
Occurrences => 132 entries
3059-
Synthetics => 36 entries
3024+
Synthetics => 23 entries
30603025

30613026
Symbols:
30623027
example/Synthetic# => class Synthetic extends Object { self: Synthetic => +23 decls }
@@ -3247,26 +3212,17 @@ Occurrences:
32473212
[58:6..58:9): foo -> example/Synthetic#Contexts.foo().
32483213

32493214
Synthetics:
3250-
[5:2..5:13):List(1).map => *[Int]
3251-
[5:2..5:6):List => *.apply[Int]
32523215
[6:2..6:18):Array.empty[Int] => intArrayOps(*)
32533216
[7:2..7:8):"fooo" => augmentString(*)
32543217
[10:13..10:24):"name:(.*)" => augmentString(*)
3255-
[11:17..11:25):LazyList => *.apply[Int]
3256-
[13:4..13:28):#:: 2 #:: LazyList.empty => *[Int]
32573218
[13:8..13:28):2 #:: LazyList.empty => toDeferrer[Int](*)
3258-
[13:10..13:28):#:: LazyList.empty => *[Int]
32593219
[13:14..13:28):LazyList.empty => toDeferrer[Nothing](*)
32603220
[13:14..13:28):LazyList.empty => *[Nothing]
3261-
[15:25..15:33):LazyList => *.apply[Int]
3262-
[17:14..17:38):#:: 2 #:: LazyList.empty => *[Int]
32633221
[17:18..17:38):2 #:: LazyList.empty => toDeferrer[Int](*)
3264-
[17:20..17:38):#:: LazyList.empty => *[Int]
32653222
[17:24..17:38):LazyList.empty => toDeferrer[Nothing](*)
32663223
[17:24..17:38):LazyList.empty => *[Nothing]
32673224
[19:12..19:13):1 => intWrapper(*)
32683225
[19:26..19:27):0 => intWrapper(*)
3269-
[19:46..19:50):x -> => *[Int]
32703226
[19:46..19:47):x => ArrowAssoc[Int](*)
32713227
[20:12..20:13):1 => intWrapper(*)
32723228
[20:26..20:27):0 => intWrapper(*)
@@ -3275,10 +3231,6 @@ Synthetics:
32753231
[32:35..32:49):Array.empty[T] => *(evidence$1)
32763232
[36:22..36:27):new F => orderingToOrdered[F](*)
32773233
[36:22..36:27):new F => *(ordering)
3278-
[40:9..40:43):scala.concurrent.Future.successful => *[Int]
3279-
[41:9..41:43):scala.concurrent.Future.successful => *[Int]
3280-
[44:9..44:43):scala.concurrent.Future.successful => *[Int]
3281-
[45:9..45:43):scala.concurrent.Future.successful => *[Int]
32823234
[51:24..51:30):foo(0) => *(x$1)
32833235
[52:27..52:33):foo(0) => *(x)
32843236
[55:6..55:12):foo(x) => *(x)
@@ -3334,7 +3286,7 @@ Text => empty
33343286
Language => Scala
33353287
Symbols => 22 entries
33363288
Occurrences => 46 entries
3337-
Synthetics => 7 entries
3289+
Synthetics => 2 entries
33383290

33393291
Symbols:
33403292
example/ValPattern# => class ValPattern extends Object { self: ValPattern => +14 decls }
@@ -3409,13 +3361,8 @@ Occurrences:
34093361
[40:10..40:18): rightVar -> local4
34103362

34113363
Synthetics:
3412-
[6:4..6:8):Some => *.apply[Int]
34133364
[8:6..8:10):List => *.unapplySeq[Nothing]
34143365
[8:11..8:15):Some => *.unapply[Nothing]
3415-
[12:4..12:8):Some => *.apply[Int]
3416-
[25:4..25:11):locally => *[Unit]
3417-
[28:8..28:12):Some => *.apply[Int]
3418-
[32:8..32:12):Some => *.apply[Int]
34193366

34203367
expect/Vals.scala
34213368
-----------------
@@ -3937,7 +3884,6 @@ Text => empty
39373884
Language => Scala
39383885
Symbols => 3 entries
39393886
Occurrences => 6 entries
3940-
Synthetics => 1 entries
39413887

39423888
Symbols:
39433889
example/`local-file`# => class local-file extends Object { self: local-file => +1 decls }
@@ -3952,9 +3898,6 @@ Occurrences:
39523898
[5:4..5:9): local -> local0
39533899
[5:10..5:11): + -> scala/Int#`+`(+4).
39543900

3955-
Synthetics:
3956-
[3:2..3:9):locally => *[Int]
3957-
39583901
expect/nullary.scala
39593902
--------------------
39603903

@@ -3965,7 +3908,6 @@ Text => empty
39653908
Language => Scala
39663909
Symbols => 17 entries
39673910
Occurrences => 29 entries
3968-
Synthetics => 1 entries
39693911

39703912
Symbols:
39713913
_empty_/Concrete# => class Concrete extends NullaryTest[Int, List] { self: Concrete => +3 decls }
@@ -4017,9 +3959,6 @@ Occurrences:
40173959
[18:7..18:15): Concrete -> _empty_/Concrete#
40183960
[18:17..18:25): nullary3 -> _empty_/Concrete#nullary3().
40193961

4020-
Synthetics:
4021-
[13:17..13:21):List => *.apply[Int]
4022-
40233962
expect/recursion.scala
40243963
----------------------
40253964

@@ -4308,7 +4247,6 @@ Text => empty
43084247
Language => Scala
43094248
Symbols => 144 entries
43104249
Occurrences => 225 entries
4311-
Synthetics => 1 entries
43124250

43134251
Symbols:
43144252
local0 => abstract method k => Int
@@ -4683,9 +4621,6 @@ Occurrences:
46834621
[119:32..119:38): Option -> scala/Option#
46844622
[119:39..119:42): Int -> scala/Int#
46854623

4686-
Synthetics:
4687-
[68:20..68:24):@ann => *[Int]
4688-
46894624
expect/semanticdb-extract.scala
46904625
-------------------------------
46914626

@@ -4696,7 +4631,7 @@ Text => empty
46964631
Language => Scala
46974632
Symbols => 18 entries
46984633
Occurrences => 20 entries
4699-
Synthetics => 3 entries
4634+
Synthetics => 2 entries
47004635

47014636
Symbols:
47024637
_empty_/AnObject. => final object AnObject extends Object { self: AnObject.type => +6 decls }
@@ -4741,7 +4676,6 @@ Occurrences:
47414676
[16:20..16:23): Int -> scala/Int#
47424677

47434678
Synthetics:
4744-
[11:2..11:6):List => *.apply[Int]
47454679
[12:2..12:12):List.apply => *[Nothing]
47464680
[13:2..13:14):List.`apply` => *[Nothing]
47474681

@@ -4755,7 +4689,7 @@ Text => empty
47554689
Language => Scala
47564690
Symbols => 18 entries
47574691
Occurrences => 43 entries
4758-
Synthetics => 2 entries
4692+
Synthetics => 1 entries
47594693

47604694
Symbols:
47614695
_empty_/MyProgram# => final class MyProgram extends Object { self: MyProgram => +2 decls }
@@ -4823,6 +4757,5 @@ Occurrences:
48234757
[7:30..7:33): foo -> _empty_/toplevel$package.foo().
48244758

48254759
Synthetics:
4826-
[5:40..5:60):(1 to times) foreach => *[Unit]
48274760
[5:41..5:42):1 => intWrapper(*)
48284761

0 commit comments

Comments
 (0)