Merge pull request #78489 from dalexeev/gds-add-disassembling-implicit-funcs

GDScript: Add disassembling implicit and lambda functions
This commit is contained in:
Thaddeus Crews 2024-12-19 19:59:36 -06:00
commit a4f423cc97
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
4 changed files with 77 additions and 36 deletions

View file

@ -2278,7 +2278,7 @@ GDScriptFunction *GDScriptCompiler::_parse_function(Error &r_error, GDScript *p_
return_type = _gdtype_from_datatype(p_func->get_datatype(), p_script);
} else {
if (p_for_ready) {
func_name = SceneStringName(_ready);
func_name = "@implicit_ready";
} else {
func_name = "@implicit_new";
}
@ -2363,7 +2363,7 @@ GDScriptFunction *GDScriptCompiler::_parse_function(Error &r_error, GDScript *p_
}
if (field->onready != is_implicit_ready) {
// Only initialize in @implicit_ready.
// Only initialize in `@implicit_ready()`.
continue;
}
@ -2972,7 +2972,7 @@ Error GDScriptCompiler::_compile_class(GDScript *p_script, const GDScriptParser:
}
{
// Create an implicit constructor in any case.
// Create `@implicit_new()` special function in any case.
Error err = OK;
_parse_function(err, p_script, p_class, nullptr);
if (err) {
@ -2981,7 +2981,7 @@ Error GDScriptCompiler::_compile_class(GDScript *p_script, const GDScriptParser:
}
if (p_class->onready_used) {
// Create an implicit_ready constructor.
// Create `@implicit_ready()` special function.
Error err = OK;
_parse_function(err, p_script, p_class, nullptr, true);
if (err) {