Function: semantic-lex-type-get

semantic-lex-type-get is a byte-compiled function defined in lex.el.gz.

Signature

(semantic-lex-type-get TYPE PROPERTY &optional NOERROR)

Documentation

For symbol with TYPE name, return its PROPERTY value.

If optional argument NOERROR is non-nil return nil if a symbol with TYPE name does not exist. Otherwise signal an error.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/lex.el.gz
(defsubst semantic-lex-type-get (type property &optional noerror)
  "For symbol with TYPE name, return its PROPERTY value.
If optional argument NOERROR is non-nil return nil if a symbol with
TYPE name does not exist.  Otherwise signal an error."
  (let ((sym (semantic-lex-type-symbol type)))
    (if sym
        (get sym property)
      (unless noerror
        (semantic-lex-type-invalid type)))))