summaryrefslogtreecommitdiffstats
path: root/core/doc_data.cpp
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-06-15 17:06:22 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-06-15 17:23:02 +0300
commiteb391d3302167157b02b007777dd552d0b4bcd70 (patch)
treebd26bf6312ca95a67ea5e0128b2356fc13056f6f /core/doc_data.cpp
parent824820d73a7a709f61950e74ff72392ab3f8be60 (diff)
downloadredot-engine-eb391d3302167157b02b007777dd552d0b4bcd70.tar.gz
Display `BitField[Enum]` in docs to distinguish from `Enum`
Diffstat (limited to 'core/doc_data.cpp')
-rw-r--r--core/doc_data.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/doc_data.cpp b/core/doc_data.cpp
index 2d909f5335..7549ba884e 100644
--- a/core/doc_data.cpp
+++ b/core/doc_data.cpp
@@ -51,6 +51,7 @@ void DocData::return_doc_from_retinfo(DocData::MethodDoc &p_method, const Proper
if (p_method.return_enum.begins_with("_")) { //proxy class
p_method.return_enum = p_method.return_enum.substr(1, p_method.return_enum.length());
}
+ p_method.return_is_bitfield = p_retinfo.usage & PROPERTY_USAGE_CLASS_IS_BITFIELD;
p_method.return_type = "int";
} else if (p_retinfo.class_name != StringName()) {
p_method.return_type = p_retinfo.class_name;
@@ -82,6 +83,7 @@ void DocData::argument_doc_from_arginfo(DocData::ArgumentDoc &p_argument, const
if (p_argument.enumeration.begins_with("_")) { //proxy class
p_argument.enumeration = p_argument.enumeration.substr(1, p_argument.enumeration.length());
}
+ p_argument.is_bitfield = p_arginfo.usage & PROPERTY_USAGE_CLASS_IS_BITFIELD;
p_argument.type = "int";
} else if (p_arginfo.class_name != StringName()) {
p_argument.type = p_arginfo.class_name;