diff options
Diffstat (limited to 'cli/diagnostics.rs')
-rw-r--r-- | cli/diagnostics.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cli/diagnostics.rs b/cli/diagnostics.rs index 094fc7b56..e131d21af 100644 --- a/cli/diagnostics.rs +++ b/cli/diagnostics.rs @@ -6,7 +6,6 @@ use deno_core::serde::Deserialize; use deno_core::serde::Deserializer; use deno_core::serde::Serialize; use deno_core::serde::Serializer; -use deno_graph::ModuleGraphError; use once_cell::sync::Lazy; use regex::Regex; use std::error::Error; @@ -16,7 +15,6 @@ const MAX_SOURCE_LINE_LENGTH: usize = 150; const UNSTABLE_DENO_PROPS: &[&str] = &[ "BenchDefinition", - "CompilerOptions", "CreateHttpClientOptions", "DatagramConn", "Diagnostic", @@ -40,8 +38,6 @@ const UNSTABLE_DENO_PROPS: &[&str] = &[ "connect", "consoleSize", "createHttpClient", - "emit", - "formatDiagnostics", "futime", "futimeSync", "hostname", @@ -357,21 +353,6 @@ impl Diagnostics { Diagnostics(diagnostics) } - pub fn extend_graph_errors(&mut self, errors: Vec<ModuleGraphError>) { - self.0.extend(errors.into_iter().map(|err| Diagnostic { - category: DiagnosticCategory::Error, - code: 900001, - start: None, - end: None, - message_text: Some(err.to_string()), - message_chain: None, - source: None, - source_line: None, - file_name: Some(err.specifier().to_string()), - related_information: None, - })); - } - /// Return a set of diagnostics where only the values where the predicate /// returns `true` are included. pub fn filter<P>(&self, predicate: P) -> Self |