diff options
author | Jürg Billeter <j@bitron.ch> | 2012-11-13 21:10:07 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-11-13 21:10:07 +0100 |
commit | f07829f61213513d2800fe943c36f566da65452d (patch) | |
tree | e0cd6c1007ba2e8ba21df6ade63eaefd60ed69d7 /vala/valaparser.vala | |
parent | 7575dfa68386c20f2c392fafb9ee3e662ff3751a (diff) | |
download | vala-f07829f61213513d2800fe943c36f566da65452d.tar.gz |
Fix source reference of switch sections
Diffstat (limited to 'vala/valaparser.vala')
-rw-r--r-- | vala/valaparser.vala | 1 |
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)) { |