1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #92616 from rune-scape/rune-invalidate-parser-chain

GDScript: Invalidate cached parser chain when reloading
This commit is contained in:
Rémi Verschelde
2024-07-02 17:27:25 +02:00
2 changed files with 25 additions and 8 deletions

View File

@@ -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;