Skip to content

Commit 6c30676

Browse files
srawlinsCommit Queue
authored andcommitted
linter: Migrate reportLint to reportAtNode in prefer_mixin
Change-Id: Ie63886a744a1b4e6c6c9db8b6527da6c7afd2860 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425322 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 77e6cdc commit 6c30676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/linter/lib/src/rules/prefer_mixin.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class _Visitor extends SimpleAstVisitor<void> {
4040
var element = type.element3;
4141
if (element is MixinElement) continue;
4242
if (element is ClassElement && !element.isMixinClass) {
43-
rule.reportLint(mixinNode, arguments: [mixinNode.name2.lexeme]);
43+
rule.reportAtNode(mixinNode, arguments: [mixinNode.name2.lexeme]);
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)