File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ object QuoteContextImpl {
50
50
}
51
51
52
52
class QuoteContextImpl private (ctx : Context ) extends QuoteContext :
53
- // NOTE: The tasty class should only mixin the compiler interface and the reflection interface.
54
- // We should not implement methods here, all should be implemented by `ReflectionCompilerInterface`
53
+
55
54
object tasty extends scala.tasty.Reflection , scala.internal.tasty.CompilerInterface :
56
55
57
56
def rootContext : Context = ctx
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ class TailRec extends MiniPhase {
186
186
def tailArgOrPureExpr (stat : Tree ): Boolean = stat match {
187
187
case stat : ValDef if stat.name.is(TailTempName ) || ! stat.symbol.is(Mutable ) => tailArgOrPureExpr(stat.rhs)
188
188
case Assign (lhs : Ident , rhs) if lhs.symbol.name.is(TailLocalName ) => tailArgOrPureExpr(rhs)
189
- case Assign (lhs : Ident , rhs : Ident ) if lhs.symbol == rhs.symbol => true
189
+ case Assign (lhs : Ident , rhs : Ident ) => lhs.symbol == rhs.symbol
190
190
case stat : Ident if stat.symbol.name.is(TailLocalName ) => true
191
191
case _ => tpd.isPureExpr(stat)
192
192
}
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ trait Reflection { reflection =>
248
248
249
249
// ClassDef
250
250
251
- /** Tree representing a class definition. This includes annonymus class definitions and the class of a module object */
251
+ /** Tree representing a class definition. This includes anonymous class definitions and the class of a module object */
252
252
type ClassDef <: Definition
253
253
254
254
given TypeTest [Tree , ClassDef ] = ClassDefTypeTest
You can’t perform that action at this time.
0 commit comments