]> 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>
Wed, 28 Apr 2021 06:44:25 +0000 (08:44 +0200)
vala/valaparser.vala

index 41cd47698dc5ea155c7ca30f09a7e357aa13dec9..ef1ba339d75da3f5d0e0a7a2353344eada86eb5f 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);
                        }
                }