check method

  1. @override
void check(
  1. DcqRegistry registry
)

Implementation

@override
void check(
  DcqRegistry registry,
) {
  registry.addCompilationUnit((node) {
    Token? token = node.beginToken;
    while (token != null) {
      Token? comment = token.precedingComments;
      while (comment != null) {
        if (comment.type == TokenType.SINGLE_LINE_COMMENT) {
          _checkComment(comment);
        }
        comment = comment.next;
      }
      if (token.type == TokenType.EOF) break;
      token = token.next;
    }
  });
}