Skip to content

Commit 7a45a4a

Browse files
authored
Merge pull request #5222 from dotty-staging/fix/ide-positions
Don't check positions in `findTreesMatching`
2 parents 5a07d51 + 37aaa15 commit 7a45a4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/interactive/Interactive.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ object Interactive {
321321
val includeDeclaration = (includes & Include.definitions) != 0
322322
val includeLinkedClass = (includes & Include.linkedClass) != 0
323323
val predicate: NameTree => Boolean = tree =>
324-
( tree.pos.isSourceDerived
325-
&& !tree.symbol.isPrimaryConstructor
324+
( !tree.symbol.isPrimaryConstructor
326325
&& (includeDeclaration || !Interactive.isDefinition(tree))
327326
&& ( Interactive.matchSymbol(tree, symbol, includes)
328327
|| ( includeDeclaration

0 commit comments

Comments
 (0)