diff --git a/phpinspect-imports.el b/phpinspect-imports.el index de679c4..b1de19a 100644 --- a/phpinspect-imports.el +++ b/phpinspect-imports.el @@ -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 diff --git a/phpinspect-parser.el b/phpinspect-parser.el index 8b4f79d..3b4eb07 100644 --- a/phpinspect-parser.el +++ b/phpinspect-parser.el @@ -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"