|
@@ -367,9 +367,19 @@ String BindingsGenerator::bbcode_to_xml(const String &p_bbcode, const TypeInterf
|
|
}
|
|
}
|
|
|
|
|
|
if (target_itype) {
|
|
if (target_itype) {
|
|
- xml_output.append("<see cref=\"" BINDINGS_NAMESPACE ".");
|
|
|
|
- xml_output.append(target_itype->proxy_name);
|
|
|
|
- xml_output.append("\"/>");
|
|
|
|
|
|
+ if ((!p_itype || p_itype->api_type == ClassDB::API_CORE) && target_itype->api_type == ClassDB::API_EDITOR) {
|
|
|
|
+ // Editor references in core documentation cannot be resolved,
|
|
|
|
+ // handle as standard codeblock.
|
|
|
|
+ _log("Cannot reference editor type '%s' in documentation for core type '%s'\n",
|
|
|
|
+ target_itype->proxy_name.utf8().get_data(), p_itype ? p_itype->proxy_name.utf8().get_data() : "@GlobalScope");
|
|
|
|
+ xml_output.append("<c>");
|
|
|
|
+ xml_output.append(target_itype->proxy_name);
|
|
|
|
+ xml_output.append("</c>");
|
|
|
|
+ } else {
|
|
|
|
+ xml_output.append("<see cref=\"" BINDINGS_NAMESPACE ".");
|
|
|
|
+ xml_output.append(target_itype->proxy_name);
|
|
|
|
+ xml_output.append("\"/>");
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
ERR_PRINT("Cannot resolve type reference in documentation: '" + tag + "'.");
|
|
ERR_PRINT("Cannot resolve type reference in documentation: '" + tag + "'.");
|
|
|
|
|