   "Insert function arguments after completion for CANDIDATE."
   (--when-let (and (company-ycmd--extended-features-p)
                    company-ycmd-insert-arguments
-                   (company-ycmd--params candidate))
+                   (get-text-property 0 'params candidate))
     (insert it)
     (company-template-c-like-templatify
      (concat candidate it))))

                                      company-ycmd-insert-arguments
                                      (stringp detailed-info)
                                      (s-split "\n" detailed-info t)))
           (entries (or overloaded-functions (list menu-text)))
           candidates)
      (dolist (cand (delete-dups entries) candidates)
        (let* ((return-type (or (and overloaded-functions
                                     (string-match
                                      (concat "\\(.*\\) "
                                              (regexp-quote insertion-text))
                                      cand)
                                     (match-string 1 cand))
                                extra-menu-info))
               (meta (if overloaded-functions cand detailed-info))
               (doc (cdr (assoc 'doc_string extra-data)))
               (kind (company-ycmd--convert-kind-cpp kind)))
          (setq candidates
                (cons (propertize insertion-text 'return_type return-type
                                  'meta meta 'kind kind 'doc doc 'params cand)
                      candidates)))))))

(defun company-ycmd--construct-candidate-go (candidate)

            meta-trimmed))
      meta)))

(defun company-ycmd--annotation (candidate)
  "Fetch the annotation text-property from a CANDIDATE string."
  (let ((kind (and company-ycmd-show-completion-kind
                   (get-text-property 0 'kind candidate)))
        (return-type (get-text-property 0 'return_type candidate))
        (params (get-text-property 0 'params candidate)))
    (concat params
            (when (s-present? return-type)
              (s-prepend " -> " return-type))
            (when (s-present? kind)
              (format " [%s]" kind)))))

(defconst company-ycmd--include-declaration
  (rx line-start "#" (zero-or-more blank) (or "include" "import")
