[vala/0.44] parser: Set correct end source-reference of Block for embedded statement



commit 4aede4c8b6e2b84906988f1f507df75d8110aba2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Apr 11 07:32:24 2019 +0200

    parser: Set correct end source-reference of Block for embedded statement

 vala/valaparser.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 190725a85..10c42d6d6 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]