]> 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>
Tue, 6 Aug 2019 11:23:28 +0000 (13:23 +0200)
vala/valaparser.vala

index acc470fd1533c16c82f1e0a96cfeb3a01bcb6809..c0a3b203b98de3ac734abfeac5205a50862729f0 100644 (file)
@@ -1697,6 +1697,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;