patterns: Make global scope available for use in custom types

This commit is contained in:
WerWolv
2021-10-11 22:01:15 +02:00
parent aac1a37a3f
commit b12cd66679
2 changed files with 15 additions and 2 deletions

View File

@@ -55,6 +55,10 @@ namespace hex::pl {
return this->m_scopes.front();
}
bool isGlobalScope() {
return this->m_scopes.size() == 1;
}
void setProvider(prv::Provider *provider) {
this->m_provider = provider;
}