Skip to content

Commit 8c32f45

Browse files
authored
Merge pull request #9428 from dotty-staging/add-RepeatedAnnot-to-refllection
Add `RepeatedAnnot` to `Reflection.defn`
2 parents 29b5411 + 2e25b7d commit 8c32f45

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
19351935
def Definitions_Array_update: Symbol = defn.Array_update.asTerm
19361936

19371937
def Definitions_RepeatedParamClass: Symbol = defn.RepeatedParamClass
1938+
def Definitions_RepeatedAnnot: Symbol = defn.RepeatedAnnot
19381939

19391940
def Definitions_OptionClass: Symbol = defn.OptionClass
19401941
def Definitions_NoneModule: Symbol = defn.NoneModule

library/src/scala/tasty/Reflection.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2650,6 +2650,9 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
26502650
*/
26512651
def RepeatedParamClass: Symbol = internal.Definitions_RepeatedParamClass
26522652

2653+
/** The class symbol of class `scala.annotation.internal.Repeated` */
2654+
def RepeatedAnnot: Symbol = internal.Definitions_RepeatedAnnot
2655+
26532656
/** The class symbol of class `scala.Option`. */
26542657
def OptionClass: Symbol = internal.Definitions_OptionClass
26552658

library/src/scala/tasty/reflect/CompilerInterface.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,8 +1478,14 @@ trait CompilerInterface {
14781478
def Definitions_Array_length: Symbol
14791479
def Definitions_Array_update: Symbol
14801480

1481+
/** A dummy class symbol that is used to indicate repeated parameters
1482+
* compiled by the Scala compiler.
1483+
*/
14811484
def Definitions_RepeatedParamClass: Symbol
14821485

1486+
/** The class symbol of class `scala.annotation.internal.Repeated` */
1487+
def Definitions_RepeatedAnnot: Symbol
1488+
14831489
def Definitions_OptionClass: Symbol
14841490
def Definitions_NoneModule: Symbol
14851491
def Definitions_SomeModule: Symbol

0 commit comments

Comments
 (0)