diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-12 10:06:11 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-12 12:01:30 +0100 |
commit | ea77a7438208be1f0d1e1c1b1b3257f657d919df (patch) | |
tree | 1d6b7bfcf82e00036c1dec37ed4a8bdbac3fa460 | |
parent | 2bd25b65a406a9669e2d9142d748917350aeec25 (diff) | |
download | vala-ea77a7438208be1f0d1e1c1b1b3257f657d919df.tar.gz |
Mark defined constructors of abstract classes as protected
-rw-r--r-- | codegen/valaccodebasemodule.vala | 2 | ||||
-rw-r--r-- | libvaladoc/api/item.vala | 2 | ||||
-rw-r--r-- | libvaladoc/api/node.vala | 2 | ||||
-rw-r--r-- | libvaladoc/api/symbol.vala | 2 | ||||
-rw-r--r-- | libvaladoc/api/typesymbol.vala | 2 | ||||
-rw-r--r-- | libvaladoc/content/inlinetaglet.vala | 2 | ||||
-rw-r--r-- | libvaladoc/importer/documentationimporter.vala | 2 | ||||
-rw-r--r-- | tests/asynchronous/generator.vala | 2 | ||||
-rw-r--r-- | tests/chainup/bug791785.vala | 2 | ||||
-rw-r--r-- | vala/valaobjecttypesymbol.vala | 2 | ||||
-rw-r--r-- | vala/valasymbol.vala | 2 | ||||
-rw-r--r-- | vala/valatypesymbol.vala | 2 | ||||
-rw-r--r-- | vala/valavaluetype.vala | 2 |
13 files changed, 13 insertions, 13 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/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 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; } |