49 references to ERR_FileTypeDisallowedInSignature
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Constraints.cs (1)
430
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, location, constraintType.Type, containingSymbol);
Errors\ErrorFacts.cs (1)
2241
case ErrorCode.
ERR_FileTypeDisallowedInSignature
:
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
107
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, delegateType.Locations[0], invoke.ReturnType, delegateType);
120
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, delegateType.Locations[0], parameterSymbol.Type, delegateType);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
51
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, this.ErrorLocation, type, ContainingType);
Symbols\Source\SourceMemberMethodSymbol.cs (2)
284
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, Locations[0], returnType.Type, ContainingType);
291
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, Locations[0], param.Type, ContainingType);
Symbols\Source\SourcePropertySymbol.cs (2)
464
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, Location, type.Type, ContainingType);
546
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, Location, param.Type, this.ContainingType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (40)
Symbols\Source\FileModifierTests.cs (40)
145
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("Outer.C", "D").WithLocation(8, 10));
404
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Attr").WithArguments("E", "Attr").WithLocation(10, 12));
1836
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("C", "D").WithLocation(7, 17),
1839
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("C", "D").WithLocation(8, 18));
1861
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("C", "D").WithLocation(7, 14),
1864
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("C", "D").WithLocation(8, 15));
1889
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "field").WithArguments("C", "E").WithLocation(8, 7),
1895
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "property").WithArguments("C", "E").WithLocation(9, 7),
1898
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C", "E").WithLocation(10, 12),
1901
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "@event").WithArguments("D", "E").WithLocation(11, 13),
1930
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "field").WithArguments("C.Inner", "E").WithLocation(9, 13),
1936
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "property").WithArguments("C.Inner", "E").WithLocation(10, 13),
1939
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C.Inner", "E").WithLocation(11, 12),
1942
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "@event").WithArguments("C.InnerDelegate", "E").WithLocation(12, 27),
1987
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "field").WithArguments("C.Inner", "E.Inner").WithLocation(24, 17),
1990
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "property").WithArguments("C.Inner", "E.Inner").WithLocation(25, 17),
1993
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C.Inner", "E.Inner").WithLocation(26, 16),
1996
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "@event").WithArguments("C.InnerDelegate", "E.Inner").WithLocation(27, 31));
2015
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Del1").WithArguments("C", "Del1").WithLocation(5, 15),
2018
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Del2").WithArguments("C", "Del2").WithLocation(6, 12));
2040
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("C", "D").WithLocation(7, 30),
2043
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "-").WithArguments("C", "D").WithLocation(8, 30));
2064
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "D").WithArguments("C", "D").WithLocation(7, 12));
2085
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("C", "D").WithLocation(7, 14),
2088
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("C", "D").WithLocation(7, 14),
2091
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("C", "D").WithLocation(7, 14));
2322
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "F").WithArguments("I", "C").WithLocation(7, 17));
2343
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "F").WithArguments("I", "C").WithLocation(7, 12));
2428
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("Container<S>", "Program").WithLocation(5, 18),
2431
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("S[]", "Program").WithLocation(6, 9),
2434
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M3").WithArguments("(S, S)", "Program").WithLocation(7, 12),
2437
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M4").WithArguments("S*", "Program").WithLocation(8, 8),
2440
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M5").WithArguments("delegate*<S, void>", "Program").WithLocation(9, 24));
2464
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C").WithArguments("C", "E.M<T>(T)").WithLocation(10, 30));
2491
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C").WithArguments("C", "E<T>").WithLocation(7, 17 + typeKind.Length));
2539
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C").WithArguments("C", "D2<T>").WithLocation(5, 36));
2559
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R1").WithArguments("C", "R1").WithLocation(3, 8),
2562
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R1").WithArguments("C", "R1").WithLocation(3, 8),
2565
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R2").WithArguments("C", "R2").WithLocation(4, 15),
2568
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R2").WithArguments("C", "R2").WithLocation(4, 15)