10 references to ERR_BadUnaryOp
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Expressions.cs (7)
7631
diagnostics.Add(ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), SyntaxFacts.GetText(operatorToken.Kind()), leftType);
7648
diagnostics.Add(ErrorCode.
ERR_BadUnaryOp
, node.Location, SyntaxFacts.GetText(operatorToken.Kind()), msgId.Localize());
7724
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, node, operatorToken.Text, boundLeft.Display);
11122
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_BadUnaryOp
, SyntaxFacts.GetText(operatorToken.Kind()), msgId.Localize());
11132
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), operatorToken.Text, receiver.Display);
11139
Error(diagnostics, ErrorCode.
ERR_BadUnaryOp
, operatorToken.GetLocation(), operatorToken.Text, receiverType);
11146
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