Function: semanticdb-get-typecache
semanticdb-get-typecache is a byte-compiled function defined in
db-typecache.el.gz.
Signature
(semanticdb-get-typecache ARG &rest ARGS)
Implementations
(semanticdb-get-typecache (DB semanticdb-project-database)) in `semantic/db-typecache.el'.
Retrieve the typecache from the semantic database DB. If there is no table, create one, and fill it in.
(semanticdb-get-typecache (TABLE semanticdb-abstract-table)) in `semantic/db-typecache.el'.
Retrieve the typecache from the semanticdb TABLE. If there is no table, create one, and fill it in.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/db-typecache.el.gz
(cl-defmethod semanticdb-get-typecache ((table semanticdb-abstract-table))
"Retrieve the typecache from the semanticdb TABLE.
If there is no table, create one, and fill it in."
(semanticdb-refresh-table table)
(let* ((idx (semanticdb-get-table-index table))
(cache (oref idx type-cache))
)
;; Make sure we have a cache object in the DB index.
(when (not cache)
;; The object won't change as we fill it with stuff.
(setq cache (semanticdb-typecache))
(oset idx type-cache cache))
cache))