[vala/wip/fast-vapi: 2/7] parser: Set correct end source-location for Block
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/fast-vapi: 2/7] parser: Set correct end source-location for Block
- Date: Wed, 10 Apr 2019 12:22:28 +0000 (UTC)
commit 5d7b263dfc99b05cdbf6a8138ed6ff4886d8bb65
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Apr 10 14:12:21 2019 +0200
parser: Set correct end source-location for Block
This location was off by one token.
vala/valaparser.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 9216b1c16..491353dc9 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -1769,7 +1769,7 @@ public class Vala.Parser : CodeVisitor {
}
}
- block.source_reference.end = get_current_src ().end;
+ block.source_reference.end = get_last_src ().end;
return block;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]