8 references to ERR_BadIndexCount
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (2)
4482
Error(diagnostics, ErrorCode.
ERR_BadIndexCount
, nonNullSyntax, type.Rank);
9724
Error(diagnostics, ErrorCode.
ERR_BadIndexCount
, node, rank);
Errors\ErrorFacts.cs (1)
655
or ErrorCode.
ERR_BadIndexCount
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (2)
652
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "args[0, 0]").WithArguments("1").WithLocation(6, 27)
809
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "args[/*</bind>*/").WithArguments("1").WithLocation(6, 27)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\SemanticErrorTests.cs (3)
968
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_BadIndexCount
, Line = 9, Column = 25 } });
19730
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "a[-1, -1]").WithArguments("1"),
19732
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "b[-1]").WithArguments("2"));