32 references to ERR_FileTypeNested
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2300
or ErrorCode.
ERR_FileTypeNested
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1907
diagnostics.Add(ErrorCode.
ERR_FileTypeNested
, location, this);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Symbols\Source\FileModifierTests.cs (26)
62
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16));
68
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16));
124
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16));
130
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16));
492
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 16),
495
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 16));
544
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 16));
550
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 16));
568
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "E").WithArguments("C.E").WithLocation(6, 15),
571
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "E").WithArguments("C.E").WithLocation(6, 15));
599
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "E").WithArguments("C.E").WithLocation(6, 15));
605
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "E").WithArguments("C.E").WithLocation(6, 15));
654
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 24));
660
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 24));
678
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 24),
681
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "D").WithArguments("C.D").WithLocation(6, 24));
1682
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16),
1685
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16));
1799
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.
ERR_FileTypeNested
).Verify();
1858
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.
ERR_FileTypeNested
).Verify();
1866
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.
ERR_FileTypeNested
).Verify();
3223
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(5, 16),
3264
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(5, 16));
3606
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Derived.C").WithLocation(16, 20));
4093
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C1").WithArguments("C1").WithLocation(5, 19),
4211
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\FileModifierParsingTests.cs (4)
698
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "C").WithArguments("Outer.C").WithLocation(3, 16)
2769
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "X").WithArguments("C.X").WithLocation(3, 17)
2867
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "X").WithArguments("C.X").WithLocation(3, 17)
2962
Diagnostic(ErrorCode.
ERR_FileTypeNested
, "X").WithArguments("C.X").WithLocation(3, 17)