Add support for documenting built-in annotations

This commit is contained in:
Yuri Sizov 2022-07-04 18:56:34 +03:00
parent b4644e2835
commit a9098e6147
19 changed files with 462 additions and 17 deletions

View file

@ -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?