10 references to ERR_BadUnaryOp
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Expressions.cs (7)
7628
diagnostics.Add(ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), SyntaxFacts.GetText(operatorToken.Kind()), leftType);
7645
diagnostics.Add(ErrorCode.
ERR_BadUnaryOp
, node.Location, SyntaxFacts.GetText(operatorToken.Kind()), msgId.Localize());
7721
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, node, operatorToken.Text, boundLeft.Display);
11119
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_BadUnaryOp
, SyntaxFacts.GetText(operatorToken.Kind()), msgId.Localize());
11129
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), operatorToken.Text, receiver.Display);
11136
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), operatorToken.Text, receiverType);
11143
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), operatorToken.Text, receiverType);
Binder\Binder_Operators.cs (2)
807
ErrorCode.
ERR_BadUnaryOp
; // Operator '{0}' cannot be applied to operand of type '{1}'
3177
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, node, SyntaxFacts.GetText(SyntaxKind.IsKeyword), operand.Display);
Errors\ErrorFacts.cs (1)
648
or ErrorCode.
ERR_BadUnaryOp