2008-04-14 Jürg Billeter <j@bitron.ch>
+ * vala/valaparser.vala: improve error handling, fixes bug 528073
+
+2008-04-14 Jürg Billeter <j@bitron.ch>
+
* vala/valasemanticanalyzer.vala: report warning when using null
literal as argument for non-null parameter
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);
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);
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);