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



commit 9023a8d971dec66bf05279a060a7c843bc332e82
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 e85d45e6f..49336c94c 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]