Skip to content

Commit

Permalink
Merge pull request #65264 from MewPurPur/all-hail-icon-annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Sep 2, 2022
2 parents c9b3d20 + 126901c commit e64eb12
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,17 +686,6 @@ void GDScriptParser::parse_class_name() {
current_class->identifier = parse_identifier();
}

// TODO: Move this to annotation
if (match(GDScriptTokenizer::Token::COMMA)) {
// Icon path.
if (consume(GDScriptTokenizer::Token::LITERAL, R"(Expected class icon path string after ",".)")) {
if (previous.literal.get_type() != Variant::STRING) {
push_error(vformat(R"(Only strings can be used for the class icon path, found "%s" instead.)", Variant::get_type_name(previous.literal.get_type())));
}
current_class->icon_path = previous.literal;
}
}

if (match(GDScriptTokenizer::Token::EXTENDS)) {
// Allow extends on the same line.
parse_extends();
Expand Down

0 comments on commit e64eb12

Please sign in to comment.