Skip to content

Commit 2244eb1

Browse files
committed
Add missing span when expanding FunctionAppliedTo
This span is explicitly required because all the children may come from other files.
1 parent cac4e18 commit 2244eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/quoted/PickledQuotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ object PickledQuotes {
128128
}
129129

130130
private def functionAppliedTo(fn: Tree, args: List[Tree])(implicit ctx: Context): Tree = {
131-
val argVals = args.map(arg => SyntheticValDef(NameKinds.UniqueName.fresh("x".toTermName), arg))
131+
val argVals = args.map(arg => SyntheticValDef(NameKinds.UniqueName.fresh("x".toTermName), arg).withSpan(arg.span))
132132
def argRefs() = argVals.map(argVal => ref(argVal.symbol))
133133
def rec(fn: Tree): Tree = fn match {
134134
case Inlined(call, bindings, expansion) =>

0 commit comments

Comments
 (0)