]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
parser: Include INTERR token in source_reference of parsed types
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)
vala/valaparser.vala

index e85d45e6fdb3b31ebbdc9ced9e2bbc26871f8a2d..49336c94ced05520f47361ff95da055cf9e7635d 100644 (file)
@@ -539,6 +539,7 @@ public class Vala.Parser : CodeVisitor {
 
                        if (!(type is PointerType)) {
                                type.nullable = accept (TokenType.INTERR);
+                               type.source_reference = get_src (begin);
                        }
                }