[vala/0.52] parser: Make sure ErrorCodes are accessible as needed



commit 97fa0f08c491f12961ce02c667a52306beb3557a
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 fcfa33483..84f1f39a0 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -3440,6 +3440,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]