Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,25 @@ function."
(let ((arguments (phpactor--command-argments :source :path)))
(apply #'phpactor-action-dispatch (phpactor--rpc "transform" (append arguments (list :transform "complete_constructor"))))))

;;;###autoload
(defun phpactor-rename-variable (&optional scope)
"Execute Phpactor PRC action to rename variable in SCOPE."
(interactive)
(let ((arguments (phpactor--command-argments :source :path :offset)))
(apply #'phpactor-action-dispatch (phpactor--rpc "rename_variable" (append arguments (list :scope scope))))))

;;;###autoload
(defun phpactor-rename-variable-local ()
"Execute Phpactor PRC action to rename variable locally."
(interactive)
(phpactor-rename-variable "local"))

;;;###autoload
(defun phpactor-rename-variable-file ()
"Execute Phpactor PRC action to rename variable in whole file."
(interactive)
(phpactor-rename-variable "file"))

;;;###autoload
(defun phpactor-replace-references ()
"Execute Phpactor PRC replace_references command to complete_constructor."
Expand Down