file.puts ( "protected " );
else if ( propac.is_private )
file.puts ( "private " );
+ else if ( propac.is_internal )
+ file.puts ( "internal " );
}
if ( propac.is_owned )
file.printf ( "<span class=\"%s\">protected</span> ", css_keyword );
else if ( element.is_private )
file.printf ( "<span class=\"%s\">private</span> ", css_keyword );
+ else if ( element.is_internal )
+ file.printf ( "<span class=\"%s\">internal</span> ", css_keyword );
}
else if (symbol.is_protected) {
return "protected ";
}
+ else if (symbol.is_internal) {
+ return "internal ";
+ }
else {
return "private ";
}
else if (propac.is_public) {
str.append ("public ");
}
- else {
+ else if (propac.is_protected) {
str.append ("protected ");
}
+ else {
+ str.append ("internal ");
+ }
if (propac.is_owned) {
str.append ("owned ");
public interface Valadoc.Visitable : Basic, SymbolAccessibility {
- protected bool is_type_visitor_accessible ( Valadoc.Basic element ) {
- if ( !this.settings._private && this.is_private )
+ protected bool is_type_visitor_accessible (Valadoc.Basic element) {
+ if (!this.settings._private && this.is_private)
return false;
- if ( !this.settings._protected && this.is_protected )
+ if (!this.settings._internal && this.is_internal)
return false;
- if ( this.parent != element && !this.settings.add_inherited )
+ if (!this.settings._protected && this.is_protected)
+ return false;
+
+ if (this.parent != element && !this.settings.add_inherited)
return false;
return true;
}
public bool is_visitor_accessible ( ) {
- if ( !this.settings._private && this.is_private )
+ if (!this.settings._private && this.is_private)
+ return false;
+
+ if (!this.settings._internal && this.is_internal)
return false;
- if ( !this.settings._protected && this.is_protected )
+ if (!this.settings._protected && this.is_protected)
return false;
return true;
public bool is_protected {
get {
Vala.SymbolAccessibility access = vsymbol.access;
- return ( access == Vala.SymbolAccessibility.PROTECTED );
+ return (access == Vala.SymbolAccessibility.PROTECTED);
+ }
+ }
+
+ public bool is_internal {
+ get {
+ Vala.SymbolAccessibility access = vsymbol.access;
+ return (access == Vala.SymbolAccessibility.INTERNAL);
}
}
public bool is_private {
get {
Vala.SymbolAccessibility access = vsymbol.access;
- return ( access == Vala.SymbolAccessibility.PRIVATE );
+ return (access == Vala.SymbolAccessibility.PRIVATE);
}
}
}
}
}
+ public bool is_internal {
+ get {
+ return this.vpropacc.access == Vala.SymbolAccessibility.INTERNAL;
+ }
+ }
+
public bool is_set {
get {
return this.vpropacc.writable;
public bool _private = false;
public bool _protected = false;
+ public bool _internal = false;
public bool with_deps = false;
public bool add_inherited = false;
public bool verbose = false;
private static bool add_inherited = false;
private static bool _protected = false;
+ private static bool _internal = false;
private static bool with_deps = false;
private static bool _private = false;
private static bool version = false;
{ "doclet", 0, 0, OptionArg.STRING, ref pluginpath, "plugin", "Name of an included doclet or path to custom doclet" },
{ "protected", 0, 0, OptionArg.NONE, ref _protected, "Adds protected elements to documentation", null },
+ { "internal", 0, 0, OptionArg.NONE, ref _internal, "Adds internal elements to documentation", null },
{ "private", 0, 0, OptionArg.NONE, ref _private, "Adds private elements to documentation", null },
// { "inherit", 0, 0, OptionArg.NONE, ref add_inherited, "Adds inherited elements to a class", null },
{ "package-name", 0, 0, OptionArg.STRING, ref pkg_name, "package name", "DIRECTORY" },
settings.pkg_version = this.pkg_version;
settings.add_inherited = this.add_inherited;
settings._protected = this._protected;
+ settings._internal = this._internal;
settings.with_deps = this.with_deps;
settings._private = this._private;
settings.path = realpath (this.directory);