check method
Inspect a parsed file and return any findings.
MUST be pure (no side effects, no I/O). MUST be fast (<10ms typical). MUST return an empty list rather than throw on unexpected input.
Implementation
@override
List<Issue> check(ParsedFile file) {
final issues = <Issue>[];
final visitor = _MissingConstVisitor(file, issues);
file.unit.visitChildren(visitor);
return issues;
}