1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

GDScript: Invalidate cached parser chain when reloading

This commit is contained in:
rune-scape
2024-05-15 18:36:04 -07:00
committed by rune-scape
parent 505da68b26
commit ffc0d0981b
2 changed files with 25 additions and 8 deletions

View File

@@ -66,6 +66,7 @@ private:
public:
Status get_status() const;
String get_path() const;
uint32_t get_source_hash() const;
GDScriptParser *get_parser();
GDScriptAnalyzer *get_analyzer();
@@ -83,6 +84,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;