#include "src/torque/torque-compiler.h"
#include <fstream>
#include <optional>
#include "src/torque/declarable.h"
#include "src/torque/declaration-visitor.h"
#include "src/torque/global-context.h"
#include "src/torque/implementation-visitor.h"
#include "src/torque/torque-parser.h"
#include "src/torque/type-oracle.h"
namespace v8::internal::torque {
namespace {
std::optional<std::string> ReadFile(const std::string& path) { … }
void ReadAndParseTorqueFile(const std::string& path) { … }
void CompileCurrentAst(TorqueCompilerOptions options) { … }
}
TorqueCompilerResult CompileTorque(const std::string& source,
TorqueCompilerOptions options) { … }
TorqueCompilerResult CompileTorque(std::vector<std::string> files,
TorqueCompilerOptions options) { … }
TorqueCompilerResult CompileTorqueForKythe(
std::vector<TorqueCompilationUnit> units, TorqueCompilerOptions options,
KytheConsumer* consumer) { … }
}