File tree 2 files changed +13
-11
lines changed
compiler/src/dotty/tools/dotc 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -167,5 +167,6 @@ object Config {
167
167
*/
168
168
final val PendingFindMemberLimit = LogPendingFindMemberThreshold * 4
169
169
170
+ /** When in IDE, turn StaleSymbol errors into warnings instead of crashing */
170
171
final val ignoreStaleInIDE = true
171
172
}
Original file line number Diff line number Diff line change @@ -131,19 +131,20 @@ object Interactive {
131
131
val buf = new mutable.ListBuffer [SourceTree ]
132
132
133
133
trees foreach { case SourceTree (topTree, source) =>
134
- (new TreeTraverser {
135
- override def traverse (tree : Tree )(implicit ctx : Context ) = {
134
+ (new untpd. TreeTraverser {
135
+ override def traverse (tree : untpd. Tree )(implicit ctx : Context ) = {
136
136
tree match {
137
- case _ : Inlined =>
137
+ case _ : untpd. Inlined =>
138
138
// Skip inlined trees
139
- case tree : NameTree
140
- if tree.symbol.exists
141
- && ! tree.symbol.is(Synthetic )
142
- && tree.pos.exists
143
- && ! tree.pos.isZeroExtent
144
- && (includeReferences || isDefinition(tree))
145
- && treePredicate(tree) =>
146
- buf += SourceTree (tree, source)
139
+ case utree : untpd.NameTree if tree.hasType =>
140
+ val tree = utree.asInstanceOf [tpd.NameTree ]
141
+ if (tree.symbol.exists
142
+ && ! tree.symbol.is(Synthetic )
143
+ && tree.pos.exists
144
+ && ! tree.pos.isZeroExtent
145
+ && (includeReferences || isDefinition(tree))
146
+ && treePredicate(tree))
147
+ buf += SourceTree (tree, source)
147
148
case _ =>
148
149
}
149
150
traverseChildren(tree)
You can’t perform that action at this time.
0 commit comments