[vala/wip/fast-vapi] parser: Use correct end source-location for Block
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/fast-vapi] parser: Use correct end source-location for Block
- Date: Tue, 9 Apr 2019 20:30:34 +0000 (UTC)
commit c1186a2ef564afe0c3cbcca08d459b3f8ffbc879
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Apr 9 22:27:53 2019 +0200
parser: Use correct end source-location for Block
The source-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]