12 references to ERR_ByRefParameterInExpressionTree
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1385
case ErrorCode.
ERR_ByRefParameterInExpressionTree
:
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
534
_diagnostics.Add(ErrorCode.
ERR_ByRefParameterInExpressionTree
, p.Locations[0]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\RefFieldTests.cs (8)
15606
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "x").WithLocation(13, 38),
15609
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "y").WithLocation(13, 56),
15618
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "x").WithLocation(14, 38),
15621
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "y").WithLocation(14, 49),
15648
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "x").WithLocation(20, 44),
15651
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "y").WithLocation(20, 62),
15660
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "x").WithLocation(21, 44),
15663
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "y").WithLocation(21, 55));
Semantics\SemanticErrorTests.cs (2)
17555
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "x").WithLocation(7, 75)
17575
Diagnostic(ErrorCode.
ERR_ByRefParameterInExpressionTree
, "x").WithLocation(7, 74)