117 references to ERR_NamespaceUnexpected
Microsoft.CodeAnalysis.CSharp (12)
Errors\ErrorFacts.cs (1)
712or ErrorCode.ERR_NamespaceUnexpected
Parser\LanguageParser.cs (1)
3000result = this.AddErrorToLastToken(incompleteMember, ErrorCode.ERR_NamespaceUnexpected);
Symbols\Source\SourceMemberContainerSymbol.cs (10)
5543diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5587diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5601diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5620diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5638diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5690ErrorCode.ERR_NamespaceUnexpected, 5743diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5763diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5780diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected, 5795diagnostics.Add(ErrorCode.ERR_NamespaceUnexpected,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenExprLambdaTests.cs (2)
3457Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "B").WithLocation(2, 79), 3504Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "B").WithLocation(2, 79),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (38)
PartialEventsAndConstructorsTests.cs (1)
84Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "F").WithLocation(2, 9),
Semantics\OutVarTests.cs (13)
30728Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(3, 6), 30734Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(7, 6), 30737Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(9, 6), 30740Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").WithLocation(12, 6), 30746Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").WithLocation(15, 6), 30899Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(3, 6), 30905Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(7, 6), 30908Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(9, 6), 30911Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").WithLocation(12, 6), 30917Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").WithLocation(15, 6), 31259int[] exclude = new int[] { (int)ErrorCode.ERR_NamespaceUnexpected }; 31432int[] exclude = new int[] { (int)ErrorCode.ERR_NamespaceUnexpected }; 32048Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").WithLocation(3, 12),
Semantics\PatternMatchingTests_Global.cs (23)
4939Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(3, 6), 4945Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(7, 6), 4948Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(9, 6), 4951Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").WithLocation(12, 6), 4957Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").WithLocation(15, 6), 5105Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(3, 6), 5111Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(7, 6), 5114Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(9, 6), 5117Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").WithLocation(12, 6), 5123Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").WithLocation(15, 6), 5436Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(3, 21), 5442Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(7, 21), 5445Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(9, 21), 5448Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").WithLocation(12, 21), 5454Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").WithLocation(15, 21), 5457Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "i").WithLocation(18, 21), 5621Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(3, 21), 5627Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(7, 21), 5630Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(9, 21), 5633Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").WithLocation(12, 21), 5639Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").WithLocation(15, 21), 5642Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "i").WithLocation(18, 21), 6212Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").WithLocation(3, 12),
Semantics\RecordTests.cs (1)
70Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Point").WithLocation(2, 8),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (27)
Semantics\RefFieldTests.cs (2)
11813Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "A").WithLocation(1, 15), 11859Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "A").WithLocation(1, 15),
Semantics\SemanticErrorTests.cs (6)
2751new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 5, Column = 10 }, 2752new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 10, Column = 5 }); 2777new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 4, Column = 10 }, 2779new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 6, Column = 5 }, 2781new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 5, Column = 15 }, 2782new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 7, Column = 15 });
Semantics\TopLevelStatementsTests.cs (19)
670Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "WriteLine").WithLocation(4, 20), 742Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").WithLocation(2, 12), 751Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").WithLocation(4, 15), 2579Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "M").WithLocation(5, 10), 2610Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "F").WithLocation(5, 9), 2635Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "M").WithLocation(5, 10), 4369Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localA").WithLocation(2, 10), 4381Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localC").WithLocation(6, 14), 4390Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localD").WithLocation(8, 13), 4399Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localE").WithLocation(10, 15), 4411Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localF").WithLocation(12, 15), 4423Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localG").WithLocation(14, 14), 4786Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").WithLocation(4, 5) 4807Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").WithLocation(4, 5) 4828Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").WithLocation(4, 5) 4849Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").WithLocation(4, 21) 4874Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").WithLocation(4, 21) 9615Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Write").WithLocation(3, 16), 9640Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x").WithLocation(3, 5)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\AssemblyAndNamespaceTests.cs (2)
625Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "WriteLine").WithLocation(3, 16), 677Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x").WithLocation(3, 5));
Symbols\ExtensionMethodTests.cs (1)
461Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Goo"),
Symbols\ImplicitClassTests.cs (1)
111Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Goo"));
Symbols\Source\EnumTests.cs (1)
277Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Red"),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
LexicalAndXml\LexicalErrorTests.cs (3)
177Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "e").WithLocation(3, 19), 210Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "e").WithLocation(3, 20), 246Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "eX").WithLocation(3, 19),
Parsing\CollectionExpressionParsingTests.cs (1)
1079Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "]").WithLocation(2, 3),
Parsing\DeclarationParsingTests.cs (1)
107Assert.Equal((int)ErrorCode.ERR_NamespaceUnexpected, errors[0].Code);
Parsing\DeclarationScopeParsingTests.cs (4)
1936Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(2, 5) 5428Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "var").WithLocation(2, 12) 5497Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "var").WithLocation(2, 21) 11530Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(1, 5),
Parsing\ExpressionParsingTests.cs (3)
1509Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "]").WithLocation(2, 1)); 1598Diagnostic(ErrorCode.ERR_NamespaceUnexpected, keyword).WithLocation(1, 5), 1684Diagnostic(ErrorCode.ERR_NamespaceUnexpected, keyword).WithLocation(1, 5),
Parsing\FileModifierParsingTests.cs (1)
2464Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "file").WithLocation(1, 499996)
Parsing\LambdaParameterParsingTests.cs (1)
5474Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "public").WithLocation(1, 20),
Parsing\MemberDeclarationParsingTests.cs (2)
12076Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Method").WithLocation(8, 18)); 12138Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Method").WithLocation(6, 18));
Parsing\ParsingErrorRecoveryTests.cs (1)
783Assert.Equal((int)ErrorCode.ERR_NamespaceUnexpected, file.Errors()[0].Code);
Parsing\PartialEventsAndConstructorsParsingTests.cs (1)
1315Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "F").WithLocation(1, 9));
Parsing\RecordParsing.cs (2)
3803Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "record").WithLocation(1, 5), 3811Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "record").WithLocation(1, 5)
Parsing\TopLevelStatementsParsingTests.cs (9)
113Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "asas").WithLocation(4, 1), 567Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "garbage").WithLocation(1, 1) 1196Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").WithLocation(1, 8) 1759Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "e").WithLocation(3, 1) 1796Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "abc").WithLocation(1, 1), 2896Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "alias").WithLocation(1, 8) 3015Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "]").WithLocation(2, 15) 3291Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").WithLocation(3, 1) 3333Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").WithLocation(3, 1)
Syntax\SyntaxTreeTests.cs (4)
951Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(1, 1) 978Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").WithLocation(1, 1) 1006Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").WithLocation(1, 12) 1042Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").WithLocation(1, 19)