From: Juerg Billeter Date: Mon, 14 Apr 2008 20:04:19 +0000 (+0000) Subject: improve error handling, fixes bug 528073 X-Git-Tag: VALA_0_3_1~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc779f633624bf699d667000644e59ae848a808d;p=platform%2Fupstream%2Fvala.git improve error handling, fixes bug 528073 2008-04-14 Juerg Billeter * vala/valaparser.vala: improve error handling, fixes bug 528073 svn path=/trunk/; revision=1230 --- diff --git a/ChangeLog b/ChangeLog index 0bf97f0..d570152 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-14 Jürg Billeter + * vala/valaparser.vala: improve error handling, fixes bug 528073 + +2008-04-14 Jürg Billeter + * vala/valasemanticanalyzer.vala: report warning when using null literal as argument for non-null parameter diff --git a/vala/valaparser.vala b/vala/valaparser.vala index d852044..2ede5bb 100644 --- a/vala/valaparser.vala +++ b/vala/valaparser.vala @@ -2048,7 +2048,8 @@ public class Vala.Parser : CodeVisitor { expect (TokenType.OPEN_PARENS); if (current () != TokenType.CLOSE_PARENS) { do { - method.add_parameter (parse_parameter ()); + var param = parse_parameter (); + method.add_parameter (param); } while (accept (TokenType.COMMA)); } expect (TokenType.CLOSE_PARENS); @@ -2541,7 +2542,8 @@ public class Vala.Parser : CodeVisitor { expect (TokenType.OPEN_PARENS); if (current () != TokenType.CLOSE_PARENS) { do { - method.add_parameter (parse_parameter ()); + var param = parse_parameter (); + method.add_parameter (param); } while (accept (TokenType.COMMA)); } expect (TokenType.CLOSE_PARENS); @@ -2579,7 +2581,8 @@ public class Vala.Parser : CodeVisitor { expect (TokenType.OPEN_PARENS); if (current () != TokenType.CLOSE_PARENS) { do { - d.add_parameter (parse_parameter ()); + var param = parse_parameter (); + d.add_parameter (param); } while (accept (TokenType.COMMA)); } expect (TokenType.CLOSE_PARENS);