47 references to ERR_BadVarDecl
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1224
or ErrorCode.
ERR_BadVarDecl
Parser\LanguageParser.cs (1)
5462
argumentList = this.AddError(argumentList, ErrorCode.
ERR_BadVarDecl
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Semantics\OutVarTests.cs (20)
20695
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x4").WithLocation(10, 17),
20897
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21010
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21110
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21207
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21343
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21569
(int)ErrorCode.
ERR_BadVarDecl
,
21767
(int)ErrorCode.
ERR_BadVarDecl
,
21968
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22120
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22215
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22383
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22549
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22999
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
31753
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x1").WithLocation(3, 10),
31781
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x1").WithLocation(3, 10),
31840
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 10),
31868
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 10),
31933
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 25),
31958
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 25),
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
,
12398
(int)ErrorCode.
ERR_BadVarDecl
,
12591
(int)ErrorCode.
ERR_BadVarDecl
,
12789
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
12935
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13024
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13186
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13346
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
13740
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.Syntax.UnitTests (5)
Parsing\AsyncStreamsParsingTests.cs (1)
195
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(this").WithLocation(6, 21),
Parsing\ExtensionsParsingTests.cs (2)
1863
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(Type").WithLocation(3, 20),
1937
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(Type").WithLocation(3, 20),
Parsing\ParserErrorMessageTests.cs (1)
4393
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(").WithLocation(4, 26),
Parsing\TopLevelStatementsParsingTests.cs (1)
2309
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(x, y").WithLocation(1, 11),