From f07829f61213513d2800fe943c36f566da65452d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 13 Nov 2012 21:10:07 +0100 Subject: Fix source reference of switch sections --- vala/valaparser.vala | 1 + 1 file changed, 1 insertion(+) (limited to 'vala/valaparser.vala') 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)) { -- cgit v1.2.1