8 references to ERR_BadIndexCount
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (2)
3772
Error(diagnostics, ErrorCode.
ERR_BadIndexCount
, nonNullSyntax, type.Rank);
7997
Error(diagnostics, ErrorCode.
ERR_BadIndexCount
, node, rank);
Errors\ErrorFacts.cs (1)
594
case ErrorCode.
ERR_BadIndexCount
:
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (2)
620
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "args[0, 0]").WithArguments("1").WithLocation(6, 27)
777
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "args[/*</bind>*/").WithArguments("1").WithLocation(6, 27)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\SemanticErrorTests.cs (3)
970
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_BadIndexCount
, Line = 9, Column = 25 } });
19506
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "a[-1, -1]").WithArguments("1"),
19508
Diagnostic(ErrorCode.
ERR_BadIndexCount
, "b[-1]").WithArguments("2"));