16 references to ERR_DeconstructRequiresExpression
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Deconstruct.cs (3)
228Error(diagnostics, ErrorCode.ERR_DeconstructRequiresExpression, boundRHS.Syntax); 496Error(diagnostics, ErrorCode.ERR_DeconstructRequiresExpression, element.Syntax); 514Error(diagnostics, ErrorCode.ERR_DeconstructRequiresExpression, element.Syntax);
Errors\ErrorFacts.cs (1)
1755or ErrorCode.ERR_DeconstructRequiresExpression
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\DeconstructionTests.cs (5)
1082Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").WithLocation(7, 28) 2511Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").WithLocation(6, 38) 2545Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").WithLocation(6, 34), 2692Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").WithLocation(6, 61), 2829Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").WithLocation(7, 47),
Semantics\DelegateTypeTests.cs (4)
10541Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "Main").WithLocation(5, 28), 10550Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "() => { }").WithLocation(6, 24)); 14775Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "Main").WithLocation(8, 24), 14778Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "(ref int x) => x").WithLocation(10, 24));
Semantics\ImplicitObjectCreationTests.cs (3)
1148Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "new()").WithLocation(6, 22), 1166Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "new()").WithLocation(7, 26), 1184Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "new()").WithLocation(8, 22)