[vala/staging] parser: Make sure ErrorCodes are accessible as needed
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] parser: Make sure ErrorCodes are accessible as needed
- Date: Sat, 23 Oct 2021 13:51:19 +0000 (UTC)
commit 876ace8ce50c4112ced7bca529caf2205adced2e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 23 15:27:12 2021 +0200
parser: Make sure ErrorCodes are accessible as needed
vala/valagenieparser.vala | 1 +
vala/valaparser.vala | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index 43ff863de..aacbaceca 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -3515,6 +3515,7 @@ public class Vala.Genie.Parser : CodeVisitor {
string id = parse_identifier ();
comment = scanner.pop_comment ();
var ec = new ErrorCode (id, get_src (code_begin), comment);
+ ec.access = SymbolAccessibility.PUBLIC;
set_attributes (ec, code_attrs);
if (accept (TokenType.ASSIGN)) {
ec.value = parse_expression ();
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index afbf9bf89..f71f6e89c 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -3469,6 +3469,7 @@ public class Vala.Parser : CodeVisitor {
}
var ec = new ErrorCode (id, get_src (code_begin), comment);
+ ec.access = SymbolAccessibility.PUBLIC;
set_attributes (ec, code_attrs);
if (accept (TokenType.ASSIGN)) {
ec.value = parse_expression ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]