67 references to ERR_FileTypeDisallowedInSignature
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Constraints.cs (1)
472
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, location, constraintType.Type, containingSymbol);
Errors\ErrorFacts.cs (1)
2297
or ErrorCode.
ERR_FileTypeDisallowedInSignature
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
111
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, delegateType.GetFirstLocation(), invoke.ReturnType, delegateType);
124
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, delegateType.GetFirstLocation(), parameterSymbol.Type, delegateType);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
52
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, this.ErrorLocation, type, ContainingType);
Symbols\Source\SourceMemberMethodSymbol.cs (2)
409
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, GetFirstLocation(), returnType.Type, containingType);
416
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, GetFirstLocation(), param.Type, containingType);
Symbols\Source\SourcePropertySymbol.cs (2)
598
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, Location, type.Type, containingType);
687
diagnostics.Add(ErrorCode.
ERR_FileTypeDisallowedInSignature
, Location, param.Type, containingTypeForFileTypeCheck);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
4502
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "(").WithArguments("C", "Extensions").WithLocation(5, 14),
4505
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M3").WithArguments("C", "Extensions").WithLocation(9, 25)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (56)
Symbols\Source\FileModifierTests.cs (56)
152
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("Outer.C", "D").WithLocation(8, 10));
411
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Attr").WithArguments("E", "Attr").WithLocation(10, 12));
2117
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("C", "D").WithLocation(7, 17),
2120
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("C", "D").WithLocation(8, 18));
2142
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("C", "D").WithLocation(7, 14),
2145
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("C", "D").WithLocation(8, 15));
2170
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "field").WithArguments("C", "E").WithLocation(8, 7),
2176
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "property").WithArguments("C", "E").WithLocation(9, 7),
2179
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C", "E").WithLocation(10, 12),
2182
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "@event").WithArguments("D", "E").WithLocation(11, 13),
2211
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "field").WithArguments("C.Inner", "E").WithLocation(9, 13),
2217
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "property").WithArguments("C.Inner", "E").WithLocation(10, 13),
2220
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C.Inner", "E").WithLocation(11, 12),
2223
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "@event").WithArguments("C.InnerDelegate", "E").WithLocation(12, 27),
2268
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "field").WithArguments("C.Inner", "E.Inner").WithLocation(24, 17),
2271
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "property").WithArguments("C.Inner", "E.Inner").WithLocation(25, 17),
2274
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C.Inner", "E.Inner").WithLocation(26, 16),
2277
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "@event").WithArguments("C.InnerDelegate", "E.Inner").WithLocation(27, 31));
2296
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Del1").WithArguments("C", "Del1").WithLocation(5, 15),
2299
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Del2").WithArguments("C", "Del2").WithLocation(6, 12));
2321
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Del1").WithArguments("C<int>", "Del1").WithLocation(5, 15),
2324
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "Del2").WithArguments("C<int>", "Del2").WithLocation(6, 17));
2350
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("C", "D").WithLocation(7, 30),
2353
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "-").WithArguments("C", "D").WithLocation(8, 30));
2374
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "D").WithArguments("C", "D").WithLocation(7, 12));
2395
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("C", "D").WithLocation(7, 14),
2398
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("C", "D").WithLocation(7, 14),
2401
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M").WithArguments("C", "D").WithLocation(7, 14));
2440
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "F").WithArguments("C<int>", "C1").WithLocation(8, 20),
2443
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "E").WithArguments("Del<int>", "C1").WithLocation(9, 28),
2446
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("C<int>", "C1").WithLocation(10, 18),
2449
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("C<int>", "C1").WithLocation(11, 20),
2452
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "P").WithArguments("C<int>", "C1").WithLocation(13, 20),
2455
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "this").WithArguments("C<int>", "C1").WithLocation(14, 20));
2736
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "F").WithArguments("I", "C").WithLocation(7, 17));
2757
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "F").WithArguments("I", "C").WithLocation(7, 12));
2903
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M1").WithArguments("Container<S>", "Program").WithLocation(5, 18),
2906
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M2").WithArguments("S[]", "Program").WithLocation(6, 9),
2909
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M3").WithArguments("(S, S)", "Program").WithLocation(7, 12),
2912
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M4").WithArguments("S*", "Program").WithLocation(8, 8),
2915
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "M5").WithArguments("delegate*<S, void>", "Program").WithLocation(9, 24));
2939
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C").WithArguments("C", "E.M<T>(T)").WithLocation(10, 30));
2966
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C").WithArguments("C", "E<T>").WithLocation(7, 17 + typeKind.Length));
3014
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C").WithArguments("C", "D2<T>").WithLocation(5, 36));
3038
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C<int>").WithArguments("C<int>", "D.M<T>(T)").WithLocation(5, 38));
3059
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "C<int>").WithArguments("C<int>", "D<T>").WithLocation(3, 22));
3082
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R1").WithArguments("C", "R1").WithLocation(3, 8),
3085
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R1").WithArguments("C", "R1").WithLocation(3, 8),
3088
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R2").WithArguments("C", "R2").WithLocation(4, 15),
3091
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "R2").WithArguments("C", "R2").WithLocation(4, 15)
4912
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("FI", "C").WithLocation(8, 28),
4915
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("FI", "C").WithLocation(8, 28)
4957
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("FI", "C").WithLocation(8, 28),
4960
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("FI", "C").WithLocation(9, 28),
5002
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "op_Addition").WithArguments("FI", "C").WithLocation(8, 19),
5005
Diagnostic(ErrorCode.
ERR_FileTypeDisallowedInSignature
, "+").WithArguments("FI", "C").WithLocation(8, 28)