Skip to content

Commit fb58b01

Browse files
tgodzikWojciechMazur
authored andcommitted
bugfix: Include synthetic apply in semanticdb (#23629)
Fixes scalameta/metals#7666 Some weird entries around string interpolation, but they actually make sense. [Cherry-picked 74b9e85]
1 parent 9b55b2d commit fb58b01

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
@@ -77,7 +77,9 @@ class SyntheticsExtractor:
7777
)
7878
).toOpt
7979

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

0 commit comments

Comments
 (0)