@@ -19,7 +19,7 @@ transparent inline def quotes(using inline q: Quotes): q.type = q
19
19
* Used to perform all operations on quoted `Expr` or `Type`.
20
20
*
21
21
* It contains the low-level Typed AST API metaprogramming API.
22
- * This API does not have the static type guarantiees that `Expr` and `Type` provide.
22
+ * This API does not have the static type guarantees that `Expr` and `Type` provide.
23
23
*/
24
24
trait Quotes { self : runtime.QuoteUnpickler & runtime.QuoteMatching =>
25
25
@@ -283,7 +283,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
283
283
284
284
}
285
285
286
- /** Tree representing a pacakage clause in the source code
286
+ /** Tree representing a package clause in the source code
287
287
*
288
288
* ```scala
289
289
* package foo {
@@ -475,7 +475,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
475
475
*
476
476
* ```scala
477
477
* class C {
478
- * ... // statemets
478
+ * ... // statements
479
479
* }
480
480
* ```
481
481
* @syntax markdown
@@ -511,7 +511,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
511
511
/** List of type and term parameter clauses */
512
512
def paramss : List [ParamClause ]
513
513
514
- /** List of leading type paramters or Nil if the method does not have leading type paramters .
514
+ /** List of leading type parameters or Nil if the method does not have leading type parameters .
515
515
*
516
516
* Note: Non leading type parameters can be found in extension methods such as
517
517
* ```scala
@@ -522,7 +522,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
522
522
def leadingTypeParams : List [TypeDef ]
523
523
524
524
/** List of parameter clauses following the leading type parameters or all clauses.
525
- * Return all parameter clauses if there are no leading type paramters .
525
+ * Return all parameter clauses if there are no leading type parameters .
526
526
*
527
527
* Non leading type parameters can be found in extension methods such as
528
528
* ```scala
@@ -539,15 +539,15 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
539
539
def returnTpt : TypeTree
540
540
541
541
/** The tree of the implementation of the method.
542
- * Returns `None` if the method does not hava an implemetation .
542
+ * Returns `None` if the method does not have an implementation .
543
543
*/
544
544
def rhs : Option [Term ]
545
545
end extension
546
546
end DefDefMethods
547
547
548
548
// ValDef
549
549
550
- /** Tree representing a value definition in the source code This inclues `val`, `lazy val`, `var`, `object` and parameter defintions . */
550
+ /** Tree representing a value definition in the source code This includes `val`, `lazy val`, `var`, `object` and parameter definitions . */
551
551
type ValDef <: Definition
552
552
553
553
/** `TypeTest` that allows testing at runtime in a pattern match if a `Tree` is a `ValDef` */
@@ -659,7 +659,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
659
659
/** Replace Ident nodes references to the underlying tree that defined them */
660
660
def underlying : Term
661
661
662
- /** Converts a partally applied term into a lambda expression */
662
+ /** Converts a partially applied term into a lambda expression */
663
663
def etaExpand (owner : Symbol ): Term
664
664
665
665
/** A unary apply node with given argument: `tree(arg)` */
@@ -1255,7 +1255,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
1255
1255
* ```
1256
1256
* @param owner: owner of the generated `meth` symbol
1257
1257
* @param tpe: Type of the definition
1258
- * @param rhsFn: Funtion that recieves the `meth` symbol and the a list of references to the `params`
1258
+ * @param rhsFn: Function that receives the `meth` symbol and the a list of references to the `params`
1259
1259
* @syntax markdown
1260
1260
*/
1261
1261
def apply (owner : Symbol , tpe : MethodType , rhsFn : (Symbol , List [Tree ]) => Tree ): Block
@@ -2102,7 +2102,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
2102
2102
2103
2103
/** A parameter clause `[X1, ..., Xn]` or `(x1: X1, ..., xn: Xx)`
2104
2104
*
2105
- * `[X1, ..., Xn]` are reresented with `TypeParamClause` and `(x1: X1, ..., xn: Xx)` are represented with `TermParamClause`
2105
+ * `[X1, ..., Xn]` are represented with `TypeParamClause` and `(x1: X1, ..., xn: Xx)` are represented with `TermParamClause`
2106
2106
*
2107
2107
* `ParamClause` encodes the following enumeration
2108
2108
* ```scala
@@ -2404,7 +2404,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
2404
2404
2405
2405
/** Is this type a function type?
2406
2406
*
2407
- * @return true if the dealised type of `self` without refinement is `FunctionN[T1, T2, ..., Tn]`
2407
+ * @return true if the dealiased type of `self` without refinement is `FunctionN[T1, T2, ..., Tn]`
2408
2408
*
2409
2409
* @note The function
2410
2410
*
@@ -2603,7 +2603,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
2603
2603
end extension
2604
2604
end AppliedTypeMethods
2605
2605
2606
- /** A type with an anottation `T @foo` */
2606
+ /** A type with an annotation `T @foo` */
2607
2607
type AnnotatedType <: TypeRepr
2608
2608
2609
2609
/** `TypeTest` that allows testing at runtime in a pattern match if a `TypeRepr` is an `AnnotatedType` */
@@ -3562,7 +3562,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3562
3562
/** Get non-private named methods defined directly inside the class */
3563
3563
def declaredMethod (name : String ): List [Symbol ]
3564
3564
3565
- /** Get all non-private methods defined directly inside the class, exluding constructors */
3565
+ /** Get all non-private methods defined directly inside the class, excluding constructors */
3566
3566
def declaredMethods : List [Symbol ]
3567
3567
3568
3568
/** Get named non-private methods declared or inherited */
@@ -3574,7 +3574,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3574
3574
/** Get non-private named methods defined directly inside the class */
3575
3575
def declaredType (name : String ): List [Symbol ]
3576
3576
3577
- /** Get all non-private methods defined directly inside the class, exluding constructors */
3577
+ /** Get all non-private methods defined directly inside the class, excluding constructors */
3578
3578
def declaredTypes : List [Symbol ]
3579
3579
3580
3580
/** Type member with the given name directly declared in the class */
@@ -3854,7 +3854,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3854
3854
def Abstract : Flags
3855
3855
3856
3856
/** Is this generated by Scala compiler.
3857
- * Coresponds to ACC_SYNTHETIC in the JVM.
3857
+ * Corresponds to ACC_SYNTHETIC in the JVM.
3858
3858
*/
3859
3859
def Artifact : Flags
3860
3860
@@ -3921,10 +3921,10 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
3921
3921
/** Is this symbol `lazy` */
3922
3922
def Lazy : Flags
3923
3923
3924
- /** Is this symbol local? Used in conjunction with private/private[T] to mean private[this] extends Modifier proctected [this] */
3924
+ /** Is this symbol local? Used in conjunction with private/private[T] to mean private[this] extends Modifier protected [this] */
3925
3925
def Local : Flags
3926
3926
3927
- /** Is this symbol marked as a macro. An inline method containing toplevel splices */
3927
+ /** Is this symbol marked as a macro. An inline method containing top level splices */
3928
3928
def Macro : Flags
3929
3929
3930
3930
def Method : Flags
@@ -4093,7 +4093,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4093
4093
// REPORTING //
4094
4094
// /////////////
4095
4095
4096
- /** Module containg error and waring reporiting . */
4096
+ /** Module containing error and waring reporting . */
4097
4097
val report : reportModule
4098
4098
4099
4099
/** Methods of the module object `val report` */
@@ -4147,7 +4147,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4147
4147
*
4148
4148
* Usage:
4149
4149
* ```scala
4150
- * import qctx .reflect._
4150
+ * import quotes .reflect._
4151
4151
* class MyTreeAccumulator extends TreeAccumulator[X] {
4152
4152
* def foldTree(x: X, tree: Tree)(owner: Symbol): X = ...
4153
4153
* }
@@ -4251,7 +4251,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4251
4251
*
4252
4252
* Usage:
4253
4253
* ```scala
4254
- * import qctx .relfect._
4254
+ * import quotes .relfect._
4255
4255
* class MyTraverser extends TreeTraverser {
4256
4256
* override def traverseTree(tree: Tree)(owner: Symbol): Unit = ...
4257
4257
* }
@@ -4461,15 +4461,15 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4461
4461
4462
4462
/** Methods of the module object `val Printer` */
4463
4463
trait PrinterModule { self : Printer .type =>
4464
- /** Prints fully elaborated vesion of the source code. */
4464
+ /** Prints fully elaborated version of the source code. */
4465
4465
def TreeCode : Printer [Tree ]
4466
4466
4467
- /** Prints fully elaborated vesion of the source code.
4467
+ /** Prints fully elaborated version of the source code.
4468
4468
* Same as `TreeCode` but does not print full package prefixes.
4469
4469
*/
4470
4470
def TreeShortCode : Printer [Tree ]
4471
4471
4472
- /** Prints fully elaborated vesion of the source code using ANSI colors. */
4472
+ /** Prints fully elaborated version of the source code using ANSI colors. */
4473
4473
def TreeAnsiCode : Printer [Tree ]
4474
4474
4475
4475
/** Prints a pattern like representation of the `Tree`.
0 commit comments