visitNamedType method

  1. @override
void visitNamedType(
  1. NamedType node
)
override

Implementation

@override
void visitNamedType(NamedType node) {
  final type = node.type;
  if (type is InterfaceType) {
    final element = node.name.staticElement;
    if (element is TypeParameterizedElement &&
        element.typeParameters.isNotEmpty &&
        node.typeArguments == null &&
        node.parent is! IsExpression &&
        !element.hasOptionalTypeArgs) {
      reportAstNode(node, message: _message, correction: _correction);
    }
  }
}