@@ -274,9 +274,9 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
274
274
type TypeBoundsTree = internal.TypeBoundsTree
275
275
276
276
/** Type tree representing wildcard type bounds written in the source.
277
- * The wildcard type `_` (for example in in `List[_]`) will be a type tree that
278
- * represents a type but has `TypeBound`a inside.
279
- */
277
+ * The wildcard type `_` (for example in in `List[_]`) will be a type tree that
278
+ * represents a type but has `TypeBound`a inside.
279
+ */
280
280
type WildcardTypeTree = internal.WildcardTypeTree
281
281
282
282
/** Branch of a pattern match or catch clause */
@@ -367,10 +367,10 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
367
367
368
368
369
369
/** Import selectors:
370
- * * SimpleSelector: `.bar` in `import foo.bar`
371
- * * RenameSelector: `.{bar => baz}` in `import foo.{bar => baz}`
372
- * * OmitSelector: `.{bar => _}` in `import foo.{bar => _}`
373
- */
370
+ * * SimpleSelector: `.bar` in `import foo.bar`
371
+ * * RenameSelector: `.{bar => baz}` in `import foo.{bar => baz}`
372
+ * * OmitSelector: `.{bar => _}` in `import foo.{bar => _}`
373
+ */
374
374
type ImportSelector = internal.ImportSelector
375
375
type SimpleSelector = internal.SimpleSelector
376
376
type RenameSelector = internal.RenameSelector
@@ -395,8 +395,8 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
395
395
type Constant = internal.Constant
396
396
397
397
/** Symbol of a definition.
398
- * Then can be compared with == to know if the definition is the same.
399
- */
398
+ * Then can be compared with == to know if the definition is the same.
399
+ */
400
400
type Symbol = internal.Symbol
401
401
402
402
/** FlagSet of a Symbol */
@@ -675,19 +675,19 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
675
675
object Ref {
676
676
677
677
/** Create a reference tree from a symbol
678
- *
679
- * If `sym` refers to a class member `foo` in class `C`,
680
- * returns a tree representing `C.this.foo`.
681
- *
682
- * If `sym` refers to a local definition `foo`, returns
683
- * a tree representing `foo`.
684
- *
685
- * @note In both cases, the constructed tree should only
686
- * be spliced into the places where such accesses make sense.
687
- * For example, it is incorrect to have `C.this.foo` outside
688
- * the class body of `C`, or have `foo` outside the lexical
689
- * scope for the definition of `foo`.
690
- */
678
+ *
679
+ * If `sym` refers to a class member `foo` in class `C`,
680
+ * returns a tree representing `C.this.foo`.
681
+ *
682
+ * If `sym` refers to a local definition `foo`, returns
683
+ * a tree representing `foo`.
684
+ *
685
+ * @note In both cases, the constructed tree should only
686
+ * be spliced into the places where such accesses make sense.
687
+ * For example, it is incorrect to have `C.this.foo` outside
688
+ * the class body of `C`, or have `foo` outside the lexical
689
+ * scope for the definition of `foo`.
690
+ */
691
691
def apply (sym : Symbol )(given ctx : Context ): Ref =
692
692
internal.Ref_apply (sym)
693
693
}
@@ -1804,7 +1804,7 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
1804
1804
1805
1805
/**
1806
1806
* An accessor for `scala.internal.MatchCase[_,_]`, the representation of a `MatchType` case.
1807
- */
1807
+ */
1808
1808
def MatchCaseType (given Context ): Type = {
1809
1809
import scala .internal .MatchCase
1810
1810
Type (classOf [MatchCase [_,_]])
@@ -2028,15 +2028,16 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
2028
2028
* this symbol to the DefDef constructor.
2029
2029
*
2030
2030
* @note As a macro can only splice code into the point at which it is expanded, all generated symbols must be
2031
- * direct or indirect children of the reflection context's owner. */
2031
+ * direct or indirect children of the reflection context's owner.
2032
+ */
2032
2033
def newMethod (parent : Symbol , name : String , tpe : Type )(given ctx : Context ): Symbol =
2033
2034
newMethod(parent, name, tpe, Flags .EmptyFlags , noSymbol)
2034
2035
2035
2036
/** Works as the other newMethod, but with additional parameters.
2036
2037
*
2037
2038
* @param flags extra flags to with which the symbol should be constructed
2038
2039
* @param privateWithin the symbol within which this new method symbol should be private. May be noSymbol.
2039
- * * /
2040
+ */
2040
2041
def newMethod (parent : Symbol , name : String , tpe : Type , flags : Flags , privateWithin : Symbol )(given ctx : Context ): Symbol =
2041
2042
internal.Symbol_newMethod (parent, name, flags, tpe, privateWithin)
2042
2043
@@ -2194,12 +2195,12 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
2194
2195
extension signatureOps on (sig : Signature ) {
2195
2196
2196
2197
/** The signatures of the method parameters.
2197
- *
2198
- * Each *type parameter section* is represented by a single Int corresponding
2199
- * to the number of type parameters in the section.
2200
- * Each *term parameter* is represented by a String corresponding to the fully qualified
2201
- * name of the parameter type.
2202
- */
2198
+ *
2199
+ * Each *type parameter section* is represented by a single Int corresponding
2200
+ * to the number of type parameters in the section.
2201
+ * Each *term parameter* is represented by a String corresponding to the fully qualified
2202
+ * name of the parameter type.
2203
+ */
2203
2204
def paramSigs : List [String | Int ] = internal.Signature_paramSigs (sig)
2204
2205
2205
2206
/** The signature of the result type */
@@ -2217,8 +2218,8 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
2217
2218
object defn extends StandardSymbols with StandardTypes
2218
2219
2219
2220
/** Defines standard symbols (and types via its base trait).
2220
- * @group API
2221
- */
2221
+ * @group API
2222
+ */
2222
2223
trait StandardSymbols {
2223
2224
2224
2225
/** The module symbol of root package `_root_`. */
@@ -2315,8 +2316,8 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
2315
2316
def Array_update : Symbol = internal.Definitions_Array_update
2316
2317
2317
2318
/** A dummy class symbol that is used to indicate repeated parameters
2318
- * compiled by the Scala compiler.
2319
- */
2319
+ * compiled by the Scala compiler.
2320
+ */
2320
2321
def RepeatedParamClass : Symbol = internal.Definitions_RepeatedParamClass
2321
2322
2322
2323
/** The class symbol of class `scala.Option`. */
@@ -2332,23 +2333,23 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
2332
2333
def ProductClass : Symbol = internal.Definitions_ProductClass
2333
2334
2334
2335
/** Function-like object that maps arity to symbols for classes `scala.FunctionX`.
2335
- * - 0th element is `Function0`
2336
- * - 1st element is `Function1`
2337
- * - ...
2338
- * - Nth element is `FunctionN`
2339
- */
2336
+ * - 0th element is `Function0`
2337
+ * - 1st element is `Function1`
2338
+ * - ...
2339
+ * - Nth element is `FunctionN`
2340
+ */
2340
2341
def FunctionClass (arity : Int , isImplicit : Boolean = false , isErased : Boolean = false ): Symbol =
2341
2342
internal.Definitions_FunctionClass (arity, isImplicit, isErased)
2342
2343
2343
2344
/** Function-like object that maps arity to symbols for classes `scala.TupleX`.
2344
- * - 0th element is `NoSymbol`
2345
- * - 1st element is `NoSymbol`
2346
- * - 2st element is `Tuple2`
2347
- * - ...
2348
- * - 22nd element is `Tuple22`
2349
- * - 23nd element is `NoSymbol` // TODO update when we will have more tuples
2350
- * - ...
2351
- */
2345
+ * - 0th element is `NoSymbol`
2346
+ * - 1st element is `NoSymbol`
2347
+ * - 2st element is `Tuple2`
2348
+ * - ...
2349
+ * - 22nd element is `Tuple22`
2350
+ * - 23nd element is `NoSymbol` // TODO update when we will have more tuples
2351
+ * - ...
2352
+ */
2352
2353
def TupleClass (arity : Int ): Symbol =
2353
2354
internal.Definitions_TupleClass (arity)
2354
2355
@@ -2357,28 +2358,28 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
2357
2358
internal.Definitions_isTupleClass (sym)
2358
2359
2359
2360
/** Contains Scala primitive value classes:
2360
- * - Byte
2361
- * - Short
2362
- * - Int
2363
- * - Long
2364
- * - Float
2365
- * - Double
2366
- * - Char
2367
- * - Boolean
2368
- * - Unit
2369
- */
2361
+ * - Byte
2362
+ * - Short
2363
+ * - Int
2364
+ * - Long
2365
+ * - Float
2366
+ * - Double
2367
+ * - Char
2368
+ * - Boolean
2369
+ * - Unit
2370
+ */
2370
2371
def ScalaPrimitiveValueClasses : List [Symbol ] =
2371
2372
UnitClass :: BooleanClass :: ScalaNumericValueClasses
2372
2373
2373
2374
/** Contains Scala numeric value classes:
2374
- * - Byte
2375
- * - Short
2376
- * - Int
2377
- * - Long
2378
- * - Float
2379
- * - Double
2380
- * - Char
2381
- */
2375
+ * - Byte
2376
+ * - Short
2377
+ * - Int
2378
+ * - Long
2379
+ * - Float
2380
+ * - Double
2381
+ * - Char
2382
+ */
2382
2383
def ScalaNumericValueClasses : List [Symbol ] =
2383
2384
ByteClass :: ShortClass :: IntClass :: LongClass :: FloatClass :: DoubleClass :: CharClass :: Nil
2384
2385
0 commit comments