mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: upgrade deno_ast to 0.23 (#17269)
Closes #17172 Closes #15669 Closes #8529
This commit is contained in:
parent
319f607476
commit
0ee64ad847
18 changed files with 145 additions and 116 deletions
|
@ -193,12 +193,13 @@ impl ReplSession {
|
|||
line: &str,
|
||||
) -> EvaluationOutput {
|
||||
fn format_diagnostic(diagnostic: &deno_ast::Diagnostic) -> String {
|
||||
let display_position = diagnostic.display_position();
|
||||
format!(
|
||||
"{}: {} at {}:{}",
|
||||
colors::red("parse error"),
|
||||
diagnostic.message(),
|
||||
diagnostic.display_position.line_number,
|
||||
diagnostic.display_position.column_number,
|
||||
display_position.line_number,
|
||||
display_position.column_number,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue