src/compiler/Parser.cpp
changeset 247 7721042bdb67
parent 243 3d94c73a824c
child 251 ca99a81745fe
     1.1 --- a/src/compiler/Parser.cpp	Thu Dec 27 21:07:03 2012 -0800
     1.2 +++ b/src/compiler/Parser.cpp	Fri Dec 28 17:13:51 2012 -0800
     1.3 @@ -920,7 +920,7 @@
     1.4      }
     1.5  
     1.6      // Create a fake-o block with no scope to create a statement list.
     1.7 -    return new (pool_) BlockStatement(decl->pos(), statements);
     1.8 +    return new (pool_) BlockStatement(decl->pos(), statements, TOK_NEW);
     1.9  }
    1.10  
    1.11  Statement *
    1.12 @@ -970,7 +970,7 @@
    1.13              return NULL;
    1.14      }
    1.15  
    1.16 -    BlockStatement *block = new (pool_) BlockStatement(pos, statements);
    1.17 +    BlockStatement *block = new (pool_) BlockStatement(pos, statements, TOK_LBRACE);
    1.18      return block;
    1.19  }
    1.20