48 references to ERR_BadVarDecl
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1224
or ErrorCode.
ERR_BadVarDecl
Parser\LanguageParser.cs (1)
5473
argumentList = this.AddError(argumentList, ErrorCode.
ERR_BadVarDecl
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Semantics\OutVarTests.cs (20)
20684
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x4").WithLocation(10, 17),
20886
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
20999
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21099
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21196
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21332
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
21558
(int)ErrorCode.
ERR_BadVarDecl
,
21756
(int)ErrorCode.
ERR_BadVarDecl
,
21957
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22109
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22204
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22372
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22538
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
22988
int[] exclude = new int[] { (int)ErrorCode.
ERR_BadVarDecl
,
31742
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x1").WithLocation(3, 10),
31770
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(out var x1").WithLocation(3, 10),
31829
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 10),
31857
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 10),
31922
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(H.TakeOutParam(1, out var x1)").WithLocation(3, 25),
31947
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 (6)
Parsing\AsyncStreamsParsingTests.cs (1)
195
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(this").WithLocation(6, 21),
Parsing\ExtensionsParsingTests.cs (2)
2262
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(Type").WithLocation(3, 20),
2336
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(Type").WithLocation(3, 20),
Parsing\ParserErrorMessageTests.cs (1)
4393
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(").WithLocation(4, 26),
Parsing\ParsingErrorRecoveryTests.cs (1)
8702
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(").WithLocation(1, 3),
Parsing\TopLevelStatementsParsingTests.cs (1)
2309
Diagnostic(ErrorCode.
ERR_BadVarDecl
, "(x, y").WithLocation(1, 11),