Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ac499c7

Browse files
Apply suggestions from code review
Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
1 parent 1263b6d commit ac499c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/const_finder/lib/const_finder.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ class _ConstVisitor extends RecursiveVisitor<void> {
7676

7777
@override
7878
void visitClass(Class node) {
79-
// check if this is a class that we should ignore
80-
if (_isStaticIconProvider(node)) {
81-
inIgnoredClass = true;
79+
// Check if this is a class that we should ignore.
80+
if (!_isStaticIconProvider(node)) {
81+
// Not an ignored class.
8282
super.visitClass(node);
83-
inIgnoredClass = false;
8483
return;
8584
}
86-
// not an ignored class
85+
inIgnoredClass = true;
8786
super.visitClass(node);
87+
inIgnoredClass = false;
8888
}
8989

9090
// Constants from classes annotated with an instance of StaticIconProvider

0 commit comments

Comments
 (0)