--- parser3/src/main/compile.tab.C 2008/09/02 16:14:44 1.123 +++ parser3/src/main/compile.tab.C 2009/04/17 12:19:34 1.125 @@ -132,7 +132,7 @@ Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.tab.C,v 1.123 2008/09/02 16:14:44 misha Exp $ + $Id: compile.tab.C,v 1.125 2009/04/17 12:19:34 misha Exp $ */ /** @@ -1575,9 +1575,8 @@ yyreduce: *locals_names+=local_name; } } - if(!all_vars_local && PC.cclass && PC.cclass->is_vars_local()){ + if(!all_vars_local && PC.cclass && PC.cclass->is_vars_local()) all_vars_local=true; - } Method* method=new Method( //name, @@ -1593,14 +1592,15 @@ yyreduce: break; case 18: -#line 292 "compile.y" +#line 291 "compile.y" { - Method& method=*reinterpret_cast(yyvsp[-1]); - // fill in the code - method.parser_code=yyvsp[0]; - // register in class - const String& name=*LA2S(*yyvsp[-6]); - PC.cclass->add_method(PC.alias_method(name), method); + Method& method=*reinterpret_cast(yyvsp[-1]); + // fill in the code + method.parser_code=yyvsp[0]; + + // register in class + const String& name=*LA2S(*yyvsp[-6]); + PC.cclass->add_method(PC.alias_method(name), method); ;} break;