10 references to ERR_ArrayInitInBadPlace
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
613
return BindUnexpectedArrayInitializer((InitializerExpressionSyntax)node, diagnostics, ErrorCode.
ERR_ArrayInitInBadPlace
);
Errors\ErrorFacts.cs (1)
999
or ErrorCode.
ERR_ArrayInitInBadPlace
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_InvalidExpression.cs (2)
484
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 1, 1 }").WithLocation(6, 45),
536
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 1 }").WithLocation(6, 44)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\SemanticAnalyzerTests.cs (2)
1297
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 13, 14 }").WithLocation(15, 40),
1300
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 15, 16 }").WithLocation(15, 52),
Semantics\SemanticErrorTests.cs (1)
11623
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_ArrayInitInBadPlace
, Line = 6, Column = 21 } });
Semantics\StackAllocInitializerTests.cs (3)
857
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 42 }").WithLocation(6, 40),
860
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 42 }").WithLocation(7, 40),
863
Diagnostic(ErrorCode.
ERR_ArrayInitInBadPlace
, "{ 42 }").WithLocation(8, 40)