Function: semanticdb-find-translate-path-javascript-mode

semanticdb-find-translate-path-javascript-mode is a byte-compiled function defined in db-javascript.el.gz.

Signature

(semanticdb-find-translate-path-javascript-mode PATH BRUTISH)

Documentation

Return a list of semanticdb tables associated with PATH.

If brutish, do the default action. If not brutish, do the default action, and append the system database (if available.) Override semanticdb-find-translate-path in javascript-mode buffers.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/db-javascript.el.gz
;;; Usage
;;
;; Unlike other tables, an omniscient database does not need to
;; be associated with a path.  Use this routine to always add ourselves
;; to a search list.
(define-mode-local-override semanticdb-find-translate-path javascript-mode
  (path brutish)
  "Return a list of semanticdb tables associated with PATH.
If brutish, do the default action.
If not brutish, do the default action, and append the system
database (if available.)"
  (let ((default
	  ;; When we recurse, disable searching of system databases
	  ;; so that our Javascript database only shows up once when
	  ;; we append it in this iteration.
	  (let ((semanticdb-search-system-databases nil)
		)
	    (semanticdb-find-translate-path-default path brutish))))
    ;; Don't add anything if BRUTISH is on (it will be added in that fcn)
    ;; or if we aren't supposed to search the system.
    (if (or brutish (not semanticdb-search-system-databases))
	default
      (let ((tables (apply #'append
			   (mapcar
			    (lambda (db) (semanticdb-get-database-tables db))
			    semanticdb-project-system-databases))))
	(append default tables)))))