| Index: pkg/analyzer/lib/src/generated/resolver.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
|
| index e26126f0c2db470b9e0ebc52b5a40f0b6b1cee7a..bd862163a0e8be05497d4cd90ddafb3508d24232 100644
|
| --- a/pkg/analyzer/lib/src/generated/resolver.dart
|
| +++ b/pkg/analyzer/lib/src/generated/resolver.dart
|
| @@ -8554,14 +8554,13 @@ class ToDoFinder {
|
| * @param commentToken the comment token to analyze
|
| */
|
| void _scrapeTodoComment(Token commentToken) {
|
| - JavaPatternMatcher matcher =
|
| - new JavaPatternMatcher(TodoCode.TODO_REGEX, commentToken.lexeme);
|
| - if (matcher.find()) {
|
| + Iterable<Match> matches = TodoCode.TODO_REGEX.allMatches(commentToken.lexeme);
|
| + for (Match match in matches) {
|
| int offset =
|
| - commentToken.offset + matcher.start() + matcher.group(1).length;
|
| - int length = matcher.group(2).length;
|
| + commentToken.offset + match.start + match.group(1).length;
|
| + int length = match.group(2).length;
|
| _errorReporter.reportErrorForOffset(
|
| - TodoCode.TODO, offset, length, [matcher.group(2)]);
|
| + TodoCode.TODO, offset, length, [match.group(2)]);
|
| }
|
| }
|
| }
|
|
|