File tree Expand file tree Collapse file tree 6 files changed +15
-5
lines changed
src-bootstrapped/scala/quoted Expand file tree Collapse file tree 6 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11package scala .quoted
22
3- /** Quoted expression of type `T` */
3+ /** Quoted expression of type `T`.
4+ *
5+ * `Expr` has extension methods that are defined in `scala.quoted.Quotes`.
6+ */
47abstract class Expr [+ T ] private [scala]
58
9+ /** Constructors for expressions */
610object Expr {
711
812 /** `e.betaReduce` returns an expression that is functionally equivalent to `e`,
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ trait FromExpr[T] {
2121
2222}
2323
24+ /** Default given instances of `FromExpr` */
2425object FromExpr {
2526
2627 /** Default implementation of `FromExpr[Boolean]`
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ trait ToExpr[T] {
1212
1313}
1414
15+ /** Default given instances of `ToExpr` */
1516object ToExpr {
1617
1718 // IMPORTANT Keep in sync with tests/run-staging/liftables.scala
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import scala.reflect.TypeTest
55/** Current Quotes in scope */
66inline def quotes (using q : Quotes ): q.type = q
77
8- /** Quotation context provided by a macro expansion or in the scope of `scala.quoted.run`.
8+ /** Quotation context provided by a macro expansion or in the scope of `scala.quoted.staging. run`.
99 * Used to perform all operations on quoted `Expr` or `Type`.
1010 *
1111 * It contains the low-level Typed AST API metaprogramming API.
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ package scala.quoted
22
33import scala .annotation .compileTimeOnly
44
5- /** Quoted type (or kind ) `T` */
5+ /** Type (or type constructor ) `T` needed contextually when using `T` in a quoted expression `'{... T ...} ` */
66abstract class Type [T <: AnyKind ] private [scala]:
77 /** The type represented `Type` */
88 type Underlying = T
99end Type
1010
11- /** Some basic type tags, currently incomplete */
11+ /** Methods to interact with the current `Type[T]` in scope */
1212object Type :
1313
1414 /** Show a source code like representation of this type without syntax highlight */
Original file line number Diff line number Diff line change 11package scala .quoted
22
3- /** Literal sequence of expressions */
3+ /** Expression reepresentation of literal sequence of expressions.
4+ *
5+ * `Varargs` can be used to create the an expression `args` that will be used as varargs `'{ f($args: _*) }`
6+ * or it can be used to extract all the arguments of the a varargs.
7+ */
48object Varargs {
59
610 /** Lifts this sequence of expressions into an expression of a sequence
You can’t perform that action at this time.
0 commit comments