Browse Source

added TDone and TThrow

Nicolas Cannasse 20 years ago
parent
commit
97ba89da8e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      type.ml

+ 3 - 0
type.ml

@@ -35,6 +35,7 @@ and tconstant =
 	| TNull
 	| TThis
 	| TSuper
+	| TDone
 
 and tfunc = {
 	tf_args : (string * t) list;
@@ -69,6 +70,7 @@ and texpr_expr =
 	| TBreak
 	| TContinue
 	| TMatch of tenum * string * (string * t) list option
+	| TThrow of texpr
 
 and texpr = {
 	eexpr : texpr_expr;
@@ -311,6 +313,7 @@ let rec iter f e =
 	| TWhile (e1,e2,_) ->
 		f e1;
 		f e2;
+	| TThrow e
 	| TField (e,_)
 	| TParenthesis e
 	| TUnop (_,_,e) ->