Skip to content

Commit

Permalink
Simplify the generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed May 10, 2017
1 parent 92f4795 commit 0001adc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Override/src/main/scala/com/thoughtworks/Override.scala
Expand Up @@ -191,14 +191,12 @@ object Override {
tq"$superType"
}
val result = q"""
new _root_.com.thoughtworks.Override[$valsType, $mixinType]({$argumentHListName: $valuesType =>
val $pattern = $argumentHListName
final class Foo extends ..$superTrees {
new _root_.com.thoughtworks.Override[$valsType, $mixinType](_ match { case $pattern =>
new ..$superTrees {
..$upvalues
..$overridenTypes
..$injects
}
new Foo
})
"""
// c.info(c.enclosingPosition, showCode(result), false)
Expand Down

0 comments on commit 0001adc

Please sign in to comment.