Skip to content

Commit 3b11cd5

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: Remove deprecated reportLintForOffset and reportLintForToken
Change-Id: I7862b8984c7fa62dffacb1d17f4ef06be151a46c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425141 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 5becc40 commit 3b11cd5

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

pkg/analyzer/lib/src/lint/linter.dart

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -343,34 +343,6 @@ abstract class LintRule {
343343
contextMessages: contextMessages,
344344
errorCode: errorCode,
345345
);
346-
347-
@Deprecated('Use reportAtOffset instead')
348-
void reportLintForOffset(
349-
int offset,
350-
int length, {
351-
List<Object> arguments = const [],
352-
List<DiagnosticMessage>? contextMessages,
353-
ErrorCode? errorCode,
354-
}) => reportAtOffset(
355-
offset,
356-
length,
357-
arguments: arguments,
358-
contextMessages: contextMessages,
359-
errorCode: errorCode,
360-
);
361-
362-
@Deprecated('Use reportAtToken')
363-
void reportLintForToken(
364-
Token token, {
365-
List<Object> arguments = const [],
366-
List<DiagnosticMessage>? contextMessages,
367-
ErrorCode? errorCode,
368-
}) => reportAtToken(
369-
token,
370-
arguments: arguments,
371-
contextMessages: contextMessages,
372-
errorCode: errorCode,
373-
);
374346
}
375347

376348
/// Provides access to information needed by lint rules that is not available

0 commit comments

Comments
 (0)