diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-03 20:55:01 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-03 21:13:29 +0200 |
commit | 9748c9bd54e278e65a29dff6c78fba5b1534ac00 (patch) | |
tree | db0180d1ee5a5b17b2f35f92497ca227419d4366 /src/dotty/tools/dotc/typer/Checking.scala | |
parent | 85044e451ea99ef49fe2348148bdd4296b1db595 (diff) | |
download | dotty-9748c9bd54e278e65a29dff6c78fba5b1534ac00.tar.gz dotty-9748c9bd54e278e65a29dff6c78fba5b1534ac00.tar.bz2 dotty-9748c9bd54e278e65a29dff6c78fba5b1534ac00.zip |
Changed first phase normalization and improvements to TreeTransform
Two improvements to TreeTransform:
1) Added transformOther functionality which handles trees not handled by other parts
2) Passes down Mode.Pattern in the context when in a pattern.
TreeTransform no longer normalizes unknown trees but passes them to transformOther.
The former Companions phase has been renamed to FirstTransform. It now performs the
following optimizations:
- adds companion objects (this was done before)
- other normalizations that were formally done in TreeTransform,
- rewrite native methods to stubs (this was formally done in RefChecks)
Diffstat (limited to 'src/dotty/tools/dotc/typer/Checking.scala')
0 files changed, 0 insertions, 0 deletions