mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Remove RuntimeError / CompilationError. (#2258)
Instead, work out the prefix for an error based on whether it was produced during parsing, semantic analysis, or when running the program.
This commit is contained in:
@@ -14,7 +14,12 @@
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
// Runs the top-level declaration list.
|
||||
// Perform semantic analysis on the AST.
|
||||
auto AnalyzeProgram(Nonnull<Arena*> arena, AST ast,
|
||||
std::optional<Nonnull<llvm::raw_ostream*>> trace_stream)
|
||||
-> ErrorOr<AST>;
|
||||
|
||||
// Run the program's `Main` function.
|
||||
auto ExecProgram(Nonnull<Arena*> arena, AST ast,
|
||||
std::optional<Nonnull<llvm::raw_ostream*>> trace_stream)
|
||||
-> ErrorOr<int>;
|
||||
|
||||
Reference in New Issue
Block a user