summaryrefslogtreecommitdiff
path: root/vala/valaparser.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2012-11-13 21:10:07 +0100
committerJürg Billeter <j@bitron.ch>2012-11-13 21:10:07 +0100
commitf07829f61213513d2800fe943c36f566da65452d (patch)
treee0cd6c1007ba2e8ba21df6ade63eaefd60ed69d7 /vala/valaparser.vala
parent7575dfa68386c20f2c392fafb9ee3e662ff3751a (diff)
downloadvala-f07829f61213513d2800fe943c36f566da65452d.tar.gz
Fix source reference of switch sections
Diffstat (limited to 'vala/valaparser.vala')
-rw-r--r--vala/valaparser.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index c2e62807c..9f090f3ed 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -1811,6 +1811,7 @@ public class Vala.Parser : CodeVisitor {
var stmt = new SwitchStatement (condition, get_src (begin));
expect (TokenType.OPEN_BRACE);
while (current () != TokenType.CLOSE_BRACE) {
+ begin = get_location ();
var section = new SwitchSection (get_src (begin));
do {
if (accept (TokenType.CASE)) {