diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-01-31 17:43:54 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-01-31 17:43:54 +0300 |
commit | 83cb968965ddf78c824ca4b742c6aca0f593776d (patch) | |
tree | 35bab0e70a2cfe797cf7e7fa552cdbd3cf84ad47 /modules/gdscript/gdscript_analyzer.cpp | |
parent | e1648b3327431a09cc9498663fac483275eb711d (diff) | |
download | redot-engine-83cb968965ddf78c824ca4b742c6aca0f593776d.tar.gz |
GDScript: Fix `@icon` annotation
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index f788236af3..04d4259f3d 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -4708,11 +4708,6 @@ Ref<GDScriptParserRef> GDScriptAnalyzer::get_parser_for(const String &p_path) { } Error GDScriptAnalyzer::resolve_inheritance() { - // Apply annotations. - for (GDScriptParser::AnnotationNode *&E : parser->head->annotations) { - resolve_annotation(E); - E->apply(parser, parser->head); - } return resolve_class_inheritance(parser->head, true); } @@ -4746,6 +4741,12 @@ Error GDScriptAnalyzer::analyze() { return err; } + // Apply annotations. + for (GDScriptParser::AnnotationNode *&E : parser->head->annotations) { + resolve_annotation(E); + E->apply(parser, parser->head); + } + resolve_interface(); resolve_body(); if (!parser->errors.is_empty()) { |