61 references to ERR_NamespaceUnexpected
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
719or ErrorCode.ERR_NamespaceUnexpected
Parser\LanguageParser.cs (1)
3004result = this.AddErrorToLastToken(incompleteMember, ErrorCode.ERR_NamespaceUnexpected);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5848: 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 (1)
PartialEventsAndConstructorsTests.cs (1)
84Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "F").WithLocation(2, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\RefFieldTests.cs (3)
11760Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(3, 1)); 11787Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(2, 1), 11832Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(2, 1),
Semantics\SemanticErrorTests.cs (5)
2751new ErrorDescription { Code = (int)ErrorCode.ERR_NamespaceUnexpected, Line = 5, Column = 10 }, 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 (10)
670Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "WriteLine").WithLocation(4, 20), 9750Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Write").WithLocation(3, 16), 9775Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x").WithLocation(3, 5) 9992Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").WithLocation(3, 13) 10024Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "P").WithLocation(3, 5) 10060Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "E").WithLocation(5, 14) 10096Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "E").WithLocation(5, 14) 10128Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "this").WithLocation(3, 5) 10163Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "operator").WithLocation(3, 24), 10201Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "operator").WithLocation(3, 19),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\AssemblyAndNamespaceTests.cs (2)
622Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "WriteLine").WithLocation(3, 16), 674Diagnostic(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 (32)
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\DeclarationParsingTests_MissingIdentifiers.cs (1)
6996Diagnostic(ErrorCode.ERR_NamespaceUnexpected, accessibilityText).WithLocation(3, 1));
Parsing\DeclarationScopeParsingTests.cs (5)
2016Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(2, 5) 5508Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "var").WithLocation(2, 12) 5577Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "var").WithLocation(2, 21) 11302Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(2, 1), 11625Diagnostic(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)
2458Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "file").WithLocation(1, 499996)
Parsing\MemberDeclarationParsingTests.cs (2)
12107Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Method").WithLocation(8, 18)); 12169Diagnostic(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 (10)
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) 3071Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").WithLocation(4, 1)); 3287Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").WithLocation(3, 1) 3329Diagnostic(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)