[vala/staging] parser: Set correct end source-reference of Block for embedded statement
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] parser: Set correct end source-reference of Block for embedded statement
- Date: Thu, 11 Apr 2019 05:41:31 +0000 (UTC)
commit 922e7b985d6c1d45d08be31105f64dd1ff1c1c1f
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]