Fix byte compilation warnings
ci/woodpecker/push/woodpecker Pipeline failed Details

WIP-cache
Hugo Thunnissen 9 months ago
parent e35caa7e15
commit fbfcf4f928

@ -25,6 +25,7 @@
(require 'phpinspect-util)
(require 'phpinspect-meta)
(require 'phpinspect-parser)
(require 'phpinspect-resolve)
(defvar phpinspect-eldoc-word-width 14
"The maximum width of words in eldoc strings.")

@ -120,7 +120,7 @@ buffer position to insert the use statement at."
""))
(defun phpinspect-add-use-statements-for-missing-types (types buffer imports project parent-token)
(let (namespace)
(let (namespace namespace-name)
(dolist (type types)
(setq namespace (phpinspect-meta-find-parent-matching-token
parent-token #'phpinspect-namespace-p)
@ -159,7 +159,7 @@ that there are import (\"use\") statements for them."
(used-types (alist-get 'used-types class))
(class-name (alist-get 'class-name class))
(region (alist-get 'location class))
token-meta namespace)
token-meta)
(message "Region: %s" region)
(message "index: %s" index)
(setq token-meta (phpinspect-meta-find-parent-matching-token

@ -279,14 +279,12 @@ before the search is executed."
(phpinspect-project-worker project)
(phpinspect-make-index-dir-task :dir dir :project project)))))
(defgroup phpinspect '((phpinspect-projects custom-variable))
"PHPInspect Configuration")
(defcustom phpinspect-projects nil
"PHPInspect Projects."
:type '(alist :key-type string
:value-type (alist :key-type symbol
:options ((include-dirs (repeat string))))))
:options ((include-dirs (repeat string)))))
:group 'phpinspect)
(defun phpinspect-project-add-include-dir (dir)
"Configure DIR as an include dir for the current project."

@ -31,8 +31,7 @@
(require 'phpinspect-class)
(defun phpinspect-suggest-functions (rctx)
(let* ((project (phpinspect--resolvecontext-project rctx))
(word (cadr (car (last (phpinspect--resolvecontext-subject rctx))))))
(let* ((project (phpinspect--resolvecontext-project rctx)))
(phpinspect-project-get-functions project)))
(defun phpinspect-suggest-variables-at-point (resolvecontext)

@ -134,6 +134,12 @@ users will have to use \\[phpinspect-purge-cache]."
(phpinspect--init-mode)
(phpinspect--disable-mode)))
(defgroup phpinspect '((phpinspect-projects custom-variable))
"PHPInspect, PHP code intelligence and completion"
:group 'programming
:group 'php
:link '(function-link phpinspect-mode))
(define-minor-mode phpinspect-mode
"A minor mode for intelligent completion for and interaction
with PHP files.
@ -189,7 +195,7 @@ Example configuration:
(add-hook 'php-mode-hook #'my-php-personal-hook)
;; End example configuration."
:after-hook (phpinspect--mode-function))
:after-hook (phpinspect--mode-function))
(defun phpinspect--buffer-index (buffer)
(with-current-buffer buffer phpinspect--buffer-index))

Loading…
Cancel
Save