registerNodeProcessors method

  1. @override
void registerNodeProcessors(
  1. RuleVisitorRegistry registry,
  2. RuleContext context
)
override

Registers node processors in the given registry.

The node processors may use the provided context to access information that is not available from the AST nodes or their associated elements.

Implementation

@override
void registerNodeProcessors(
  RuleVisitorRegistry registry,
  RuleContext context,
) {
  final visitor = _Visitor(this, context);
  registry.addInstanceCreationExpression(this, visitor);
}