[vala/staging] parser: Include INTERR token in source_reference of parsed types
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] parser: Include INTERR token in source_reference of parsed types
- Date: Thu, 15 Apr 2021 14:50:32 +0000 (UTC)
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]