GDScript: Invalidate cached parser chain when reloading
This commit is contained in:
parent
505da68b26
commit
ffc0d0981b
2 changed files with 25 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue