|
|
@ -148,16 +148,8 @@ that there are import (\"use\") statements for them."
|
|
|
|
(phpinspect-project-autoload project))))
|
|
|
|
(phpinspect-project-autoload project))))
|
|
|
|
(phpinspect-add-use-interactive
|
|
|
|
(phpinspect-add-use-interactive
|
|
|
|
type phpinspect-current-buffer project (phpinspect-meta-token namespace))
|
|
|
|
type phpinspect-current-buffer project (phpinspect-meta-token namespace))
|
|
|
|
;; Buffer has been modified by adding type, update tree +
|
|
|
|
;; Buffer has been modified by adding type, update buffer map
|
|
|
|
;; location map. This is not optimal but will have to do until
|
|
|
|
;; and index for correct location data.
|
|
|
|
;; partial parsing is implemented.
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
;; Note: this basically implements a bug where the locations
|
|
|
|
|
|
|
|
;; of classes are no longer congruent with their location in
|
|
|
|
|
|
|
|
;; the buffer's code. In files that contain multiple namespace
|
|
|
|
|
|
|
|
;; blocks this could cause problems as a namespace may grow by
|
|
|
|
|
|
|
|
;; added import statements and start envelopping the classes
|
|
|
|
|
|
|
|
;; below it.
|
|
|
|
|
|
|
|
(setq index
|
|
|
|
(setq index
|
|
|
|
(phpinspect--index-tokens
|
|
|
|
(phpinspect--index-tokens
|
|
|
|
(phpinspect-buffer-parse phpinspect-current-buffer)
|
|
|
|
(phpinspect-buffer-parse phpinspect-current-buffer)
|
|
|
|