aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/ReTyper.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-09-25 17:04:22 +0200
committerMartin Odersky <odersky@gmail.com>2016-09-25 17:04:22 +0200
commit80cbe114cc5d641d66512c58402eca4ae69f9f2a (patch)
treec2d137266a0ae6c59e44e15f959f0ca070ec0b7c /src/dotty/tools/dotc/typer/ReTyper.scala
parent2d908c792fcf4287b4cb493f0e51dfbdb106cf69 (diff)
downloaddotty-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.scala6
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)