File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import util.SourceFile
6
6
import ast .{tpd , untpd }
7
7
import dotty .tools .dotc .ast .tpd .{ Tree , TreeTraverser }
8
8
import dotty .tools .dotc .core .Contexts .Context
9
- import dotty .tools .dotc .core .StdNames ._
10
9
import dotty .tools .dotc .core .SymDenotations .ClassDenotation
11
10
import dotty .tools .dotc .core .Symbols ._
11
+ import dotty .tools .dotc .transform .SymUtils ._
12
12
13
13
class CompilationUnit (val source : SourceFile ) {
14
14
@@ -48,7 +48,7 @@ object CompilationUnit {
48
48
private class Force extends TreeTraverser {
49
49
var containsQuotes = false
50
50
def traverse (tree : Tree )(implicit ctx : Context ): Unit = {
51
- if (tree.symbol.name.eq(nme. QUOTE ) && tree.symbol.owner.eq(defn. OpsPackageClass ) )
51
+ if (tree.symbol.isQuote )
52
52
containsQuotes = true
53
53
traverseChildren(tree)
54
54
}
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
204
204
Checking .checkInstantiable(tree.tpe, nu.pos)
205
205
withNoCheckNews(nu :: Nil )(super .transform(tree))
206
206
case meth =>
207
- if (meth.symbol.name.eq(nme. QUOTE ) && meth.symbol.owner.eq(defn. OpsPackageClass ) )
207
+ if (meth.symbol.isQuote )
208
208
ctx.compilationUnit.containsQuotesOrSplices = true
209
209
super .transform(tree)
210
210
}
You can’t perform that action at this time.
0 commit comments