diff options
author | Martin Odersky <odersky@gmail.com> | 2003-07-11 13:02:40 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-07-11 13:02:40 +0000 |
commit | ca9f4fbb7b1212cfcde866ee95957afc6d157943 (patch) | |
tree | 20ef511d9ccb659a8d876477120994bea680e1d2 /sources/meta/scalac | |
parent | 319090d57b6736033c0e635da83ff571df5bd1d0 (diff) | |
download | scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.tar.gz scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.tar.bz2 scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.zip |
*** empty log message ***
Diffstat (limited to 'sources/meta/scalac')
-rw-r--r-- | sources/meta/scalac/ast/Tree.java | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sources/meta/scalac/ast/Tree.java b/sources/meta/scalac/ast/Tree.java index 7d6568cbe6..9f0af9759a 100644 --- a/sources/meta/scalac/ast/Tree.java +++ b/sources/meta/scalac/ast/Tree.java @@ -102,7 +102,10 @@ public class Tree { n_SelectFromType = node("SelectFromType", Type, HasSym), n_FunType = node("FunType" , Type, NoSym), n_CompoundType = node("CompoundType" , Type, NoSym), - n_AppliedType = node("AppliedType" , Type, NoSym); + n_AppliedType = node("AppliedType" , Type, NoSym), + n_Try = node("Try" , Term, NoSym), + n_While = node("While" , Term, NoSym), + n_DoUntil = node("DoUntil" , Term, NoSym); public final TreeNode[] nodes; public int arrays; @@ -336,6 +339,24 @@ public class Tree { addField(t_TypeTree, "tpe"). addField(t_TypeTrees, "args"); + n_Try. + setDescription("Try Expression"). + setRange(Phase.PARSER, Phase.END). + addField(t_TermTree, "block"). + addField(t_TermTree, "catcher"). + addField(t_TermTree, "finalizer"); + + n_While. + setDescription("While Loop"). + setRange(Phase.PARSER, Phase.END). + addField(t_TermTree, "cond"). + addField(t_TermTree, "block"); + + n_DoUntil. + setDescription("Do-Until Loop"). + setRange(Phase.PARSER, Phase.END). + addField(t_TermTree, "block"). + addField(t_TermTree, "cond"); } //######################################################################## |