diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-07 08:18:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 08:18:50 +0200 |
commit | 7acb0678ed1ec41265f1b9db00de4119edfc0972 (patch) | |
tree | 8da51e219f0e09d714934efa090596f1322bca2d | |
parent | 90fd6e960e2e16b887f76669e42b06b53ae0b6c5 (diff) | |
parent | dfe3a2fad00d1db6a8e67d3e513356ea81de7fdd (diff) |
Merge pull request #53433 from vnen/gdscript-eragon-fix
[GDScript] Set status on parsing steps beforehand
-rw-r--r-- | modules/gdscript/gdscript_cache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 8121053245..bb0d9e9e9b 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -58,27 +58,27 @@ Error GDScriptParserRef::raise_status(Status p_new_status) { while (p_new_status > status) { switch (status) { case EMPTY: - result = parser->parse(GDScriptCache::get_source_code(path), path, false); status = PARSED; + result = parser->parse(GDScriptCache::get_source_code(path), path, false); break; case PARSED: { analyzer = memnew(GDScriptAnalyzer(parser)); - Error inheritance_result = analyzer->resolve_inheritance(); status = INHERITANCE_SOLVED; + Error inheritance_result = analyzer->resolve_inheritance(); if (result == OK) { result = inheritance_result; } } break; case INHERITANCE_SOLVED: { - Error interface_result = analyzer->resolve_interface(); status = INTERFACE_SOLVED; + Error interface_result = analyzer->resolve_interface(); if (result == OK) { result = interface_result; } } break; case INTERFACE_SOLVED: { - Error body_result = analyzer->resolve_body(); status = FULLY_SOLVED; + Error body_result = analyzer->resolve_body(); if (result == OK) { result = body_result; } |