diff options
author | Martin Odersky <odersky@gmail.com> | 2016-09-25 17:04:22 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-09-25 17:04:22 +0200 |
commit | 80cbe114cc5d641d66512c58402eca4ae69f9f2a (patch) | |
tree | c2d137266a0ae6c59e44e15f959f0ca070ec0b7c /src/dotty/tools/dotc/typer/ReTyper.scala | |
parent | 2d908c792fcf4287b4cb493f0e51dfbdb106cf69 (diff) | |
download | dotty-80cbe114cc5d641d66512c58402eca4ae69f9f2a.tar.gz dotty-80cbe114cc5d641d66512c58402eca4ae69f9f2a.tar.bz2 dotty-80cbe114cc5d641d66512c58402eca4ae69f9f2a.zip |
Get rid of SelectFromType tree node.
Roll its functionality into Select. Since we can always
tell whether a tree is a type or term there is no expressiveness
gained by having a separate tree node.
Diffstat (limited to 'src/dotty/tools/dotc/typer/ReTyper.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/ReTyper.scala | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/dotty/tools/dotc/typer/ReTyper.scala b/src/dotty/tools/dotc/typer/ReTyper.scala index a4f92271a..9750957bf 100644 --- a/src/dotty/tools/dotc/typer/ReTyper.scala +++ b/src/dotty/tools/dotc/typer/ReTyper.scala @@ -38,12 +38,6 @@ class ReTyper extends Typer { untpd.cpy.Select(tree)(qual1, tree.name).withType(tree.typeOpt) } - override def typedSelectFromTypeTree(tree: untpd.SelectFromTypeTree, pt: Type)(implicit ctx: Context): Tree = { - assert(tree.hasType) - val qual1 = typed(tree.qualifier, AnySelectionProto) - untpd.cpy.SelectFromTypeTree(tree)(qual1, tree.name).withType(tree.typeOpt) - } - override def typedLiteral(tree: untpd.Literal)(implicit ctc: Context): Literal = promote(tree) |