Skip to content

Commit 8925be8

Browse files
authored
Merge pull request #540 from scala/backport-lts-3.3-23629
Backport "bugfix: Include synthetic apply in semanticdb" to 3.3 LTS
2 parents 0d78a4c + 89f5e2f commit 8925be8

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)