GDScript: Fix @icon annotation

This commit is contained in:
Danil Alexeev 2023-01-31 17:43:54 +03:00
parent e1648b3327
commit 83cb968965
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
4 changed files with 38 additions and 10 deletions

View file

@ -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()) {