Remove some overly verbose logging
ci/woodpecker/push/woodpecker Pipeline was successful Details

WIP-cache
Hugo Thunnissen 10 months ago
parent 9d6ce5726d
commit 281c5e4ae6

@ -324,7 +324,6 @@
(ending))
(unless (hash-table-empty-p ends)
(while (not (or (<= point 0) (setq ending (phpinspect-bmap-tokens-ending-at bmap point))))
(phpinspect--log "Checking point %d" point)
(setq point (- point 1)))
(car (last ending)))))

@ -56,22 +56,17 @@
(phpinspect-namespace-p token)))
(defun phpinspect-find-statement-before-point (bmap meta point)
(phpinspect--log "going through %s" (phpinspect-meta-token meta))
(let ((children (reverse (cdr (phpinspect-meta-token meta)))))
(let ((previous-siblings))
(catch 'return
(dolist (child children)
(when (phpinspect-probably-token-p child)
(phpinspect--log "probably token: %s" child)
;; (phpinspect--log "Child: %s" child)
(setq child (phpinspect-bmap-token-meta bmap child))
(when (< (phpinspect-meta-start child) point)
(if (and (not previous-siblings) (phpinspect-blocklike-p (phpinspect-meta-token child)))
(progn
(phpinspect--log "recursing into %s" (phpinspect-meta-token child))
(throw 'return (phpinspect-find-statement-before-point bmap child point)))
(when (phpinspect-end-of-statement-p (phpinspect-meta-token child))
(phpinspect--log "returning %s, end of statement: %s" previous-siblings (phpinspect-meta-token child))
(throw 'return previous-siblings))
(push (phpinspect-meta-token child) previous-siblings)))))
previous-siblings))))

Loading…
Cancel
Save