We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf079aa commit 127aa30Copy full SHA for 127aa30
compiler/src/dotty/tools/dotc/transform/Splicer.scala
@@ -45,9 +45,8 @@ object Splicer {
45
* - Other parameters are lifted to quoted.Types.TreeExpr (may reference a binding)
46
*/
47
private def getLiftedArgs(call: Tree, bindings: List[Tree])(implicit ctx: Context): List[Any] = {
48
- val bindMap = bindings.map {
+ val bindMap = bindings.collect {
49
case vdef: ValDef => (vdef.rhs, ref(vdef.symbol))
50
- case ddef: DefDef => (ddef.rhs, ddef.rhs)
51
}.toMap
52
def allArgs(call: Tree, acc: List[List[Tree]]): List[List[Tree]] = call match {
53
case call: Apply => allArgs(call.fun, call.args :: acc)
0 commit comments