[vala/0.40] Mark defined constructors of abstract classes as protected
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] Mark defined constructors of abstract classes as protected
- Date: Tue, 9 Apr 2019 13:48:15 +0000 (UTC)
commit 6c0c40e0ff2527a994bdae488316dbf8e7a8a359
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 12 10:06:11 2019 +0100
Mark defined constructors of abstract classes as protected
codegen/valaccodebasemodule.vala | 2 +-
libvaladoc/api/item.vala | 2 +-
libvaladoc/api/node.vala | 2 +-
libvaladoc/api/symbol.vala | 2 +-
libvaladoc/api/typesymbol.vala | 2 +-
libvaladoc/content/inlinetaglet.vala | 2 +-
libvaladoc/importer/documentationimporter.vala | 2 +-
tests/asynchronous/generator.vala | 2 +-
tests/chainup/bug791785.vala | 2 +-
vala/valaobjecttypesymbol.vala | 2 +-
vala/valasymbol.vala | 2 +-
vala/valatypesymbol.vala | 2 +-
vala/valavaluetype.vala | 2 +-
13 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index a0a1c3256..ad5f10f05 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -349,7 +349,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
public static int ccode_attribute_cache_index = CodeNode.get_attribute_cache_index ();
- public CCodeBaseModule () {
+ protected CCodeBaseModule () {
predefined_marshal_set = new HashSet<string> (str_hash, str_equal);
predefined_marshal_set.add ("VOID:VOID");
predefined_marshal_set.add ("VOID:BOOLEAN");
diff --git a/libvaladoc/api/item.vala b/libvaladoc/api/item.vala
index 60967a7c1..baa9c4007 100644
--- a/libvaladoc/api/item.vala
+++ b/libvaladoc/api/item.vala
@@ -42,7 +42,7 @@ public abstract class Valadoc.Api.Item : Object {
get;
}
- public Item (void* data) {
+ protected Item (void* data) {
this.data = data;
}
diff --git a/libvaladoc/api/node.vala b/libvaladoc/api/node.vala
index 45684ae8b..edea58d7a 100644
--- a/libvaladoc/api/node.vala
+++ b/libvaladoc/api/node.vala
@@ -50,7 +50,7 @@ public abstract class Valadoc.Api.Node : Item, Browsable, Documentation {
private Vala.Map<NodeType, Vala.List<Node>> per_type_children;
- public Node (Node? parent, SourceFile? file, string? name, void* data) {
+ protected Node (Node? parent, SourceFile? file, string? name, void* data) {
base (data);
per_name_children = new Vala.HashMap<string, Node> (str_hash, str_equal);
diff --git a/libvaladoc/api/symbol.vala b/libvaladoc/api/symbol.vala
index 020c28ab1..32ab65047 100644
--- a/libvaladoc/api/symbol.vala
+++ b/libvaladoc/api/symbol.vala
@@ -34,7 +34,7 @@ public abstract class Valadoc.Api.Symbol : Node {
get;
}
- public Symbol (Node parent, SourceFile file, string? name, SymbolAccessibility accessibility,
+ protected Symbol (Node parent, SourceFile file, string? name, SymbolAccessibility accessibility,
void* data)
{
base (parent, file, name, data);
diff --git a/libvaladoc/api/typesymbol.vala b/libvaladoc/api/typesymbol.vala
index c7274ba01..879e667a3 100644
--- a/libvaladoc/api/typesymbol.vala
+++ b/libvaladoc/api/typesymbol.vala
@@ -32,7 +32,7 @@ public abstract class Valadoc.Api.TypeSymbol : Symbol {
private string? type_cast_macro_name;
private string? type_function_name;
- public TypeSymbol (Node parent, SourceFile file, string name, SymbolAccessibility accessibility,
+ protected TypeSymbol (Node parent, SourceFile file, string name, SymbolAccessibility accessibility,
SourceComment? comment, string? type_macro_name, string?
is_type_macro_name,
string? type_cast_macro_name, string? type_function_name, bool
is_basic_type,
void* data)
diff --git a/libvaladoc/content/inlinetaglet.vala b/libvaladoc/content/inlinetaglet.vala
index ad6c7a719..b28c7597c 100644
--- a/libvaladoc/content/inlinetaglet.vala
+++ b/libvaladoc/content/inlinetaglet.vala
@@ -27,7 +27,7 @@ public abstract class Valadoc.Content.InlineTaglet : ContentElement, Taglet, Inl
protected ResourceLocator locator;
private ContentElement _content;
- public InlineTaglet () {
+ protected InlineTaglet () {
base ();
}
diff --git a/libvaladoc/importer/documentationimporter.vala b/libvaladoc/importer/documentationimporter.vala
index 2701571d7..92737dc73 100644
--- a/libvaladoc/importer/documentationimporter.vala
+++ b/libvaladoc/importer/documentationimporter.vala
@@ -28,7 +28,7 @@ public abstract class Valadoc.Importer.DocumentationImporter : Object, ResourceL
public abstract string file_extension { get; }
- public DocumentationImporter (Api.Tree tree, ModuleLoader modules, Settings settings) {
+ protected DocumentationImporter (Api.Tree tree, ModuleLoader modules, Settings settings) {
this.settings = settings;
this.modules = null;
this.tree = tree;
diff --git a/tests/asynchronous/generator.vala b/tests/asynchronous/generator.vala
index f31e12a42..2c3654b56 100644
--- a/tests/asynchronous/generator.vala
+++ b/tests/asynchronous/generator.vala
@@ -7,7 +7,7 @@ abstract class Generator<G> {
unowned G value;
SourceFunc callback;
- public Generator () {
+ protected Generator () {
helper.begin ();
}
diff --git a/tests/chainup/bug791785.vala b/tests/chainup/bug791785.vala
index eb46b0141..608de6b0e 100644
--- a/tests/chainup/bug791785.vala
+++ b/tests/chainup/bug791785.vala
@@ -5,7 +5,7 @@ struct Foo {
abstract class AbstractBar {
public Foo foo;
- public AbstractBar (Foo foo) {
+ protected AbstractBar (Foo foo) {
this.foo = foo;
}
}
diff --git a/vala/valaobjecttypesymbol.vala b/vala/valaobjecttypesymbol.vala
index aca53ed00..f91c6ba5d 100644
--- a/vala/valaobjecttypesymbol.vala
+++ b/vala/valaobjecttypesymbol.vala
@@ -47,7 +47,7 @@ public abstract class Vala.ObjectTypeSymbol : TypeSymbol {
private List<Constant> constants = new ArrayList<Constant> ();
- public ObjectTypeSymbol (string name, SourceReference? source_reference = null, Comment? comment =
null) {
+ protected ObjectTypeSymbol (string name, SourceReference? source_reference = null, Comment? comment =
null) {
base (name, source_reference, comment);
}
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala
index c9f7d1e93..02755db76 100644
--- a/vala/valasymbol.vala
+++ b/vala/valasymbol.vala
@@ -192,7 +192,7 @@ public abstract class Vala.Symbol : CodeNode {
private weak Scope _owner;
private Scope _scope;
- public Symbol (string? name, SourceReference? source_reference, Comment? comment = null) {
+ protected Symbol (string? name, SourceReference? source_reference, Comment? comment = null) {
this.name = name;
this.source_reference = source_reference;
this.comment = comment;
diff --git a/vala/valatypesymbol.vala b/vala/valatypesymbol.vala
index 8ba3aef57..f84b53f5f 100644
--- a/vala/valatypesymbol.vala
+++ b/vala/valatypesymbol.vala
@@ -29,7 +29,7 @@ using GLib;
* code or imported from an external library with a Vala API file.
*/
public abstract class Vala.TypeSymbol : Symbol {
- public TypeSymbol (string? name, SourceReference? source_reference = null, Comment? comment = null) {
+ protected TypeSymbol (string? name, SourceReference? source_reference = null, Comment? comment =
null) {
base (name, source_reference, comment);
}
diff --git a/vala/valavaluetype.vala b/vala/valavaluetype.vala
index d78af9960..ed1225d6d 100644
--- a/vala/valavaluetype.vala
+++ b/vala/valavaluetype.vala
@@ -31,7 +31,7 @@ public abstract class Vala.ValueType : DataType {
*/
public weak TypeSymbol type_symbol { get; set; }
- public ValueType (TypeSymbol type_symbol) {
+ protected ValueType (TypeSymbol type_symbol) {
this.type_symbol = type_symbol;
data_type = type_symbol;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]