59 references to ERR_HasNoTypeVars
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Lookup.cs (2)
1872
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_HasNoTypeVars
, namedType, MessageID.IDS_SK_TYPE.Localize()) : null;
1893
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_HasNoTypeVars
, method, MessageID.IDS_SK_METHOD.Localize()) : null;
Errors\ErrorFacts.cs (1)
853
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)
3619
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "F0<int, object>").WithArguments("Program.F0(object)", "method").WithLocation(12, 13),
3622
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)
11088
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "A<int>").WithArguments("A", "type"),
23402
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(21, 14),
23420
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(25, 19),
23423
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(29, 13),
23429
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "M<>").WithArguments("Program.M()", "method").WithLocation(30, 18),
23432
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(32, 9),
23435
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(33, 9),
23438
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(34, 20),
23441
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(35, 9),
23444
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(36, 20),
23447
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "D<>").WithArguments("Program.D", "type").WithLocation(37, 9),
23450
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(39, 17),
23453
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(40, 17),
23456
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(41, 36),
23459
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(42, 17),
23462
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(43, 36),
23465
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "D<>").WithArguments("Program.D", "type").WithLocation(44, 17),
23468
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(46, 22),
23471
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(47, 22),
23474
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(48, 22),
23477
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(50, 30),
23480
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(51, 30),
23483
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(52, 30),
23486
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(56, 20),
23489
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(57, 20),
23492
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(58, 20),
23495
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "I<>").WithArguments("Program.I", "type").WithLocation(60, 28),
23498
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "C<>").WithArguments("Program.C", "type").WithLocation(61, 28),
23501
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "S<>").WithArguments("Program.S", "type").WithLocation(62, 28),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\GenericConstraintTests.cs (7)
7112
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(12, 18),
7118
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(13, 18),
7124
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(14, 18)
7174
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(20, 18),
7180
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetService<>").WithArguments("I.GetService()", "method").WithLocation(21, 18),
7285
Diagnostic(ErrorCode.
ERR_HasNoTypeVars
, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").WithLocation(9, 9),
7288
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),