diff options
author | Brian Semrau <brian.semrau@gmail.com> | 2021-10-12 10:49:06 -0400 |
---|---|---|
committer | Brian Semrau <brian.semrau@gmail.com> | 2021-10-13 22:39:12 -0400 |
commit | 0ff0f64cd4009700f8f95db865320dc154349dff (patch) | |
tree | d15e90dd9251c1150d587a0d7e76bd80de20ee7b /modules/gdscript/gdscript_analyzer.cpp | |
parent | cb85ef6c38ec77041593ea89ba544d9cf74cf2a6 (diff) | |
download | redot-engine-0ff0f64cd4009700f8f95db865320dc154349dff.tar.gz |
GDScript: Access outer scope classes
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 9e9873d45f..a025a90b8c 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2682,6 +2682,11 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod p_identifier->is_constant = false; return; } break; + case GDScriptParser::ClassNode::Member::CLASS: { + resolve_class_interface(member.m_class); + p_identifier->set_datatype(member.m_class->get_datatype()); + return; + } break; default: break; } |