Skip to content

Commit

Permalink
Fix the autocomplete function for the 'self' keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilcrow committed Jan 2, 2024
1 parent 3ce73e5 commit c8fc824
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/gdscript/gdscript_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1494,11 +1494,8 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
} break;
case GDScriptParser::Node::SELF: {
if (p_context.current_class) {
if (p_context.type != GDScriptParser::COMPLETION_SUPER_METHOD) {
r_type.type = p_context.current_class->get_datatype();
} else {
r_type.type = p_context.current_class->base_type;
}
r_type.type = p_context.current_class->get_datatype();
r_type.type.is_meta_type = false;
found = true;
}
} break;
Expand Down

0 comments on commit c8fc824

Please sign in to comment.