diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-06 15:31:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-06 15:31:19 +0200 |
| commit | 635d447a69cea1bac19c8ffd2bfc38fc3753441d (patch) | |
| tree | 1a3c713560f2c895e1b7080782a6380ad3cad290 /modules/gdscript/gdscript_parser.cpp | |
| parent | ea61cd3b320b145fc0dffb7056c01b5672432d90 (diff) | |
| parent | a9098e6147d294378bf7c62fb10c83a0d2670b33 (diff) | |
| download | redot-engine-635d447a69cea1bac19c8ffd2bfc38fc3753441d.tar.gz | |
Merge pull request #62713 from YuriSizov/docs-scripting-annotations
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
| -rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 4e4f17f54b..11fa7575d8 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? |
