mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
35 lines
780 B
C++
35 lines
780 B
C++
#ifndef POLSERVER_COMPILERWORKSPACEBUILDER_H
|
|
#define POLSERVER_COMPILERWORKSPACEBUILDER_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
struct LegacyFunctionOrder;
|
|
class Profile;
|
|
class Report;
|
|
class CompilerWorkspace;
|
|
class SourceFileCache;
|
|
|
|
class CompilerWorkspaceBuilder
|
|
{
|
|
public:
|
|
CompilerWorkspaceBuilder( SourceFileCache& em_cache, SourceFileCache& inc_cache, Profile&,
|
|
Report& );
|
|
|
|
std::unique_ptr<CompilerWorkspace> build(
|
|
const std::string& pathname,
|
|
const LegacyFunctionOrder* legacy_function_order );
|
|
|
|
private:
|
|
|
|
SourceFileCache& em_cache;
|
|
SourceFileCache& inc_cache;
|
|
Profile& profile;
|
|
Report& report;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_COMPILERWORKSPACEBUILDER_H
|