13 references to ERR_LambdaWithAttributesToExpressionTree
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
2169
case ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
526
Error(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, node);
543
_diagnostics.Add(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, p.Locations[0]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\LambdaTests.cs (10)
6206
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A] (x) => x").WithLocation(5, 32)
6228
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A][A] (x) => x").WithLocation(5, 32)
6249
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "x").WithLocation(5, 37)
6271
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "x").WithLocation(5, 40)
6292
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "x").WithLocation(5, 42)
6313
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[return: A] (x) => x").WithLocation(5, 32)
6335
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[return: A][return: A] (x) => x").WithLocation(5, 32)
6356
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A][return: A] (x) => x").WithLocation(5, 32)
6377
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A] ([A] x) => x").WithLocation(5, 32)
6398
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[return: A] ([A] x) => x").WithLocation(5, 32)