[vala/0.50] parser: Include INTERR token in source_reference of parsed types



commit d393dd589a38b79b5386a174eefb6cce46b68a50
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Apr 15 16:49:14 2021 +0200

    parser: Include INTERR token in source_reference of parsed types

 vala/valaparser.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 41cd47698..ef1ba339d 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -539,6 +539,7 @@ public class Vala.Parser : CodeVisitor {
 
                        if (!(type is PointerType)) {
                                type.nullable = accept (TokenType.INTERR);
+                               type.source_reference = get_src (begin);
                        }
                }
 


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