pub enum EditorSemanticRole {
Entity,
ClassDefinition,
Reference,
Outline,
Payload,
}Expand description
How downstream editor indexes should project a parser-produced symbol.
Variants§
Entity
Addressable diagram entity: appears in completion, navigation, and outline surfaces.
ClassDefinition
A parser-declared CSS/class definition. It participates in class completion and outline projection, but is not a diagram-node entity or a reference/rename target.
Reference
A source occurrence that resolves to an addressable entity. References participate in navigation and rename, but never become completion or outline declarations themselves.
Outline
Structural symbol that belongs in outline/hover, but is not a graph-node completion item.
Payload
Span-rich parser payload for lint or future semantic consumers; not projected into LSP outline/completion/navigation by the migration index.
Implementations§
Source§impl EditorSemanticRole
impl EditorSemanticRole
pub fn contributes_completion(self) -> bool
pub fn contributes_references(self) -> bool
pub fn contributes_outline(self) -> bool
pub const fn is_class_definition(self) -> bool
Trait Implementations§
Source§impl Clone for EditorSemanticRole
impl Clone for EditorSemanticRole
impl Copy for EditorSemanticRole
Source§impl Debug for EditorSemanticRole
impl Debug for EditorSemanticRole
Source§impl Default for EditorSemanticRole
impl Default for EditorSemanticRole
impl Eq for EditorSemanticRole
Source§impl PartialEq for EditorSemanticRole
impl PartialEq for EditorSemanticRole
impl StructuralPartialEq for EditorSemanticRole
Auto Trait Implementations§
impl Freeze for EditorSemanticRole
impl RefUnwindSafe for EditorSemanticRole
impl Send for EditorSemanticRole
impl Sync for EditorSemanticRole
impl Unpin for EditorSemanticRole
impl UnsafeUnpin for EditorSemanticRole
impl UnwindSafe for EditorSemanticRole
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.