;;(semantic-refresh-tags-safe)
(if (semantic-active-p)
(with-syntax-table semantic-lex-syntax-table
- (let* ((context (if (semantic-analyze-context-child-p context)
+ (let* ((context (if (cl-typep context 'semantic-analyze-context)
context
(semantic-analyze-current-context context)))
(ans (if (not context)
"Are there any incomplete entries in CACHE?"
(let ((ans nil))
(dolist (tab cache)
- (when (and (semanticdb-table-child-p tab)
+ (when (and (cl-typep tab 'semanticdb-table)
(not (number-or-marker-p (oref tab pointmax))))
(setq ans t))
)
(semantic-buffer-local-value 'semanticdb-current-table path))
((and (stringp path) (file-exists-p path))
(semanticdb-file-table-object path t))
- ((semanticdb-abstract-table-child-p path)
+ ((cl-typep path 'semanticdb-abstract-table)
path)
(t nil))))
(if table
but should be good enough for debugging assertions."
(and (listp resultp)
(listp (car resultp))
- (semanticdb-abstract-table-child-p (car (car resultp)))
+ (cl-typep (car (car resultp)) 'semanticdb-abstract-table)
(or (semantic-tag-p (car (cdr (car resultp))))
(null (car (cdr (car resultp)))))))
(and (listp resultp)
(listp (car resultp))
(let ((tag-to-test (car-safe (cdr (car resultp)))))
- (or (and (semanticdb-abstract-table-child-p (car (car resultp)))
+ (or (and (cl-typep (car (car resultp)) 'semanticdb-abstract-table)
(or (semantic-tag-p tag-to-test)
(null tag-to-test)))
(and (null (car (car resultp)))
(while refs
(let* ((ok t)
(db (car refs))
- (f (when (semanticdb-table-child-p db)
+ (f (when (cl-typep db 'semanticdb-table)
(semanticdb-full-filename db)))
)
(defun semanticdb-typecache-length (thing)
"How long is THING?
Debugging function."
- (cond ((semanticdb-typecache-child-p thing)
+ (cond ((cl-typep thing 'semanticdb-typecache)
(length (oref thing stream)))
((semantic-tag-p thing)
(length (semantic-tag-type-members thing)))
((and (featurep 'semantic/db)
(require 'semantic/db-mode)
(semanticdb-minor-mode-p)
- (semanticdb-abstract-table-child-p something))
+ (cl-typep something 'semanticdb-abstract-table))
(semanticdb-refresh-table something)
(semanticdb-get-tags something))
;; Semanticdb find-results
(princ ") ")
(cond ((stringp (car code))
(prin1 (car code)))
- ((srecode-template-inserter-child-p (car code))
+ ((cl-typep (car code) 'srecode-template-inserter)
(srecode-dump (car code) indent))
(t
(princ "Unknown Code: ")
initfrombuff t))
;; Parent is another dictionary
- ((srecode-dictionary-child-p buffer-or-parent)
+ ((cl-typep buffer-or-parent 'srecode-dictionary)
(setq parent buffer-or-parent
buffer (oref buffer-or-parent buffer)
origin (concat (eieio-object-name buffer-or-parent) " in "
(srecode-dictionary-set-value dict name value))
;; Value is a dictionary; insert as child dictionary.
- ((srecode-dictionary-child-p value)
+ ((cl-typep value 'srecode-dictionary)
(srecode-dictionary-merge
(srecode-dictionary-add-section-dictionary dict name)
value t))
;; No default value.
((not dv) (insert name))
;; A compound value as the default? Recurse.
- ((srecode-dictionary-compound-value-child-p dv)
+ ((cl-typep dv 'srecode-dictionary-compound-value)
(srecode-compound-toString dv function dictionary))
;; A string that is empty? Use the name.
((and (stringp dv) (string= dv ""))
))
(princ "\n")
)
- ((srecode-dictionary-compound-value-child-p entry)
+ ((cl-typep entry 'srecode-dictionary-compound-value)
(srecode-dump entry indent)
(princ "\n")
)