[vala/0.40] parser: Extend source_reference of parenthesized expr to cover "( ... )"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] parser: Extend source_reference of parenthesized expr to cover "( ... )"
- Date: Wed, 5 Feb 2020 10:03:11 +0000 (UTC)
commit bf3c93b8f6ef87c70387e2e0268afb728d4c091b
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 8594c1c95..507464566 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -725,8 +725,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]