Skip to content

Commit 58cc805

Browse files
pqCommit Queue
authored andcommitted
[element model] fix diagnostic_describe_all_properties
Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: Ib3e52fbf1e8698e33fa5d9e33d87bff6e266009a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/390380 Auto-Submit: Phil Quitslund <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent e27cf7f commit 58cc805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class _Visitor extends SimpleAstVisitor<void> {
7474
@override
7575
void visitClassDeclaration(ClassDeclaration node) {
7676
// We only care about Diagnosticables.
77-
var type = node.declaredElement?.thisType;
77+
var type = node.declaredFragment?.element.thisType;
7878
if (!type.implementsInterface('Diagnosticable', '')) return;
7979

8080
var properties = <Token>[];

0 commit comments

Comments
 (0)