[vala/staging] parser: Extend source_reference of parenthesized expr to cover "( ... )"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] parser: Extend source_reference of parenthesized expr to cover "( ... )"
- Date: Tue, 14 Jan 2020 08:05:09 +0000 (UTC)
commit ea07220382d0055f7d9dade4e575c18121cab671
Author: Princeton Ferro <princetonferro gmail com>
Date: Sat Jan 11 22:33:05 2020 -0500
parser: Extend source_reference of parenthesized expr to cover "( ... )"
vala/valaparser.vala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 45a420955..a030d24f2 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -716,8 +716,11 @@ public class Vala.Parser : CodeVisitor {
tuple.add_expression (expr);
}
return tuple;
+ } else {
+ var expr = expr_list.get (0);
+ expr.source_reference = get_src (begin);
+ return expr;
}
- return expr_list.get (0);
}
Expression parse_template () throws ParseError {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]