[vala/wip/fast-vapi: 2/7] parser: Set correct end source-location for Block



commit 5d7b263dfc99b05cdbf6a8138ed6ff4886d8bb65
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 9216b1c16..491353dc9 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -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;
        }


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