Skip to content

Commit 3088cc2

Browse files
Backport "bugfix: Include synthetic apply in semanticdb" to 3.7.4 (#24024)
Backports #23629 to the 3.7.4. PR submitted by the release tooling. [skip ci]
2 parents 3e01f80 + fb58b01 commit 3088cc2

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)