pub(crate) struct EditorDiagnostics {
pub(crate) has_published_diagnostics: Set<SourceFile>,
}Expand description
Tracks the diagnostics we have sent over to the editor.
Fields§
§has_published_diagnostics: Set<SourceFile>Track the source files for which we have published diagnostics to the editor.
Implementations§
Source§impl EditorDiagnostics
impl EditorDiagnostics
pub(crate) fn reconcile_diagnostics( &mut self, db: &Compiler, editor: &mut dyn Editor<Server>, diagnostics: Vec<&Diagnostic>, ) -> Fallible<()>
pub(crate) fn lsp_diagnostic( db: &Compiler, diagnostic: &Diagnostic, ) -> Diagnostic
pub(crate) fn lsp_severity(_db: &Compiler, level: Level) -> DiagnosticSeverity
pub(crate) fn lsp_location(db: &Compiler, span: AbsoluteSpan) -> Location
pub(crate) fn lsp_range(db: &Compiler, span: AbsoluteSpan) -> Range
pub(crate) fn lsp_position( db: &Compiler, source_file: SourceFile, offset: AbsoluteOffset, ) -> Position
pub(crate) fn lsp_uri(url: &Url) -> Uri
Trait Implementations§
Source§impl Default for EditorDiagnostics
impl Default for EditorDiagnostics
Source§fn default() -> EditorDiagnostics
fn default() -> EditorDiagnostics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditorDiagnostics
impl RefUnwindSafe for EditorDiagnostics
impl Send for EditorDiagnostics
impl Sync for EditorDiagnostics
impl Unpin for EditorDiagnostics
impl UnsafeUnpin for EditorDiagnostics
impl UnwindSafe for EditorDiagnostics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more