pub struct UnprovidedInject {
pub path: PathBuf,
pub key_name: String,
pub framework: String,
pub line: u32,
pub col: u32,
}Expand description
A Vue inject(KEY) or Svelte getContext(KEY) whose symbol KEY is
provide/setContext’d nowhere in the analyzed project. The key is a
symbol with cross-file identity, so an unmatched key is a real dead-half DI
link: at runtime the inject returns undefined, surfaced only at render.
The fix is binary: provide the key somewhere, or remove the dead inject.
Fields§
§path: PathBufThe file carrying the orphan inject / getContext call.
key_name: StringThe injected key identifier as written at the call site.
framework: StringWhich framework’s DI API this came from: "vue" or "svelte".
line: u321-based line number of the inject / getContext call.
col: u320-based byte column offset of the inject / getContext call.
Trait Implementations§
Source§impl Clone for UnprovidedInject
impl Clone for UnprovidedInject
Source§impl Debug for UnprovidedInject
impl Debug for UnprovidedInject
Source§impl<'de> Deserialize<'de> for UnprovidedInject
impl<'de> Deserialize<'de> for UnprovidedInject
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 UnprovidedInject
impl RefUnwindSafe for UnprovidedInject
impl Send for UnprovidedInject
impl Sync for UnprovidedInject
impl Unpin for UnprovidedInject
impl UnsafeUnpin for UnprovidedInject
impl UnwindSafe for UnprovidedInject
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