visitComment method

  1. @override
void visitComment(
  1. Comment node
)
override

Implementation

@override
void visitComment(Comment node) {
  super.visitComment(node);

  for (var directive in node.docDirectives) {
    switch (directive.type) {
      case DocDirectiveType.example:
        _handleExampleDirective(directive);
        break;
      case DocDirectiveType.tool:
        _handleToolDirective(directive);
        break;
      default:
      // Ignore other kinds.
    }
  }
}