summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian_mono')
-rw-r--r--src/bin/eolian_mono/eolian/mono/documentation.hh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/documentation.hh b/src/bin/eolian_mono/eolian/mono/documentation.hh
index c00b449..764ecb8 100644
--- a/src/bin/eolian_mono/eolian/mono/documentation.hh
+++ b/src/bin/eolian_mono/eolian/mono/documentation.hh
@@ -135,6 +135,18 @@ struct documentation_generator
135 case ::EOLIAN_OBJECT_FUNCTION: 135 case ::EOLIAN_OBJECT_FUNCTION:
136 ref += function_conversion(data, (const ::Eolian_Function *)data2, name_tail); 136 ref += function_conversion(data, (const ::Eolian_Function *)data2, name_tail);
137 break; 137 break;
138 case ::EOLIAN_OBJECT_VARIABLE:
139 if (::eolian_variable_type_get((::Eolian_Variable *)data) == ::EOLIAN_VAR_CONSTANT)
140 {
141 auto names = utils::split(name_helpers::managed_namespace(::eolian_object_name_get(data)), '.');
142 names.pop_back(); // Remove var name
143 ref = name_helpers::join_namespaces(names, '.');
144 ref += "Constants.";
145 ref += name_helpers::managed_name(::eolian_object_short_name_get(data));
146 }
147 // Otherwise, do nothing and no <see> tag will be generated. Because, who would
148 // reference a global (non-constant) variable in the docs?
149 break;
138 case ::EOLIAN_OBJECT_UNKNOWN: 150 case ::EOLIAN_OBJECT_UNKNOWN:
139 // If the reference cannot be resolved, just return an empty string and 151 // If the reference cannot be resolved, just return an empty string and
140 // it won't be converted into a <see> tag. 152 // it won't be converted into a <see> tag.