### Godot version

4.0 8a98110

### System information

Windows 10 x64

### Issue description

I have a method call in my script that has changed in some newer version. Whenever I want to open the project in the new version, the autoload script will spam argument error. Forever.

https://user-images.githubusercontent.com/2223172/210169561-1938b0f9-684e-4a8f-bebd-4900ff48b98a.mp4

The project never loads. It works fine after I fix the method in external editor.

### Steps to reproduce

1. Be me
2. Try to open the project :<

### Minimal reproduction project

I wasn't able to reproduce it in a minimal project. I suspect some dependency being at fault.
ERR_FAIL_COND_V(parser == nullptr, ERR_INVALID_DATA);
	if (result != OK) {
		return result;
	}
	while (p_new_status > status) {
		switch (status) {
			case EMPTY:
				status = PARSED;
				result = parser->parse(GDScriptCache::get_source_code(path), path, false);
				break;
			case PARSED: {
				status = INHERITANCE_SOLVED;
				Error inheritance_result = get_analyzer()->resolve_inheritance();
				if (result == OK) {
					result = inheritance_result;
				}
			} break;
			case INHERITANCE_SOLVED: {
				status = INTERFACE_SOLVED;
				Error interface_result = get_analyzer()->resolve_interface();
				if (result == OK) {
					result = interface_result;
				}
			} break;
			case INTERFACE_SOLVED: {
				status = FULLY_SOLVED;
				Error body_result = get_analyzer()->resolve_body();
				if (result == OK) {
					result = body_result;
				}