diff options
author | Princeton Ferro <princetonferro@gmail.com> | 2020-01-11 22:33:05 -0500 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-01-13 08:48:04 +0100 |
commit | ea07220382d0055f7d9dade4e575c18121cab671 (patch) | |
tree | d843de658dc3d2e8e309ed7092c4e64157c14fbe | |
parent | 6f673c2c9768402cbfe5e206da9c3c0180e5a4b3 (diff) | |
download | vala-ea07220382d0055f7d9dade4e575c18121cab671.tar.gz |
parser: Extend source_reference of parenthesized expr to cover "( ... )"
-rw-r--r-- | vala/valaparser.vala | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |