]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
parser: Set correct end source-location for Block
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)
This location was off by one token.

vala/valaparser.vala

index 9216b1c160996bc1f5570fd6179fdba9884115f5..491353dc9cd28e21cba38cd89ab0c5986c14ce57 100644 (file)
@@ -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;
        }