blob: 9476d994b058eb20b092e188b955dfdbc899dd5e (
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 typer.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)
}
}
|