Skip to content

Commit 74b9e85

Browse files
authored
bugfix: Include synthetic apply in semanticdb (#23629)
Fixes scalameta/metals#7666 Some weird entries around string interpolation, but they actually make sense.
1 parent a834dff commit 74b9e85

File tree

2 files changed

+169
-19
lines changed

2 files changed

+169
-19
lines changed

compiler/src/dotty/tools/dotc/semanticdb/SyntheticsExtractor.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ class SyntheticsExtractor:
7676
)
7777
).toOpt
7878

79-
case tree: Apply if tree.fun.symbol.is(Implicit) =>
79+
case tree: Apply
80+
if tree.fun.symbol.is(Implicit) ||
81+
(tree.fun.symbol.name == nme.apply && tree.fun.span.isSynthetic) =>
8082
val pos = range(tree.span, tree.source)
8183
s.Synthetic(
8284
pos,

0 commit comments

Comments
 (0)