File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ package dotc
3
3
4
4
import util .SourceFile
5
5
import ast .{tpd , untpd }
6
- import tpd .{ Tree , TreeTraverser }
6
+ import dotty .tools .dotc .ast .Trees
7
+ import tpd .{Tree , TreeTraverser }
7
8
import typer .PrepareInlineable .InlineAccessors
8
9
import dotty .tools .dotc .core .Contexts .Context
9
10
import dotty .tools .dotc .core .SymDenotations .ClassDenotation
10
11
import dotty .tools .dotc .core .Symbols ._
11
12
import dotty .tools .dotc .transform .SymUtils ._
13
+ import dotty .tools .dotc .typer .Inliner
12
14
13
15
class CompilationUnit (val source : SourceFile ) {
14
16
@@ -57,6 +59,11 @@ object CompilationUnit {
57
59
def traverse (tree : Tree )(implicit ctx : Context ): Unit = {
58
60
if (tree.symbol.isQuote)
59
61
containsQuotes = true
62
+ tree match {
63
+ case _ : tpd.RefTree | _ : Trees .GenericApply [_] if Inliner .isInlineable(tree) =>
64
+ containsQuotes = true // May inline a quote
65
+ case _ =>
66
+ }
60
67
traverseChildren(tree)
61
68
}
62
69
}
You can’t perform that action at this time.
0 commit comments