59 references to ERR_HasNoTypeVars
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Lookup.cs (2)
1858
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_HasNoTypeVars
, namedType, MessageID.IDS_SK_TYPE.Localize()) : null;
1879
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_HasNoTypeVars
, method, MessageID.IDS_SK_METHOD.Localize()) : null;
Errors\ErrorFacts.cs (1)
855
or ErrorCode.
ERR_HasNoTypeVars
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests.cs (4)
8898
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<>").WithArguments("A", "type").WithLocation(4, 2),
8904
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type").WithLocation(5, 2),
8961
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<>").WithArguments("A", "type").WithLocation(4, 2),
8964
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type").WithLocation(5, 2),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\BindingTests.cs (5)
132
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M2<int>").WithArguments("C.M2()", "method").WithLocation(11, 9),
134
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M2<int>").WithArguments("C.M2()", "method").WithLocation(12, 11),
140
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M4<int>").WithArguments("C.M4()", "method").WithLocation(15, 9),
142
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M4<int>").WithArguments("C.M4()", "method").WithLocation(16, 14));
1838
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "B<int>").WithArguments("N.B", "type")
Semantics\DelegateTypeTests.cs (2)
3593
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "F0<int, object>").WithArguments("Program.F0(object)", "method").WithLocation(12, 13),
3596
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)
11133
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type"),
23449
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(21, 14),
23467
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(25, 19),
23470
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(29, 13),
23476
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(30, 18),
23479
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(32, 9),
23482
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(33, 9),
23485
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(34, 20),
23488
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(35, 9),
23491
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(36, 20),
23494
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "D<>").WithArguments("Program.D", "type").WithLocation(37, 9),
23497
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(39, 17),
23500
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(40, 17),
23503
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(41, 36),
23506
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(42, 17),
23509
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(43, 36),
23512
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "D<>").WithArguments("Program.D", "type").WithLocation(44, 17),
23515
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(46, 22),
23518
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(47, 22),
23521
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(48, 22),
23524
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(50, 30),
23527
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(51, 30),
23530
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(52, 30),
23533
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(56, 20),
23536
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(57, 20),
23539
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(58, 20),
23542
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(60, 28),
23545
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(61, 28),
23548
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(62, 28),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\GenericConstraintTests.cs (7)
7124
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(12, 18),
7130
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(13, 18),
7136
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(14, 18)
7186
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(20, 18),
7192
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(21, 18),
7297
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").WithLocation(9, 9),
7300
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").WithLocation(10, 9),
Symbols\SymbolErrorTests.cs (3)
4702
new ErrorDescription { Code = (int)ErrorCode.
ERR_HasNoTypeVars
, Line = 10, Column = 24 },
4703
new ErrorDescription { Code = (int)ErrorCode.
ERR_HasNoTypeVars
, Line = 10, Column = 43 });
4723
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),