summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2022-07-04 18:56:34 +0300
committerYuri Sizov <yuris@humnom.net>2022-07-04 20:21:39 +0300
commita9098e6147d294378bf7c62fb10c83a0d2670b33 (patch)
treeb7d87f569684700387592ca9679d16d82a0b5451 /modules/gdscript/gdscript_parser.cpp
parentb4644e283556b499a22dada2db5cff12290440ca (diff)
Add support for documenting built-in annotations
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index ca430b0f72..b69eef0a75 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -105,6 +105,10 @@ void GDScriptParser::get_annotation_list(List<MethodInfo> *r_annotations) const
}
}
+bool GDScriptParser::annotation_exists(const String &p_annotation_name) const {
+ return valid_annotations.has(p_annotation_name);
+}
+
GDScriptParser::GDScriptParser() {
// Register valid annotations.
// TODO: Should this be static?