File tree 3 files changed +6
-4
lines changed
library/src-3.x/scala/quoted
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ package quoted {
21
21
22
22
implicit class ExprOps [T ](expr : Expr [T ]) {
23
23
24
- /** Show a source code like representation of this expression */
24
+ /** Show a source code like representation of this expression without syntax highlight */
25
25
def show (implicit qctx : QuoteContext ): String = qctx.show(expr, SyntaxHighlight .plain)
26
26
27
27
/** Show a source code like representation of this expression */
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ package quoted {
13
13
14
14
implicit class TypeOps [T ](tpe : Type [T ]) {
15
15
16
- /** Show a source code like representation of this type */
16
+ /** Show a source code like representation of this type without syntax highlight */
17
17
def show (implicit qctx : QuoteContext ): String = qctx.show(tpe, SyntaxHighlight .plain)
18
18
19
19
/** Show a source code like representation of this type */
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ package object quoted {
13
13
* ```
14
14
* where `expr: Expr[T]`
15
15
*
16
- * This method shoul not be called in a context where there is already has a QuoteContext.
16
+ * This method should not be called in a context where there is already has a `QuoteContext`
17
+ * such as within a `run` or a `withQuoteContext`.
17
18
*
18
19
* May throw a FreeVariableError on expressions that came from a macro.
19
20
*/
@@ -30,7 +31,8 @@ package object quoted {
30
31
* ```
31
32
* where `thunk: T`
32
33
*
33
- * This method shoul not be called in a context where there is already has a QuoteContext.
34
+ * This method should not be called in a context where there is already has a `QuoteContext`
35
+ * such as within a `run` or a `withQuoteContext`.
34
36
*/
35
37
def withQuoteContext [T ](thunk : given QuoteContext => T ) given (toolbox : Toolbox ): T = {
36
38
var result : T = NoResult .asInstanceOf [T ]
You can’t perform that action at this time.
0 commit comments