Skip to content

Commit 4334ac9

Browse files
pqCommit Queue
authored and
Commit Queue
committed
[element model] migrate document_ignores
Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: Ib2a67357d403b5741ac28b72676334135e03b3d6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/387607 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 4a632a3 commit 4334ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class _Visitor extends SimpleAstVisitor<void> {
3939

4040
@override
4141
void visitCompilationUnit(CompilationUnit node) {
42-
var content = node.declaredElement?.source.contents.data;
42+
var content = node.declaredFragment?.source.contents.data;
4343
for (var comment in node.ignoreComments) {
4444
var ignoredElements = comment.ignoredElements;
4545
if (ignoredElements.isEmpty) {

0 commit comments

Comments
 (0)