mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #112770 from KoBeWi/underscore_undercover
Don't expose underscored signals
This commit is contained in:
commit
f41c8464cc
2 changed files with 10 additions and 0 deletions
|
|
@ -1290,6 +1290,9 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base
|
|||
List<MethodInfo> signals;
|
||||
scr->get_script_signal_list(&signals);
|
||||
for (const MethodInfo &E : signals) {
|
||||
if (E.name.begins_with("_")) {
|
||||
continue;
|
||||
}
|
||||
int location = p_recursion_depth + _get_signal_location(scr, E.name);
|
||||
ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_SIGNAL, location);
|
||||
r_result.insert(option.display, option);
|
||||
|
|
@ -1383,6 +1386,9 @@ static void _find_identifiers_in_base(const GDScriptCompletionIdentifier &p_base
|
|||
List<MethodInfo> signals;
|
||||
ClassDB::get_signal_list(type, &signals);
|
||||
for (const MethodInfo &E : signals) {
|
||||
if (E.name.begins_with("_")) {
|
||||
continue;
|
||||
}
|
||||
int location = p_recursion_depth + _get_signal_location(type, StringName(E.name));
|
||||
ScriptLanguage::CodeCompletionOption option(E.name, ScriptLanguage::CODE_COMPLETION_KIND_SIGNAL, location);
|
||||
r_result.insert(option.display, option);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue