visitComment method
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.
}
}
}