File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,10 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
146
146
}
147
147
148
148
/** We are in a `~(...)` context that is not shadowed by a nested `'(...)` */
149
- def inSplice = outer != null && ! inQuote
149
+ def inSplice : Boolean = outer != null && ! inQuote
150
150
151
151
/** We are not in a `~(...)` or a `'(...)` */
152
- def isRoot = outer == null
152
+ def isRoot : Boolean = outer == null
153
153
154
154
/** A map from type ref T to expressions of type `quoted.Type[T]`".
155
155
* These will be turned into splices using `addTags` and represent type variables
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ object Splicer {
92
92
s """ Failed to evaluate inlined quote.
93
93
| Caused by ${ex.getClass}: ${if (ex.getMessage == null ) " " else ex.getMessage}
94
94
| ${ex.getStackTrace.takeWhile(_.getClassName != " dotty.tools.dotc.transform.Splicer$" ).init.mkString(" \n " )}
95
- """ .stripMargin
95
+ """ .stripMargin
96
96
ctx.error(msg, pos)
97
97
EmptyTree
98
98
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object Type {
31
31
object Types {
32
32
/** A Type backed by a pickled TASTY tree */
33
33
final class TastyType [T ](val tasty : Pickled , val args : Seq [Any ]) extends Type [T ] {
34
- override def toString (): String = s " Type(<pickled>) "
34
+ override def toString (): String = s " Type(<pickled tasty >) "
35
35
}
36
36
37
37
/** An Type backed by a value */
@@ -41,6 +41,6 @@ object Types {
41
41
42
42
/** An Type backed by a tree */
43
43
final class TreeType [Tree ](val typeTree : Tree ) extends quoted.Type [Any ] {
44
- override def toString : String = s " Type(<raw >) "
44
+ override def toString : String = s " Type(<tasty tree >) "
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments