diff options
author | paltherr <paltherr@epfl.ch> | 2003-11-18 07:33:05 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-11-18 07:33:05 +0000 |
commit | 056ce01ce577180167af9f1ac4b6f1b046315245 (patch) | |
tree | e698c4419ae4d12efe783140f6e0823bf30c09dc | |
parent | bcd8a97b88d798245d3d4c621e0b9fbd222b31ff (diff) | |
download | scala-056ce01ce577180167af9f1ac4b6f1b046315245.tar.gz scala-056ce01ce577180167af9f1ac4b6f1b046315245.tar.bz2 scala-056ce01ce577180167af9f1ac4b6f1b046315245.zip |
- Added method type()
-rw-r--r-- | sources/scalac/ast/Tree.java.tmpl | 7 |
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; } |