File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -567,6 +567,25 @@ function."
567567 (let ((arguments (phpactor--command-argments :source :path )))
568568 (apply #'phpactor-action-dispatch (phpactor--rpc " transform" (append arguments (list :transform " complete_constructor" ))))))
569569
570+ ;;;### autoload
571+ (defun phpactor-rename-variable (&optional scope )
572+ " Execute Phpactor PRC action to rename variable in SCOPE."
573+ (interactive )
574+ (let ((arguments (phpactor--command-argments :source :path :offset )))
575+ (apply #'phpactor-action-dispatch (phpactor--rpc " rename_variable" (append arguments (list :scope scope))))))
576+
577+ ;;;### autoload
578+ (defun phpactor-rename-variable-local ()
579+ " Execute Phpactor PRC action to rename variable locally."
580+ (interactive )
581+ (phpactor-rename-variable " local" ))
582+
583+ ;;;### autoload
584+ (defun phpactor-rename-variable-file ()
585+ " Execute Phpactor PRC action to rename variable in whole file."
586+ (interactive )
587+ (phpactor-rename-variable " file" ))
588+
570589;;;### autoload
571590(defun phpactor-replace-references ()
572591 " Execute Phpactor PRC replace_references command to complete_constructor."
You can’t perform that action at this time.
0 commit comments