mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
41 lines
900 B
C++
41 lines
900 B
C++
#ifndef POLSERVER_BUILDERWORKSPACE_H
|
|
#define POLSERVER_BUILDERWORKSPACE_H
|
|
|
|
#include <map>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "bscript/compiler/astbuilder/FunctionResolver.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class CompilerWorkspace;
|
|
class Profile;
|
|
class Report;
|
|
class SourceFile;
|
|
class SourceFileCache;
|
|
class SourceFileIdentifier;
|
|
class Statement;
|
|
|
|
class BuilderWorkspace
|
|
{
|
|
public:
|
|
BuilderWorkspace( CompilerWorkspace&, SourceFileCache& em_cache, SourceFileCache& inc_cache,
|
|
Profile& profile, Report& report );
|
|
~BuilderWorkspace();
|
|
|
|
CompilerWorkspace& compiler_workspace;
|
|
|
|
SourceFileCache& em_cache;
|
|
SourceFileCache& inc_cache;
|
|
|
|
Profile& profile;
|
|
Report& report;
|
|
|
|
std::map<std::string, std::shared_ptr<SourceFile>> source_files;
|
|
FunctionResolver function_resolver;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_BUILDERWORKSPACE_H
|