]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
parser: Set correct end source-reference of Block for embedded statement
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 11 Apr 2019 05:32:24 +0000 (07:32 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 11 Apr 2019 05:40:44 +0000 (07:40 +0200)
vala/valaparser.vala

index 190725a85c744a7f6511fcda5d006873d9407faa..10c42d6d65c34d599f9b30fa6ea36688fb2ecedc 100644 (file)
@@ -1710,6 +1710,7 @@ public class Vala.Parser : CodeVisitor {
 
                var stmt = parse_embedded_statement_without_block (statement_name, accept_empty_body);
                block.add_statement (stmt);
+               block.source_reference.end = get_last_src ().end;
 
                return block;