pub struct CodeActionsProvider { /* private fields */ }Expand description
Provides code actions (quick-fixes) for diagnostics
Analyzes Perl source code and diagnostics to provide automated fixes and refactoring actions.
Implementations§
Source§impl CodeActionsProvider
impl CodeActionsProvider
Sourcepub fn new(source: String) -> CodeActionsProvider
pub fn new(source: String) -> CodeActionsProvider
Sourcepub fn get_code_actions(
&self,
range: (usize, usize),
diagnostics: &[Diagnostic],
) -> Vec<CodeAction>
pub fn get_code_actions( &self, range: (usize, usize), diagnostics: &[Diagnostic], ) -> Vec<CodeAction>
Get all available code actions for a given range
Auto Trait Implementations§
impl Freeze for CodeActionsProvider
impl RefUnwindSafe for CodeActionsProvider
impl Send for CodeActionsProvider
impl Sync for CodeActionsProvider
impl Unpin for CodeActionsProvider
impl UnsafeUnpin for CodeActionsProvider
impl UnwindSafe for CodeActionsProvider
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