2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/compiler/analyzer/LocalVariableScopes.h"
|
2020-08-30 01:32:38 -07:00
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/analyzer/Variables.h"
|
2020-08-30 01:32:38 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
LocalVariableScopes::LocalVariableScopes( Variables& local_variables, Report& report )
|
|
|
|
|
: local_variables( local_variables ), report( report )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LocalVariableScope* LocalVariableScopes::current_local_scope()
|
|
|
|
|
{
|
|
|
|
|
return local_variable_scopes.empty() ? nullptr : local_variable_scopes.back();
|
|
|
|
|
}
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|