pub struct SemanticDiagnostics {
pub diagnostics: DiagnosticsBuilder<SemanticDiagnostic>,
pub file_id: FileId,
}
Fields§
§diagnostics: DiagnosticsBuilder<SemanticDiagnostic>
§file_id: FileId
Implementations§
source§impl SemanticDiagnostics
impl SemanticDiagnostics
pub fn new(file_id: FileId) -> Self
pub fn build(self) -> Diagnostics<SemanticDiagnostic>
sourcepub fn report<TNode: TypedSyntaxNode>(
&mut self,
node: &TNode,
kind: SemanticDiagnosticKind
) -> DiagnosticAdded
pub fn report<TNode: TypedSyntaxNode>( &mut self, node: &TNode, kind: SemanticDiagnosticKind ) -> DiagnosticAdded
Report a diagnostic in the location of the given node.
sourcepub fn report_after<TNode: TypedSyntaxNode>(
&mut self,
node: &TNode,
kind: SemanticDiagnosticKind
) -> DiagnosticAdded
pub fn report_after<TNode: TypedSyntaxNode>( &mut self, node: &TNode, kind: SemanticDiagnosticKind ) -> DiagnosticAdded
Report a diagnostic in the location after the given node (with width 0).
pub fn report_by_ptr( &mut self, stable_ptr: SyntaxStablePtrId, kind: SemanticDiagnosticKind ) -> DiagnosticAdded
Auto Trait Implementations§
impl RefUnwindSafe for SemanticDiagnostics
impl Send for SemanticDiagnostics
impl Sync for SemanticDiagnostics
impl Unpin for SemanticDiagnostics
impl UnwindSafe for SemanticDiagnostics
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