summaryrefslogtreecommitdiff
path: root/src/library/scala/reflect/base/Trees.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/reflect/base/Trees.scala')
-rw-r--r--src/library/scala/reflect/base/Trees.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/reflect/base/Trees.scala b/src/library/scala/reflect/base/Trees.scala
index ab03b7a89f..4e8a520625 100644
--- a/src/library/scala/reflect/base/Trees.scala
+++ b/src/library/scala/reflect/base/Trees.scala
@@ -34,6 +34,9 @@ trait Trees { self: Universe =>
/** Obtains string representation of a tree */
protected def treeToString(tree: Tree): String
+ /** Obtains the type of the tree (we intentionally don't expose `tree.tpe` in base) */
+ protected def treeType(tree: Tree): Type
+
/** Tree is the basis for scala's abstract syntax. The nodes are
* implemented as case classes, and the parameters which initialize
* a given tree are immutable: however Trees have several mutable