[vala/0.36] parser: Set correct end source-location for Block



commit 1c6b50b6417135c524f103032302e9954f98c6fc
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Apr 10 14:12:21 2019 +0200

    parser: Set correct end source-location for Block
    
    This location was off by one token.

 vala/valaparser.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 9827f0f2c..f7f120ad5 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -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;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]