code: func (head *Head) DocKind() DocKind {
  	if head.Key != nil {
  		if head.Value != nil {
  			return PartialObjectDoc
  		}
  		return PartialSetDoc
  	}
  	return CompleteDoc
  }
docs: // DocKind returns the type of document produced by this rule.