processCommentWithoutTools method

String processCommentWithoutTools (
  1. String documentationComment
)

Process a documentationComment, performing various actions based on {@}-style directives, except {@tool}, returning the processed result.

Implementation

String processCommentWithoutTools(String documentationComment) {
  var docs = stripComments(documentationComment);
  if (!docs.contains('{@')) {
    return docs;
  }
  docs = _injectExamples(docs);
  docs = _injectYouTube(docs);
  docs = _injectAnimations(docs);
  // TODO(srawlins): Processing templates here causes #2281. But leaving them
  // unprocessed causes #2272.
  docs = _stripHtmlAndAddToIndex(docs);
  return docs;
}