mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
31 lines
575 B
C
31 lines
575 B
C
|
|
#ifndef POLSERVER_LOCALVARIABLESCOPES_H
|
||
|
|
#define POLSERVER_LOCALVARIABLESCOPES_H
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace Pol::Bscript::Compiler
|
||
|
|
{
|
||
|
|
class LocalVariableScope;
|
||
|
|
class Report;
|
||
|
|
class Variables;
|
||
|
|
|
||
|
|
class LocalVariableScopes
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
LocalVariableScopes( Variables& locals, Report& report );
|
||
|
|
|
||
|
|
LocalVariableScope* current_local_scope();
|
||
|
|
|
||
|
|
private:
|
||
|
|
friend class LocalVariableScope;
|
||
|
|
|
||
|
|
Variables& local_variables;
|
||
|
|
std::vector<LocalVariableScope*> local_variable_scopes;
|
||
|
|
Report& report;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace Pol::Bscript::Compiler
|
||
|
|
|
||
|
|
|
||
|
|
#endif // POLSERVER_LOCALVARIABLESCOPES_H
|