pub struct UnusedComponentProp {
pub path: PathBuf,
pub component_name: String,
pub prop_name: String,
pub line: u32,
pub col: u32,
}Expand description
A Vue <script setup> defineProps, Svelte 5 $props(), or React declared
prop that is referenced NOWHERE inside its own component. Single-component
finding, zero-FP doctrine: the component abstains on any opaque public or
fallthrough signal.
Fields§
§path: PathBufThe component file declaring the unused prop.
component_name: StringThe component name.
prop_name: StringThe declared prop name that is never referenced.
line: u321-based line number of the prop declaration.
col: u320-based byte column offset of the prop declaration.
Trait Implementations§
Source§impl Clone for UnusedComponentProp
impl Clone for UnusedComponentProp
Source§impl Debug for UnusedComponentProp
impl Debug for UnusedComponentProp
Source§impl<'de> Deserialize<'de> for UnusedComponentProp
impl<'de> Deserialize<'de> for UnusedComponentProp
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 UnusedComponentProp
impl RefUnwindSafe for UnusedComponentProp
impl Send for UnusedComponentProp
impl Sync for UnusedComponentProp
impl Unpin for UnusedComponentProp
impl UnsafeUnpin for UnusedComponentProp
impl UnwindSafe for UnusedComponentProp
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