blob: 8d5a5ad7c5f3663e992512f732cf278ff5b1b531 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package test
import dotty.tools.dotc._
import ast.Trees._
import ast.desugar
import ast.desugar._
import core.Mode
object showTree extends DeSugarTest {
import dotty.tools.dotc.ast.untpd._
import Mode._
def test(arg: String) = {
val tree: Tree = parse(arg)
println("result = " + tree.show)
println("desugared = " + DeSugar.transform(tree).show)
}
def main(args: Array[String]): Unit = {
test("src/dotty/tools/dotc/core/Types.scala")
for (arg <- args) test(arg)
}
}
|