processCommentDirectives method

String processCommentDirectives (
  1. String docs
)

Implementation

String processCommentDirectives(String docs) {
  // The vast, vast majority of doc comments have no directives.
  if (!docs.contains('{@')) {
    return docs;
  }
  _checkForUnknownDirectives(docs);
  docs = _injectExamples(docs);
  docs = _injectYouTube(docs);
  docs = _injectAnimations(docs);
  docs = _stripMacroTemplatesAndAddToIndex(docs);
  docs = _stripHtmlAndAddToIndex(docs);
  return docs;
}