]> 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>
Tue, 6 Aug 2019 11:23:03 +0000 (13:23 +0200)
This location was off by one token.

vala/valaparser.vala

index 9827f0f2c94deee80557adee3d177cf9f26bc445..f7f120ad5cbcefebff62ec28410eb62fd2340bc2 100644 (file)
@@ -1755,7 +1755,7 @@ public class Vala.Parser : CodeVisitor {
                        }
                }
 
-               block.source_reference.end = get_current_src ().end;
+               block.source_reference.end = get_last_src ().end;
 
                return block;
        }