mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #109298 from HolonProduction/autocompletion-cleanup
Autocompletion: Remove duplicate code
This commit is contained in:
commit
1f7bf131b0
1 changed files with 0 additions and 12 deletions
|
@ -1901,18 +1901,6 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
|
|||
found = true;
|
||||
} else {
|
||||
switch (p_expression->type) {
|
||||
case GDScriptParser::Node::LITERAL: {
|
||||
const GDScriptParser::LiteralNode *literal = static_cast<const GDScriptParser::LiteralNode *>(p_expression);
|
||||
r_type = _type_from_variant(literal->value, p_context);
|
||||
found = true;
|
||||
} break;
|
||||
case GDScriptParser::Node::SELF: {
|
||||
if (p_context.current_class) {
|
||||
r_type.type = p_context.current_class->get_datatype();
|
||||
r_type.type.is_meta_type = false;
|
||||
found = true;
|
||||
}
|
||||
} break;
|
||||
case GDScriptParser::Node::IDENTIFIER: {
|
||||
const GDScriptParser::IdentifierNode *id = static_cast<const GDScriptParser::IdentifierNode *>(p_expression);
|
||||
found = _guess_identifier_type(p_context, id, r_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue