polserver/pol-core/bscript/compiler/astbuilder/CompilerWorkspaceBuilder.h
Eric Swanson 50e42719b8
Add file/SourceFileCache (#222)
* Add file/SourceFileCache

Co-authored-by: Fernando Rozenblit <rozenblit@gmail.com>
2020-08-16 17:22:16 -07:00

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