public static void ReportCannotApplyUnaryOperator(this ICollection<Diagnostic> diagnostics, SyntaxToken operatorToken, TypeSymbol type) { var operatorName = operatorToken.Text; var typeName = type.ToDisplayName(); diagnostics.Report(operatorToken.Span, DiagnosticId.CannotApplyUnaryOperator, operatorName, typeName); }