[vala/0.48] 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/0.48] parser: Include INTERR token in source_reference of parsed types
- Date: Wed, 28 Apr 2021 07:46:35 +0000 (UTC)
commit 138ab62857ec8085a295f39e85c8eebead3d99f4
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 5aad6c2ba..1424d3e2c 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -538,6 +538,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]