check method
Implementation
@override
void check(
DcqRegistry registry,
) {
registry.addFieldDeclaration((node) {
if (!node.fields.isFinal) return;
final type = node.fields.type;
if (type is! NamedType || type.question == null) return;
for (final variable in node.fields.variables) {
final init = variable.initializer;
if (init == null) continue;
if (init is NullLiteral) continue;
reportAtToken(variable.name);
}
});
}