pub struct SemanticDiagnostics {
pub diagnostics: DiagnosticsBuilder<SemanticDiagnostic>,
pub module_file_id: ModuleFileId,
}
Fields§
§diagnostics: DiagnosticsBuilder<SemanticDiagnostic>
§module_file_id: ModuleFileId
Implementations§
source§impl SemanticDiagnostics
impl SemanticDiagnostics
pub fn new(module_file_id: ModuleFileId) -> 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).