commit | 7595998a7bfb9b4b04e02d64926054402bfc61a3 | [log] [tgz] |
---|---|---|
author | pq <pquitslund@google.com> | Thu Oct 03 19:05:48 2024 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 03 19:05:48 2024 +0000 |
tree | e5a6153125d21a971d551a4e76d978508b782fdf | |
parent | b18b40f80cf289237fd9d673fb957fe958cac92f [diff] |
[element model] migrate `prefer_const_literals_to_create_immutables` Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: Ie2e8976efefccbf56dddaae4240596c916aa42b8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388180 Auto-Submit: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/linter/lib/src/rules/prefer_const_literals_to_create_immutables.dart b/pkg/linter/lib/src/rules/prefer_const_literals_to_create_immutables.dart index 21ddfc4..abe1a59 100644 --- a/pkg/linter/lib/src/rules/prefer_const_literals_to_create_immutables.dart +++ b/pkg/linter/lib/src/rules/prefer_const_literals_to_create_immutables.dart
@@ -80,7 +80,7 @@ InterfaceType? current = type; while (current != null) { - if (current.element.hasImmutable) return true; + if (current.element3.hasImmutable) return true; current = current.superclass; }