diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-23 15:27:12 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-23 15:27:12 +0200 |
commit | 876ace8ce50c4112ced7bca529caf2205adced2e (patch) | |
tree | f322b6ad400a3870b7f728960eeb729452d1bb90 | |
parent | 9bd5dce9d227fb79d28b6ac045fdba4a18e914ed (diff) | |
download | vala-876ace8ce50c4112ced7bca529caf2205adced2e.tar.gz |
parser: Make sure ErrorCodes are accessible as needed
-rw-r--r-- | vala/valagenieparser.vala | 1 | ||||
-rw-r--r-- | vala/valaparser.vala | 1 |
2 files changed, 2 insertions, 0 deletions
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 (); |