File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
compiler/src/dotty/tools/dotc/interactive Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import ast.tpd
8
8
import core ._ , core .Decorators .{sourcePos => _ , _ }
9
9
import Contexts ._ , NameOps ._ , Symbols ._
10
10
import util ._ , util .Positions ._
11
- import Interactive .matchSymbol
12
11
13
12
/** A typechecked named `tree` coming from `source` */
14
13
case class SourceTree (tree : tpd.NameTree , source : SourceFile ) {
@@ -48,7 +47,7 @@ object SourceTree {
48
47
def sourceTreeOfClass (tree : tpd.Tree ): Option [SourceTree ] = tree match {
49
48
case PackageDef (_, stats) =>
50
49
stats.flatMap(sourceTreeOfClass).headOption
51
- case tree : tpd.TypeDef if matchSymbol( tree, sym, includeOverridden = false ) =>
50
+ case tree : tpd.TypeDef if tree.symbol == sym =>
52
51
val sourceFile = new SourceFile (sym.sourceFile, Codec .UTF8 )
53
52
Some (SourceTree (tree, sourceFile))
54
53
case _ => None
You can’t perform that action at this time.
0 commit comments