polserver/pol-core/bscript/compiler/analyzer/LocalVariableScopes.cpp

18 lines
458 B
C++
Raw Permalink Normal View History

#include "LocalVariableScopes.h"
#include "bscript/compiler/analyzer/Variables.h"
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