-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate analysis errors to dedicated fns
- Loading branch information
Showing
6 changed files
with
277 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#pragma once | ||
|
||
#include <jank/error.hpp> | ||
#include <jank/read/lex.hpp> | ||
|
||
namespace jank::error | ||
{ | ||
error_ptr | ||
analysis_invalid_def(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_invalid_fn(native_persistent_string const &message, read::source const &source); | ||
error_ptr analysis_invalid_fn_parameters(native_persistent_string const &message, | ||
read::source const &source); | ||
error_ptr analysis_invalid_recur_position(native_persistent_string const &message, | ||
read::source const &source); | ||
error_ptr analysis_invalid_recur_from_try(native_persistent_string const &message, | ||
read::source const &source); | ||
error_ptr | ||
analysis_invalid_recur_args(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_invalid_let(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_invalid_loop(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_invalid_if(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_invalid_quote(native_persistent_string const &message, read::source const &source); | ||
error_ptr analysis_invalid_var_reference(native_persistent_string const &message, | ||
read::source const &source); | ||
error_ptr | ||
analysis_invalid_throw(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_invalid_try(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_unresolved_var(native_persistent_string const &message, read::source const &source); | ||
error_ptr | ||
analysis_unresolved_symbol(native_persistent_string const &message, read::source const &source); | ||
error_ptr internal_analysis_failure(native_persistent_string const &message); | ||
error_ptr | ||
internal_analysis_failure(native_persistent_string const &message, read::source const &source); | ||
} |
Oops, something went wrong.