pub struct TransformContext {
pub file_path: String,
pub source_text: String,
pub type_hints: Vec<TypeHint>,
pub fn_return_type: Option<String>,
}Expand description
Transform execution context (passed to execute-transform)
Fields§
§file_path: StringPath to the file being transformed
source_text: StringFull source text of the file
type_hints: Vec<TypeHint>Type hints from analysis (optional)
fn_return_type: Option<String>Function return type if inside a function (for ? operator)
Trait Implementations§
Source§impl Clone for TransformContext
impl Clone for TransformContext
Source§fn clone(&self) -> TransformContext
fn clone(&self) -> TransformContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransformContext
impl RefUnwindSafe for TransformContext
impl Send for TransformContext
impl Sync for TransformContext
impl Unpin for TransformContext
impl UnsafeUnpin for TransformContext
impl UnwindSafe for TransformContext
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