diff options
author | Martin Odersky <odersky@gmail.com> | 2015-09-08 10:39:44 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-09-14 13:36:14 +0200 |
commit | 8a538ce728ed61c42ddb66f196dd217b8451bf9e (patch) | |
tree | 2241b2c4fe94918f38e23ac30d6ed5b64e479651 /src/dotty/tools/dotc/ast/TreeInfo.scala | |
parent | 8fc5835ca13ef5ab47b29d5240d5e8d79a870b7c (diff) | |
download | dotty-8a538ce728ed61c42ddb66f196dd217b8451bf9e.tar.gz dotty-8a538ce728ed61c42ddb66f196dd217b8451bf9e.tar.bz2 dotty-8a538ce728ed61c42ddb66f196dd217b8451bf9e.zip |
Move literalize functionality to PostTyper
Now, PostTyper replaces constant expressions with literals. If we wait any longer
then any tree rewriting of an application node would have to do constant folding again,
which is a hassle.
With the previous late Literalize phase, constant expressions consisting of operations
and arguments lost their constantness in PostTyper.
Diffstat (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala')
0 files changed, 0 insertions, 0 deletions