pub struct CodeActionsProvider { /* private fields */ }Expand description
Code actions provider
Analyzes Perl source code and provides automated fixes and refactoring actions for common issues and improvement opportunities.
Implementations§
Source§impl CodeActionsProvider
impl CodeActionsProvider
Sourcepub fn new(source: String) -> CodeActionsProvider
pub fn new(source: String) -> CodeActionsProvider
Create a new code actions provider
Sourcepub fn get_code_actions(
&self,
ast: &Node,
range: (usize, usize),
diagnostics: &[Diagnostic],
) -> Vec<CodeAction>
pub fn get_code_actions( &self, ast: &Node, range: (usize, usize), diagnostics: &[Diagnostic], ) -> Vec<CodeAction>
Get code actions for a 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