Function: icalendar-ast-node-required-child-p

icalendar-ast-node-required-child-p is a byte-compiled function defined in icalendar-ast.el.gz.

Signature

(icalendar-ast-node-required-child-p CHILD PARENT)

Documentation

Return non-nil if CHILD is required by PARENT's node type.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-ast.el.gz
(defun ical:ast-node-required-child-p (child parent)
  "Return non-nil if CHILD is required by PARENT's node type."
  (let* ((type (ical:ast-node-type parent))
         (child-spec (get type 'ical:child-spec))
         (child-type (ical:ast-node-type child)))
    (or (memq child-type (plist-get child-spec :one))
        (memq child-type (plist-get child-spec :one-or-more)))))