59 references to ERR_HasNoTypeVars
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Lookup.cs (2)
1780
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_HasNoTypeVars
, namedType, MessageID.IDS_SK_TYPE.Localize()) : null;
1801
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_HasNoTypeVars
, method, MessageID.IDS_SK_METHOD.Localize()) : null;
Errors\ErrorFacts.cs (1)
791
case ErrorCode.
ERR_HasNoTypeVars
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests.cs (4)
8598
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<>").WithArguments("A", "type").WithLocation(4, 2),
8604
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type").WithLocation(5, 2),
8661
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<>").WithArguments("A", "type").WithLocation(4, 2),
8664
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type").WithLocation(5, 2),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\BindingTests.cs (5)
131
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M2<int>").WithArguments("C.M2()", "method").WithLocation(11, 9),
133
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M2<int>").WithArguments("C.M2()", "method").WithLocation(12, 11),
139
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M4<int>").WithArguments("C.M4()", "method").WithLocation(15, 9),
141
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M4<int>").WithArguments("C.M4()", "method").WithLocation(16, 14));
1805
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "B<int>").WithArguments("N.B", "type")
Semantics\DelegateTypeTests.cs (2)
1762
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "F0<int, object>").WithArguments("Program.F0(object)", "method").WithLocation(12, 13),
1765
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "F1<int>").WithArguments("Program.F1(object)", "method").WithLocation(13, 13),
Semantics\SemanticAnalyzerTests.cs (1)
479
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "NotGeneric<int, int>").WithArguments("P.NotGeneric()", "method").WithLocation(125, 11),
Semantics\SemanticErrorTests.cs (29)
11084
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type"),
23146
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(21, 14),
23164
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(25, 19),
23167
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(29, 13),
23173
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(30, 18),
23176
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(32, 9),
23179
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(33, 9),
23182
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(34, 20),
23185
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(35, 9),
23188
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(36, 20),
23191
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "D<>").WithArguments("Program.D", "type").WithLocation(37, 9),
23194
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(39, 17),
23197
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(40, 17),
23200
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(41, 36),
23203
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(42, 17),
23206
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(43, 36),
23209
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "D<>").WithArguments("Program.D", "type").WithLocation(44, 17),
23212
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(46, 22),
23215
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(47, 22),
23218
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(48, 22),
23221
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(50, 30),
23224
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(51, 30),
23227
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(52, 30),
23230
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(56, 20),
23233
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(57, 20),
23236
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(58, 20),
23239
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(60, 28),
23242
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(61, 28),
23245
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(62, 28),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\GenericConstraintTests.cs (7)
7085
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(12, 18),
7091
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(13, 18),
7097
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(14, 18)
7147
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(20, 18),
7153
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(21, 18),
7258
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").WithLocation(9, 9),
7261
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").WithLocation(10, 9),
Symbols\SymbolErrorTests.cs (3)
4626
new ErrorDescription { Code = (int)ErrorCode.
ERR_HasNoTypeVars
, Line = 10, Column = 24 },
4627
new ErrorDescription { Code = (int)ErrorCode.
ERR_HasNoTypeVars
, Line = 10, Column = 43 });
4647
new ErrorDescription { Code = (int)ErrorCode.
ERR_HasNoTypeVars
, Line = 8, Column = 13 });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Parsing\SeparatedSyntaxListParsingTests.cs (5)
694
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<C<>>").WithArguments("C", "type").WithLocation(6, 5),
697
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("C", "type").WithLocation(6, 7),
703
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<A<>>").WithArguments("C", "type").WithLocation(7, 5),
718
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<C<, >, int>").WithArguments("C", "type").WithLocation(8, 24),
721
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<, >").WithArguments("C", "type").WithLocation(8, 26),