#[non_exhaustive]pub struct EditorSemanticFacts {
pub completeness: EditorSemanticCompleteness,
pub family_semantics: EditorFamilySemantics,
pub symbols: Vec<EditorSemanticSymbol>,
pub directive_prefixes: Vec<String>,
pub diagnostics: Vec<EditorSemanticDiagnostic>,
pub expected_syntax: Vec<EditorExpectedSyntax>,
}Expand description
Parser-produced facts used by lint, completion, and LSP without exposing a public AST.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.completeness: EditorSemanticCompleteness§family_semantics: EditorFamilySemantics§symbols: Vec<EditorSemanticSymbol>§directive_prefixes: Vec<String>§diagnostics: Vec<EditorSemanticDiagnostic>§expected_syntax: Vec<EditorExpectedSyntax>Implementations§
Source§impl EditorSemanticFacts
impl EditorSemanticFacts
pub fn new() -> Self
pub fn push_symbol(&mut self, symbol: EditorSemanticSymbol)
pub fn mark_recovered(&mut self)
pub fn mark_recovered_with_diagnostic( &mut self, message: impl Into<String>, span: Option<SourceSpan>, )
pub fn mark_recovered_from_parse_error( &mut self, message: impl Into<String>, span: Option<SourceSpan>, )
pub fn push_diagnostic( &mut self, message: impl Into<String>, span: Option<SourceSpan>, )
pub fn push_directive_prefix(&mut self, prefix: impl Into<String>)
pub fn push_expected_syntax(&mut self, expected: EditorExpectedSyntax)
Trait Implementations§
Source§impl Clone for EditorSemanticFacts
impl Clone for EditorSemanticFacts
Source§impl Debug for EditorSemanticFacts
impl Debug for EditorSemanticFacts
Source§impl Default for EditorSemanticFacts
impl Default for EditorSemanticFacts
impl Eq for EditorSemanticFacts
Source§impl PartialEq for EditorSemanticFacts
impl PartialEq for EditorSemanticFacts
impl StructuralPartialEq for EditorSemanticFacts
Auto Trait Implementations§
impl Freeze for EditorSemanticFacts
impl RefUnwindSafe for EditorSemanticFacts
impl Send for EditorSemanticFacts
impl Sync for EditorSemanticFacts
impl Unpin for EditorSemanticFacts
impl UnsafeUnpin for EditorSemanticFacts
impl UnwindSafe for EditorSemanticFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.