Skip to content

Commit 5cb745b

Browse files
committed
Attempt to capture-check quotes
1 parent d847d03 commit 5cb745b

15 files changed

+42
-14
lines changed

TODO.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@
6262
- [x] library/src/scala/compiletime/testing/ErrorKind.scala
6363
- [x] library/src/scala/compiletime/testing/package.scala
6464
- [x] library/src/scala/main.scala
65-
- [ ] library/src/scala/quoted/Expr.scala
66-
- [ ] library/src/scala/quoted/ExprMap.scala
67-
- [ ] library/src/scala/quoted/Exprs.scala
68-
- [ ] library/src/scala/quoted/FromExpr.scala
69-
- [ ] library/src/scala/quoted/Quotes.scala
70-
- [ ] library/src/scala/quoted/ToExpr.scala
71-
- [ ] library/src/scala/quoted/Type.scala
72-
- [ ] library/src/scala/quoted/Varargs.scala
73-
- [ ] library/src/scala/quoted/runtime/Expr.scala
74-
- [ ] library/src/scala/quoted/runtime/Patterns.scala
75-
- [ ] library/src/scala/quoted/runtime/QuoteMatching.scala
76-
- [ ] library/src/scala/quoted/runtime/QuoteUnpickler.scala
77-
- [ ] library/src/scala/quoted/runtime/SplicedType.scala
78-
- [ ] library/src/scala/quoted/runtime/StopMacroExpansion.scala
65+
- [x] library/src/scala/quoted/Expr.scala
66+
- [x] library/src/scala/quoted/ExprMap.scala
67+
- [x] library/src/scala/quoted/Exprs.scala
68+
- [x] library/src/scala/quoted/FromExpr.scala
69+
- [x] library/src/scala/quoted/Quotes.scala
70+
- [x] library/src/scala/quoted/ToExpr.scala
71+
- [x] library/src/scala/quoted/Type.scala
72+
- [x] library/src/scala/quoted/Varargs.scala
73+
- [x] library/src/scala/quoted/runtime/Expr.scala
74+
- [x] library/src/scala/quoted/runtime/Patterns.scala
75+
- [x] library/src/scala/quoted/runtime/QuoteMatching.scala
76+
- [x] library/src/scala/quoted/runtime/QuoteUnpickler.scala
77+
- [x] library/src/scala/quoted/runtime/SplicedType.scala
78+
- [x] library/src/scala/quoted/runtime/StopMacroExpansion.scala
7979
- [x] library/src/scala/reflect/Enum.scala
8080
- [x] library/src/scala/reflect/Selectable.scala
8181
- [x] library/src/scala/reflect/TypeTest.scala

library/src/scala/quoted/Expr.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
/** Quoted expression of type `T`.
46
*
57
* `Expr` has extension methods that are defined in `scala.quoted.Quotes`.

library/src/scala/quoted/ExprMap.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
trait ExprMap:
46

57
/** Map an expression `e` with a type `T` */

library/src/scala/quoted/Exprs.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
object Exprs:
46

57
/** Matches literal sequence of literal constant value expressions and return a sequence of values.

library/src/scala/quoted/FromExpr.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
/** A type class for types that can convert a `quoted.Expr[T]` to a `T`.
46
*
57
* - Converts expression containing literal values to their values:

library/src/scala/quoted/Quotes.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
import scala.annotation.{experimental, implicitNotFound, unused}
46
import scala.reflect.TypeTest
57

library/src/scala/quoted/ToExpr.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
import scala.reflect.ClassTag
46

57
/** A type class for types that can convert a value of `T` into `quoted.Expr[T]`

library/src/scala/quoted/Type.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
import scala.annotation.{compileTimeOnly, experimental}
46

57
/** Type (or type constructor) `T` needed contextually when using `T` in a quoted expression `'{... T ...}` */

library/src/scala/quoted/Varargs.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.quoted
22

3+
import language.experimental.captureChecking
4+
35
/** Expression representation of literal sequence of expressions.
46
*
57
* `Varargs` can be used to create the an expression `args` that will be used as varargs `'{ f($args: _*) }`

library/src/scala/quoted/runtime/Expr.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package scala.quoted
22
package runtime
33

4+
import language.experimental.captureChecking
5+
46
import scala.annotation.{Annotation, compileTimeOnly}
57

68
@compileTimeOnly("Illegal reference to `scala.quoted.runtime.Expr`")

0 commit comments

Comments
 (0)