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



commit b0538d07f370dc073709626990ba2b5688d773ed
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 45e0d9729..a96d18031 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -3494,6 +3494,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 97406a957..33e6418cf 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -3326,6 +3326,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]