summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_cache.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-02 17:27:25 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-02 17:27:25 +0200
commit1ebd12ac5fdd2e99123ba00197e5d60bed541e1d (patch)
tree23264c9770fdb7739c498648a330ee1e0e12993b /modules/gdscript/gdscript_cache.h
parent9db1a963beae8056cbd30d692d4160d09c10b2dc (diff)
parentffc0d0981b48aaa6372f9859da5d238c825efbad (diff)
downloadredot-engine-1ebd12ac5fdd2e99123ba00197e5d60bed541e1d.tar.gz
Merge pull request #92616 from rune-scape/rune-invalidate-parser-chain
GDScript: Invalidate cached parser chain when reloading
Diffstat (limited to 'modules/gdscript/gdscript_cache.h')
-rw-r--r--modules/gdscript/gdscript_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_cache.h b/modules/gdscript/gdscript_cache.h
index 16121cc082..c927317e19 100644
--- a/modules/gdscript/gdscript_cache.h
+++ b/modules/gdscript/gdscript_cache.h
@@ -65,6 +65,7 @@ private:
public:
Status get_status() const;
+ String get_path() const;
uint32_t get_source_hash() const;
GDScriptParser *get_parser();
GDScriptAnalyzer *get_analyzer();
@@ -82,6 +83,7 @@ class GDScriptCache {
HashMap<String, Ref<GDScript>> full_gdscript_cache;
HashMap<String, Ref<GDScript>> static_gdscript_cache;
HashMap<String, HashSet<String>> dependencies;
+ HashMap<String, HashSet<String>> parser_inverse_dependencies;
friend class GDScript;
friend class GDScriptParserRef;