Skip to content

Commit 04d70b9

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: Make ResolutionVisitor._libraryElement final
Why did `https://dart.dev/tools/linter-rules/prefer_final_fields` not catch this? 🤷 Change-Id: If3d45d8b86868062ddcdd7bae785abb93fed5f69 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401322 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent d0f34d9 commit 04d70b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/lib/src/dart/resolver/resolution_visitor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ElementHolder {
6868
/// 4. Resolve all [GenericFunctionType]s - set their types.
6969
/// 5. Rewrite AST where resolution provides a more accurate understanding.
7070
class ResolutionVisitor extends RecursiveAstVisitor<void> {
71-
LibraryElementImpl _libraryElement;
71+
final LibraryElementImpl _libraryElement;
7272
final TypeProvider _typeProvider;
7373
final CompilationUnitElementImpl _unitElement;
7474
final ErrorReporter _errorReporter;

0 commit comments

Comments
 (0)