Function: semantic-tag-protection

semantic-tag-protection is a byte-compiled function defined in tag-ls.el.gz.

Signature

(semantic-tag-protection TAG &optional PARENT)

Documentation

Return protection information about TAG with optional PARENT.

This function returns on of the following symbols:
   nil - No special protection. Language dependent.
   public - Anyone can access this TAG.
   private - Only methods in the local scope can access TAG.
   protected - Like private for outside scopes, like public for child
                 classes.
Some languages may choose to provide additional return symbols specific to themselves. Use of this function should allow for this.

The default behavior (if not overridden with tag-protection is to return a symbol based on type modifiers.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag-ls.el.gz
(define-overloadable-function semantic-tag-protection (tag &optional parent)
  "Return protection information about TAG with optional PARENT.
This function returns on of the following symbols:
   nil         - No special protection.  Language dependent.
   `public'    - Anyone can access this TAG.
   `private'   - Only methods in the local scope can access TAG.
   `protected' - Like private for outside scopes, like public for child
                 classes.
Some languages may choose to provide additional return symbols specific
to themselves.  Use of this function should allow for this.

The default behavior (if not overridden with `tag-protection'
is to return a symbol based on type modifiers."
  (and (not parent)
       (semantic-tag-overlay tag)
       (semantic-tag-in-buffer-p tag)
       (setq parent (semantic-tag-calculate-parent tag)))
  (:override))