13 references to ERR_LambdaWithAttributesToExpressionTree
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
2226
or ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
613
Error(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, node);
630
_diagnostics.Add(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, p.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\LambdaTests.cs (10)
6242
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A] (x) => x").WithLocation(5, 32)
6264
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A][A] (x) => x").WithLocation(5, 32)
6285
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "x").WithLocation(5, 37)
6307
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "x").WithLocation(5, 40)
6328
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "x").WithLocation(5, 42)
6349
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[return: A] (x) => x").WithLocation(5, 32)
6371
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[return: A][return: A] (x) => x").WithLocation(5, 32)
6392
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A][return: A] (x) => x").WithLocation(5, 32)
6413
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[A] ([A] x) => x").WithLocation(5, 32)
6434
Diagnostic(ErrorCode.
ERR_LambdaWithAttributesToExpressionTree
, "[return: A] ([A] x) => x").WithLocation(5, 32)