Merge pull request #40951 from bruvzg/gds_cleanup

[GDScript] Add static HashMap cleanup.
This commit is contained in:
George Marques 2020-08-08 10:44:57 -03:00 committed by GitHub
commit 1f14068727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 0 deletions

View file

@ -71,6 +71,10 @@ static StringName get_real_class_name(const StringName &p_source) {
return p_source;
}
void GDScriptAnalyzer::cleanup() {
underscore_map.clear();
}
static GDScriptParser::DataType make_callable_type(const MethodInfo &p_info) {
GDScriptParser::DataType type;
type.type_source = GDScriptParser::DataType::ANNOTATED_EXPLICIT;