We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 031110b commit f934659Copy full SHA for f934659
library/src/scala/quoted/QuoteContext.scala
@@ -2,6 +2,14 @@ package scala.quoted
2
3
import scala.quoted.show.SyntaxHighlight
4
5
+/** Quotation context provided by a macro expansion or in the scope of `scala.quoted.run`.
6
+ * Used to perform all operations on quoted `Expr` or `Type`.
7
+ *
8
+ * It contains the low-level Typed AST API `tasty` meta-programming API.
9
+ * This API does not have the static type guarantiees that `Expr` and `Type` provide.
10
11
+ * @param tasty Typed AST API. Usage: `def f(qctx: QuoteContext) = { import qctx.tasty._; ... }`.
12
+ */
13
class QuoteContext(val tasty: scala.tasty.Reflection) {
14
15
def show[T](expr: Expr[T], syntaxHighlight: SyntaxHighlight): String = {
0 commit comments