summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-25 10:22:12 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-25 10:22:12 +0200
commite343dbbcc1030f04dc5833f1c19d267a17332ca9 (patch)
treefb63defa5cbd558b6b038c371c915051ace69f92 /modules/gdscript/gdscript_analyzer.h
parent0b26cc1c39da7e1d1a5eca3e3a7e35b4a7245109 (diff)
parentf2918c73cf25b5185ff66f5ebd70a0ca0a3c302a (diff)
downloadredot-engine-e343dbbcc1030f04dc5833f1c19d267a17332ca9.tar.gz
Merge pull request #94723 from akien-mga/revert-94617
Revert "GDScript: Fix common mismatched external parser errors"
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.h')
-rw-r--r--modules/gdscript/gdscript_analyzer.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/gdscript/gdscript_analyzer.h b/modules/gdscript/gdscript_analyzer.h
index 35e20f40d4..922000df52 100644
--- a/modules/gdscript/gdscript_analyzer.h
+++ b/modules/gdscript/gdscript_analyzer.h
@@ -41,22 +41,9 @@
class GDScriptAnalyzer {
GDScriptParser *parser = nullptr;
- template <typename Fn>
- class Finally {
- Fn fn;
-
- public:
- Finally(Fn p_fn) :
- fn(p_fn) {}
- ~Finally() {
- fn();
- }
- };
-
const GDScriptParser::EnumNode *current_enum = nullptr;
GDScriptParser::LambdaNode *current_lambda = nullptr;
List<GDScriptParser::LambdaNode *> pending_body_resolution_lambdas;
- HashMap<const GDScriptParser::ClassNode *, Ref<GDScriptParserRef>> external_class_parser_cache;
bool static_context = false;
// Tests for detecting invalid overloading of script members
@@ -145,8 +132,6 @@ class GDScriptAnalyzer {
void resolve_pending_lambda_bodies();
bool class_exists(const StringName &p_class) const;
void reduce_identifier_from_base_set_class(GDScriptParser::IdentifierNode *p_identifier, GDScriptParser::DataType p_identifier_datatype);
- Ref<GDScriptParserRef> ensure_cached_parser_for_class(const GDScriptParser::ClassNode *p_class, const GDScriptParser::ClassNode *p_from_class, const String &p_context, const GDScriptParser::Node *p_source);
- Ref<GDScript> get_depended_shallow_script(const String &p_path, Error &r_error);
#ifdef DEBUG_ENABLED
void is_shadowing(GDScriptParser::IdentifierNode *p_identifier, const String &p_context, const bool p_in_local_scope);
#endif