Skip to content

Commit

Permalink
[element model] migrate document_ignores
Browse files Browse the repository at this point in the history
Bug: dart-lang/linter#5099
Change-Id: Ib2a67357d403b5741ac28b72676334135e03b3d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/387607
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
  • Loading branch information
pq authored and Commit Queue committed Sep 30, 2024
1 parent 4a632a3 commit 4334ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/linter/lib/src/rules/document_ignores.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _Visitor extends SimpleAstVisitor<void> {

@override
void visitCompilationUnit(CompilationUnit node) {
var content = node.declaredElement?.source.contents.data;
var content = node.declaredFragment?.source.contents.data;
for (var comment in node.ignoreComments) {
var ignoredElements = comment.ignoredElements;
if (ignoredElements.isEmpty) {
Expand Down

0 comments on commit 4334ac9

Please sign in to comment.