Remove unused lexical variables and fix invalid inline-function

master
Hugo Thunnissen 1 month ago
parent 8734c9418d
commit 93f5cb1f45

@ -243,12 +243,10 @@ that there are import (\"use\") statements for them."
(tree (phpinspect-buffer-reparse-if-not-fresh buffer))
(index (phpinspect--index-tokens
tree nil (phpinspect-buffer-location-resolver buffer)))
(classes (alist-get 'classes index))
(namespaces (alist-get 'namespaces index))
(imports (alist-get 'imports index))
(project (phpinspect-buffer-project buffer))
(used-types (alist-get 'used-types index))
class-tokens
namespace-tokens)
;; First collect tokens in the buffer via which the namespace tokens can

@ -602,7 +602,8 @@ nature like argument lists"
(list :object-attrib name)))))
(define-inline phpinspect--namespace-should-end-at-block-p (tokens)
(>= 4 (length tokens)))
(inline-quote
(>= 4 (length ,tokens))))
(phpinspect-defparser namespace
:tree-keyword "namespace"

Loading…
Cancel
Save