check method
Implementation
@override
void check(
DcqRegistry registry,
) {
registry.addEnumDeclaration((node) {
for (final constant in node.body.constants) {
final args = constant.arguments;
if (args == null) continue;
if (args.constructorSelector != null) continue;
if (args.argumentList.arguments.isEmpty) {
reportAtToken(constant.name);
}
}
});
}