[vala/0.36] parser: Implicit creation method of abstract classes must be protected
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36] parser: Implicit creation method of abstract classes must be protected
- Date: Wed, 10 Apr 2019 13:24:53 +0000 (UTC)
commit 113f02c7835c220a8429ce090f029e18e75bd02d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 12 10:18:03 2019 +0100
parser: Implicit creation method of abstract classes must be protected
vala/valagenieparser.vala | 2 +-
vala/valaparser.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index dcbe3023d..5b2aa73f9 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -2693,7 +2693,7 @@ public class Vala.Genie.Parser : CodeVisitor {
if (scanner.source_file.file_type == SourceFileType.SOURCE
&& cl.default_construction_method == null) {
var m = new CreationMethod (cl.name, null, cl.source_reference);
- m.access = SymbolAccessibility.PUBLIC;
+ m.access = (cl.is_abstract ? SymbolAccessibility.PROTECTED :
SymbolAccessibility.PUBLIC);
m.body = new Block (cl.source_reference);
cl.add_method (m);
}
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index dd0e50d5d..9827f0f2c 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2527,7 +2527,7 @@ public class Vala.Parser : CodeVisitor {
if (scanner.source_file.file_type == SourceFileType.SOURCE
&& cl.default_construction_method == null) {
var m = new CreationMethod (cl.name, null, cl.source_reference);
- m.access = SymbolAccessibility.PUBLIC;
+ m.access = (cl.is_abstract ? SymbolAccessibility.PROTECTED :
SymbolAccessibility.PUBLIC);
m.body = new Block (cl.source_reference);
cl.add_method (m);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]