10 references to ERR_AnonymousMethodToExpressionTree
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2037
Error(diagnostics, ErrorCode.
ERR_AnonymousMethodToExpressionTree
, syntax);
Errors\ErrorFacts.cs (1)
1380
case ErrorCode.
ERR_AnonymousMethodToExpressionTree
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\DelegateTypeTests.cs (7)
643
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "delegate () { return 1; }").WithLocation(6, 48),
646
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "(Expression)delegate () { return 2; }").WithLocation(7, 13),
649
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "delegate () { return 3; }").WithLocation(8, 30),
652
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "(LambdaExpression)delegate () { return 4; }").WithLocation(9, 13));
3174
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "delegate () { return 0; }").WithLocation(9, 11),
3177
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "delegate () { return string.Empty; }").WithLocation(10, 11));
4377
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "delegate () { return 1; }").WithLocation(10, 13)
Semantics\SemanticErrorTests.cs (1)
17470
Diagnostic(ErrorCode.
ERR_AnonymousMethodToExpressionTree
, "delegate() { }")