pub struct UnusedComponentEmit {
pub path: PathBuf,
pub component_name: String,
pub emit_name: String,
pub line: u32,
pub col: u32,
}Expand description
A Vue <script setup> defineEmits declared event that is EMITTED nowhere
inside its own single-file component (no emit('<name>') call). Single-file
finding, zero-FP doctrine: the whole file abstains on any
unharvestable / dynamic-emit / whole-object-use / defineModel signal.
Fields§
§path: PathBufThe .vue SFC declaring the unused emit.
component_name: StringThe component name (the .vue file stem).
emit_name: StringThe declared emit event name that is never emitted.
line: u321-based line number of the emit declaration.
col: u320-based byte column offset of the emit declaration.
Trait Implementations§
Source§impl Clone for UnusedComponentEmit
impl Clone for UnusedComponentEmit
Source§impl Debug for UnusedComponentEmit
impl Debug for UnusedComponentEmit
Source§impl<'de> Deserialize<'de> for UnusedComponentEmit
impl<'de> Deserialize<'de> for UnusedComponentEmit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnusedComponentEmit
impl RefUnwindSafe for UnusedComponentEmit
impl Send for UnusedComponentEmit
impl Sync for UnusedComponentEmit
impl Unpin for UnusedComponentEmit
impl UnsafeUnpin for UnusedComponentEmit
impl UnwindSafe for UnusedComponentEmit
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