fixed issue #2

This commit is contained in:
Nicolas Cannasse
2011-02-24 06:58:00 +00:00
parent 88371134be
commit a6038e7474
5 changed files with 58 additions and 16 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class Parser {
function isBlock(e) {
return switch( e ) {
case EBlock(_): true;
case EBlock(_), EObject(_): true;
case EFunction(_,e,_): isBlock(e);
case EVar(_,e): e != null && isBlock(e);
case EIf(_,e1,e2): if( e2 != null ) isBlock(e2) else isBlock(e1);