45 references to ERR_BadVarDecl
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1162
case ErrorCode.
ERR_BadVarDecl
:
Parser\LanguageParser.cs (1)
5040
argumentList = this.AddError(argumentList, ErrorCode.
ERR_BadVarDecl
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (19)
Semantics\PatternMatchingTests_Global.cs (6)
5928
Diagnostic(ErrorCode.
ERR_BadVarDecl
, @"(""5948"" is var x1").WithLocation(3, 10),
5960
Diagnostic(ErrorCode.
ERR_BadVarDecl
, @"(""5948"" is var x1").WithLocation(3, 10),
6013
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "((1 is var x1)").WithLocation(3, 10),
6050
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "((1 is var x1)").WithLocation(3, 10),
6100
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.Dummy(1 is var x1)").WithLocation(3, 25),
6126
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.Dummy(1 is var x1)").WithLocation(3, 25),
Semantics\PatternMatchingTests_Scope.cs (13)
11784
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
11875
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
11969
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12060
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12184
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12397
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12556
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12740
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12886
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12975
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13137
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13297
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13691
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_InvalidStatement.cs (1)
54
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "( 1 ").WithLocation(8, 26),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\OutVarTests.cs (20)
20684
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x4").WithLocation(10, 17),
20886
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
20996
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21096
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21193
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21329
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21554
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21719
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21909
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22061
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22156
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22324
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22490
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22940
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
31694
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x1").WithLocation(3, 10),
31722
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x1").WithLocation(3, 10),
31781
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 10),
31809
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 10),
31874
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 25),
31899
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 25),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\AsyncStreamsParsingTests.cs (1)
195
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(this").WithLocation(6, 21),
Parsing\ParserErrorMessageTests.cs (1)
4472
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(").WithLocation(4, 26),
Parsing\TopLevelStatementsParsingTests.cs (1)
2306
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(x, y").WithLocation(1, 11),