140 references to ERR_InvalidMemberDecl
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1154
case ErrorCode.
ERR_InvalidMemberDecl
:
Parser\LanguageParser.cs (2)
1721
token = this.AddError(token, ErrorCode.
ERR_InvalidMemberDecl
, token.Text);
2635
ErrorCode.
ERR_InvalidMemberDecl
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenDeconstructTests.cs (2)
4973
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(4, 16),
4985
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "1").WithArguments("1").WithLocation(4, 19),
CodeGen\CodeGenTupleTest.cs (1)
10960
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(8, 36));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Attributes\AttributeTests_Locations.cs (1)
74
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}"));
Semantics\PatternMatchingTests_Scope.cs (6)
3105
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 36),
3108
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 36),
3111
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(9, 39),
3114
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(9, 39),
3232
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 26),
3235
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 26),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\RecordStructTests.cs (2)
9742
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(11, 29),
9748
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(11, 32),
Semantics\RecordTests.cs (4)
2807
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=>").WithArguments("=>").WithLocation(6, 24),
2810
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(6, 28),
2813
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(6, 28)
3229
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "string").WithArguments("string").WithLocation(13, 10),
Semantics\RefFieldTests.cs (6)
21362
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 23),
21365
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 23)
21392
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(3, 27),
21395
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(3, 27),
21398
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=>").WithArguments("=>").WithLocation(3, 33),
21401
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=>").WithArguments("=>").WithLocation(3, 33),
Semantics\TopLevelStatementsTests.cs (2)
635
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(4, 29),
647
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, @"""Hi!""").WithArguments(@"""Hi!""").WithLocation(4, 30)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\DefaultInterfaceImplementationTests.cs (14)
4990
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(4, 36),
5027
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(4, 33)
6627
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=>").WithArguments("=>").WithLocation(8, 7),
22192
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(4, 45),
22447
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(14, 37),
23401
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(4, 42),
23888
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(44, 45),
24111
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(20, 42),
24190
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(20, 44),
26429
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(7, 40),
42884
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(44, 38),
61775
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 47),
61804
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 42),
61833
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(9, 42),
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
217
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=>").WithArguments("=>").WithLocation(4, 26));
Symbols\SymbolErrorTests.cs (1)
15472
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 36),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (97)
LexicalAndXml\LexicalErrorTests.cs (2)
99
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 43),
102
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 43)
LexicalAndXml\PreprocessorTests.cs (1)
3554
VerifyErrorCode(tree.GetCompilationUnitRoot(), (int)ErrorCode.
ERR_InvalidMemberDecl
); // CS1519 - parser gives Two
Parsing\AsyncParsingTests.cs (17)
363
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(5, 1));
397
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(5, 1));
521
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(5, 1));
599
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(5, 1));
885
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(5, 1));
1111
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 28),
1114
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 28));
1572
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "event").WithArguments("event").WithLocation(4, 19),
1920
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "int").WithArguments("int").WithLocation(4, 19),
2082
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(1, 18),
2115
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(1, 19));
2148
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "int").WithArguments("int").WithLocation(3, 5),
2151
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(3, 8),
2197
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(3, 11),
2237
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "class").WithArguments("class").WithLocation(3, 1),
2292
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "namespace").WithArguments("namespace").WithLocation(3, 1),
2345
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(4, 1));
Parsing\DeclarationParsingTests.cs (3)
2977
Assert.Equal(ErrorCode.
ERR_InvalidMemberDecl
, (ErrorCode)file.Errors()[1].Code);
2978
Assert.Equal(ErrorCode.
ERR_InvalidMemberDecl
, (ErrorCode)file.Errors()[2].Code);
6128
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(7, 1));
Parsing\DeclarationScopeParsingTests.cs (3)
14376
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "const").WithArguments("const").WithLocation(4, 12),
14499
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "fixed").WithArguments("fixed").WithLocation(4, 12)
14775
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "event").WithArguments("event").WithLocation(4, 12)
Parsing\DeconstructionTests.cs (1)
2389
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "object").WithArguments("object").WithLocation(4, 10),
Parsing\FileModifierParsingTests.cs (8)
1318
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 15),
1321
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 15));
1407
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 14),
1410
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 14)
1781
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 22),
1784
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 22),
1805
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 22),
1808
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 22),
Parsing\MemberDeclarationParsingTests.cs (13)
39
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(1, 8)
122
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=").WithArguments("=").WithLocation(1, 3),
1266
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(1, 15)
1314
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(1, 19)
1333
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(1, 24)
1429
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(1, 15)
1474
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(1, 18)
1806
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(1, 16)
1826
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(1, 11)
1846
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(1, 9)
1864
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(1, 9)
2079
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 23),
2082
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 23),
Parsing\NullableParsingTests.cs (2)
42
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 18),
45
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(3, 18));
Parsing\ParserErrorMessageTests.cs (9)
57
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(10, 4),
4031
ParseAndValidate(test, Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "return").WithArguments("return"));
4051
ParseAndValidate(test, Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";"));
4070
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "goto").WithArguments("goto"),
4073
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";"),
4076
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";"),
4079
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ":").WithArguments(":"),
4082
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ":").WithArguments(":"));
6013
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "").WithArguments("").WithLocation(9, 1),
Parsing\ParserRegressionTests.cs (2)
193
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(6, 1));
211
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "}").WithArguments("}").WithLocation(6, 1));
Parsing\ParsingErrorRecoveryTests.cs (5)
1375
Assert.Equal((int)ErrorCode.
ERR_InvalidMemberDecl
, file.Errors()[0].Code);
1430
Assert.Equal((int)ErrorCode.
ERR_InvalidMemberDecl
, file.Errors()[0].Code);
1432
Assert.Equal((int)ErrorCode.
ERR_InvalidMemberDecl
, file.Errors()[2].Code);
1488
Assert.Equal((int)ErrorCode.
ERR_InvalidMemberDecl
, file.Errors()[0].Code);
6142
Assert.Equal((int)ErrorCode.
ERR_InvalidMemberDecl
, subitem2.Errors()[2].Code);
Parsing\RecordParsing.cs (4)
395
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "return").WithArguments("return").WithLocation(2, 15),
398
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "return").WithArguments("return").WithLocation(5, 19));
1235
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(4, 10),
1238
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(4, 10),
Parsing\RefFieldParsingTests.cs (2)
102
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "out").WithArguments("out").WithLocation(1, 12));
138
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "in").WithArguments("in").WithLocation(1, 12));
Parsing\RefReadonlyTests.cs (10)
139
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "operator").WithArguments("operator").WithLocation(11, 41),
142
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "operator").WithArguments("operator").WithLocation(11, 41),
145
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(12, 5),
148
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(12, 5),
275
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(7, 53),
278
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(7, 53));
431
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "operator").WithArguments("operator").WithLocation(4, 37),
434
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "operator").WithArguments("operator").WithLocation(4, 37),
440
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "=>").WithArguments("=>").WithLocation(4, 57));
453
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "in").WithArguments("in").WithLocation(4, 5));
Parsing\SeparatedSyntaxListParsingTests.cs (12)
330
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(4, 12),
336
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 14),
339
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(5, 14),
345
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 16),
676
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(4, 12),
682
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 14),
685
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(5, 14),
691
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 16),
738
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(4, 12),
744
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 14),
747
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(5, 14),
753
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(5, 16),
Parsing\StatementAttributeParsingTests.cs (2)
7445
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "(").WithArguments("(").WithLocation(4, 15),
7451
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, ";").WithArguments(";").WithLocation(4, 17));
Parsing\TopLevelStatementsParsingTests.cs (1)
663
Diagnostic(ErrorCode.
ERR_InvalidMemberDecl
, "{").WithArguments("{").WithLocation(5, 4),