diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-07-24 19:32:12 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-07-24 19:32:12 +0200 |
commit | 2bd904e3db8a82464e623768b5fd08114e2186ee (patch) | |
tree | 96e64dbb9217de2039448c520b021e8e04cd497a /modules/gdscript/gdscript_editor.cpp | |
parent | d6bb6d42b2d26d15e6362983232e211907f24886 (diff) | |
parent | 56e2fad31927e40406bc888aab99fa8f3f417d1f (diff) | |
download | redot-engine-2bd904e3db8a82464e623768b5fd08114e2186ee.tar.gz |
Merge pull request #73196 from Vilcrow/fix-lookup-symbol
Fix jumping to function definition using `Ctrl+LMB` or the "Lookup Symbol" button
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index cd34feb8b3..5536a5d49f 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1435,11 +1435,11 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context, } break; case GDScriptParser::Node::SELF: { if (p_context.current_class) { - r_type.type.kind = GDScriptParser::DataType::CLASS; - r_type.type.type_source = GDScriptParser::DataType::INFERRED; - r_type.type.is_constant = true; - r_type.type.class_type = p_context.current_class; - r_type.value = p_context.base; + 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; + } found = true; } } break; |