Skip to content

Commit f934659

Browse files
committed
Add docs
1 parent 031110b commit f934659

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/src/scala/quoted/QuoteContext.scala

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

33
import scala.quoted.show.SyntaxHighlight
44

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+
*/
513
class QuoteContext(val tasty: scala.tasty.Reflection) {
614

715
def show[T](expr: Expr[T], syntaxHighlight: SyntaxHighlight): String = {

0 commit comments

Comments
 (0)