[vala/wip/issue/987] fix



commit 28147f8015f81191e9508a74eec01bfb81e36a8a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun May 10 19:49:45 2020 +0200

    fix

 vala/valaparser.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 637ea36a0..fe6991e43 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -418,8 +418,6 @@ public class Vala.Parser : CodeVisitor {
        }
 
        void skip_type () throws ParseError {
-               var begin = get_location ();
-
                accept (TokenType.DYNAMIC);
                accept (TokenType.OWNED);
                accept (TokenType.UNOWNED);
@@ -459,7 +457,7 @@ public class Vala.Parser : CodeVisitor {
                        var token = previous ();
                        // decide if this could be an incomplete member-access
                        if (token == TokenType.DOT || token == TokenType.DOUBLE_COLON) {
-                               rollback (begin);
+                               prev ();
                        } else {
                                throw e;
                        }


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