[vala/staging] Mark defined constructors of abstract classes as protected
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] Mark defined constructors of abstract classes as protected
- Date: Tue, 12 Mar 2019 10:26:47 +0000 (UTC)
commit 58dc4440cf6e2afe589fd560f4d1781953bec357
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 +-
vala/valaobjecttypesymbol.vala | 2 +-
vala/valasymbol.vala | 2 +-
vala/valatypesymbol.vala | 2 +-
vala/valavaluetype.vala | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index acbb763ce..cc3a03f7a 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -352,7 +352,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 69bec622a..5b344bbf8 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 (Vala.CodeNode? data) {
+ protected Item (Vala.CodeNode? data) {
this.data = data;
}
diff --git a/libvaladoc/api/node.vala b/libvaladoc/api/node.vala
index 298ff0f7b..079c7ee44 100644
--- a/libvaladoc/api/node.vala
+++ b/libvaladoc/api/node.vala
@@ -50,7 +50,7 @@ public abstract class Valadoc.Api.Node : Item, Documentation {
private Vala.Map<NodeType, Vala.List<Node>> per_type_children;
- public Node (Node? parent, SourceFile? file, string? name, Vala.CodeNode? data) {
+ protected Node (Node? parent, SourceFile? file, string? name, Vala.CodeNode? 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 22466981e..b7fdd438d 100644
--- a/libvaladoc/api/symbol.vala
+++ b/libvaladoc/api/symbol.vala
@@ -35,7 +35,7 @@ public abstract class Valadoc.Api.Symbol : Node {
get;
}
- public Symbol (Node parent, SourceFile file, string? name, Vala.SymbolAccessibility accessibility,
+ protected Symbol (Node parent, SourceFile file, string? name, Vala.SymbolAccessibility accessibility,
SourceComment? comment, Vala.Symbol data)
{
base (parent, file, name, data);
diff --git a/libvaladoc/api/typesymbol.vala b/libvaladoc/api/typesymbol.vala
index 4891548a4..db7d947b0 100644
--- a/libvaladoc/api/typesymbol.vala
+++ b/libvaladoc/api/typesymbol.vala
@@ -26,7 +26,7 @@
* Represents a runtime data type.
*/
public abstract class Valadoc.Api.TypeSymbol : Symbol {
- public TypeSymbol (Node parent, SourceFile file, string name, Vala.SymbolAccessibility accessibility,
+ protected TypeSymbol (Node parent, SourceFile file, string name, Vala.SymbolAccessibility
accessibility,
SourceComment? comment, bool is_basic_type,
Vala.TypeSymbol 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/vala/valaobjecttypesymbol.vala b/vala/valaobjecttypesymbol.vala
index ce17d63c1..ad0de3ffe 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 3801c83c8..67484821b 100644
--- a/vala/valasymbol.vala
+++ b/vala/valasymbol.vala
@@ -197,7 +197,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 ce1d4ea30..3198ca046 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]