}
-.main_other_type {
+.main_type {
text-decoration: none;
font-style: italic;
color: #000000;
}
.main_code_definition a, .leaf_code_definition a {
+ text-decoration: none;
color: inherit;
}
+
+.main_code_definition a:hover, .leaf_code_definition a:hover {
+ text-decoration: underline;
+}
+
}
-.main_other_type {
+.main_type {
text-decoration: none;
font-style: italic;
color: #000000;
}
.main_code_definition a, .leaf_code_definition a {
+ text-decoration: none;
color: inherit;
}
+
+.main_code_definition a:hover, .leaf_code_definition a:hover {
+ text-decoration: underline;
+}
+
}
-.main_other_type {
+.main_type {
text-decoration: none;
font-style: italic;
color: #000000;
}
public SignatureBuilder append_type (Node node, bool spaced = true) {
- Run inner = new Run (Run.Style.LANG_TYPE);
+ Run.Style style = Run.Style.LANG_TYPE;
+ if (node is TypeSymbol && ((TypeSymbol)node).is_basic_type) {
+ style = Run.Style.LANG_BASIC_TYPE;
+ }
+
+ Run inner = new Run (style);
inner.content.add (new SymbolLink (node, node.name));
return append_content (inner, spaced);
}
base (symbol, parent);
}
+ public bool is_basic_type {
+ get {
+ if (this.symbol is Vala.Struct) {
+ unowned Vala.Struct mystruct = (Vala.Struct) this.symbol;
+ return mystruct.base_type == null && (mystruct.is_boolean_type () || mystruct.is_floating_type () || mystruct.is_integer_type ());
+ } else if (this.symbol is Vala.Class) {
+ unowned Vala.Class myclass = (Vala.Class) this.symbol;
+ return myclass.base_class == null && myclass.name == "string";
+ }
+ return false;
+ }
+ }
+
protected override void process_comments (Settings settings, DocumentationParser parser) {
var source_comment = ((Vala.TypeSymbol) symbol).comment;
if (source_comment != null) {
STROKE,
LANG_KEYWORD,
LANG_LITERAL,
+ LANG_BASIC_TYPE,
LANG_TYPE
}
tag = "span";
css_type = "main_optional_parameter";
break;
- case Run.Style.LANG_TYPE:
+ case Run.Style.LANG_BASIC_TYPE:
tag = "span";
css_type = "main_basic_type";
break;
+ case Run.Style.LANG_TYPE:
+ tag = "span";
+ css_type = "main_type";
+ break;
}
if (tag != null) {
writer.start_tag (tag, {"class", css_type});