61 references to ERR_NamespaceUnexpected
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
719
or ErrorCode.
ERR_NamespaceUnexpected
Parser\LanguageParser.cs (1)
3004
result = 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)
3457
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "B").WithLocation(2, 79),
3504
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "B").WithLocation(2, 79),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
PartialEventsAndConstructorsTests.cs (1)
84
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "F").WithLocation(2, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\RefFieldTests.cs (3)
11760
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(3, 1));
11787
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(2, 1),
11832
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(2, 1),
Semantics\SemanticErrorTests.cs (5)
2751
new ErrorDescription { Code = (int)ErrorCode.
ERR_NamespaceUnexpected
, Line = 5, Column = 10 },
2777
new ErrorDescription { Code = (int)ErrorCode.
ERR_NamespaceUnexpected
, Line = 4, Column = 10 },
2779
new ErrorDescription { Code = (int)ErrorCode.
ERR_NamespaceUnexpected
, Line = 6, Column = 5 },
2781
new ErrorDescription { Code = (int)ErrorCode.
ERR_NamespaceUnexpected
, Line = 5, Column = 15 },
2782
new ErrorDescription { Code = (int)ErrorCode.
ERR_NamespaceUnexpected
, Line = 7, Column = 15 });
Semantics\TopLevelStatementsTests.cs (10)
670
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "WriteLine").WithLocation(4, 20),
9750
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "Write").WithLocation(3, 16),
9775
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "x").WithLocation(3, 5)
9992
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "f").WithLocation(3, 13)
10024
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "P").WithLocation(3, 5)
10060
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "E").WithLocation(5, 14)
10096
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "E").WithLocation(5, 14)
10128
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "this").WithLocation(3, 5)
10163
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "operator").WithLocation(3, 24),
10201
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "operator").WithLocation(3, 19),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\AssemblyAndNamespaceTests.cs (2)
622
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "WriteLine").WithLocation(3, 16),
674
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "x").WithLocation(3, 5));
Symbols\ExtensionMethodTests.cs (1)
461
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "Goo"),
Symbols\ImplicitClassTests.cs (1)
111
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "Goo"));
Symbols\Source\EnumTests.cs (1)
277
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "Red"),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Parsing\CollectionExpressionParsingTests.cs (1)
1079
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "]").WithLocation(2, 3),
Parsing\DeclarationParsingTests.cs (1)
107
Assert.Equal((int)ErrorCode.
ERR_NamespaceUnexpected
, errors[0].Code);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (1)
6996
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, accessibilityText).WithLocation(3, 1));
Parsing\DeclarationScopeParsingTests.cs (5)
2016
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(2, 5)
5508
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "var").WithLocation(2, 12)
5577
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "var").WithLocation(2, 21)
11302
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(2, 1),
11625
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(1, 5),
Parsing\ExpressionParsingTests.cs (3)
1509
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "]").WithLocation(2, 1));
1598
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, keyword).WithLocation(1, 5),
1684
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, keyword).WithLocation(1, 5),
Parsing\FileModifierParsingTests.cs (1)
2458
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "file").WithLocation(1, 499996)
Parsing\MemberDeclarationParsingTests.cs (2)
12107
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "Method").WithLocation(8, 18));
12169
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "Method").WithLocation(6, 18));
Parsing\ParsingErrorRecoveryTests.cs (1)
783
Assert.Equal((int)ErrorCode.
ERR_NamespaceUnexpected
, file.Errors()[0].Code);
Parsing\PartialEventsAndConstructorsParsingTests.cs (1)
1315
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "F").WithLocation(1, 9));
Parsing\RecordParsing.cs (2)
3803
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "record").WithLocation(1, 5),
3811
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "record").WithLocation(1, 5)
Parsing\TopLevelStatementsParsingTests.cs (10)
113
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "asas").WithLocation(4, 1),
567
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "garbage").WithLocation(1, 1)
1196
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "a").WithLocation(1, 8)
1759
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "e").WithLocation(3, 1)
1796
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "abc").WithLocation(1, 1),
2896
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "alias").WithLocation(1, 8)
3015
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "]").WithLocation(2, 15)
3071
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "scoped").WithLocation(4, 1));
3287
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "p").WithLocation(3, 1)
3329
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "p").WithLocation(3, 1)
Syntax\SyntaxTreeTests.cs (4)
951
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "d").WithLocation(1, 1)
978
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "d").WithLocation(1, 1)
1006
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "p").WithLocation(1, 12)
1042
Diagnostic(ErrorCode.
ERR_NamespaceUnexpected
, "p").WithLocation(1, 19)