summaryrefslogtreecommitdiff
path: root/sources/scalac/ast
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-11-18 07:33:05 +0000
committerpaltherr <paltherr@epfl.ch>2003-11-18 07:33:05 +0000
commit056ce01ce577180167af9f1ac4b6f1b046315245 (patch)
treee698c4419ae4d12efe783140f6e0823bf30c09dc /sources/scalac/ast
parentbcd8a97b88d798245d3d4c621e0b9fbd222b31ff (diff)
downloadscala-056ce01ce577180167af9f1ac4b6f1b046315245.tar.gz
scala-056ce01ce577180167af9f1ac4b6f1b046315245.tar.bz2
scala-056ce01ce577180167af9f1ac4b6f1b046315245.zip
- Added method type()
Diffstat (limited to 'sources/scalac/ast')
-rw-r--r--sources/scalac/ast/Tree.java.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/ast/Tree.java.tmpl b/sources/scalac/ast/Tree.java.tmpl
index dc5c93ed91..bbc034cf8c 100644
--- a/sources/scalac/ast/Tree.java.tmpl
+++ b/sources/scalac/ast/Tree.java.tmpl
@@ -60,7 +60,12 @@ public class Tree {
// Public Methods - tree type
/** Get the type of the node. */
- public Type getType() {
+ public final Type getType() {
+ return type();
+ }
+
+ /** Get the type of the node. */
+ public Type type() {
assert type != null : Debug.show(this);
return type;
}