140 references to ERR_BadSKunknown
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (1)
1023
Error(diagnostics, ErrorCode.
ERR_BadSKunknown
, expr.Syntax, expr.Type, MessageID.IDS_SK_TYPE.Localize());
Binder\Binder_Expressions.cs (1)
7975
Error(diagnostics, ErrorCode.
ERR_BadSKunknown
, methodGroup.NameSyntax, method, MessageID.IDS_SK_METHOD.Localize());
Binder\Binder_Lookup.cs (1)
1580
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadSKunknown
, unwrappedSymbol, unwrappedSymbol.GetKindText()) : null;
Binder\Binder_Query.cs (2)
951
diagnostics.Add(ErrorCode.
ERR_BadSKunknown
, ultimateReceiver.Syntax.Location, ((BoundNamespaceExpression)ultimateReceiver).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize());
966
Error(diagnostics, ErrorCode.
ERR_BadSKunknown
, ultimateReceiver.Syntax, ultimateReceiver.Type, MessageID.IDS_SK_TYVAR.Localize());
Errors\ErrorFacts.cs (1)
715
or ErrorCode.
ERR_BadSKunknown
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenFunctionPointersTests.cs (4)
3605
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Action").WithArguments("System.Action", "type").WithLocation(8, 24),
3608
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Action").WithArguments("System.Action", "type").WithLocation(8, 24),
3656
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(7, 19),
3659
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(7, 19),
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
639
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "M1").WithArguments("Program.M1()", "method").WithLocation(7, 25),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (23)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
3028
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"),
3034
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"),
Semantics\ExtensionTests.cs (11)
17322
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ToString").WithArguments("object.ToString()", "method").WithLocation(1, 33));
17349
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "M").WithArguments("E.extension(object).M()", "method").WithLocation(1, 33));
20124
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "M").WithArguments("E.extension(object).M()", "method").WithLocation(1, 14));
20145
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "M").WithArguments("E.M(object)", "method").WithLocation(1, 14));
26241
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(7, 20),
26244
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(13, 18),
26250
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(19, 28),
26253
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(26, 20),
26256
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(32, 25),
26869
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(7, 36),
26872
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(15, 16)
Semantics\InlineArrayTests.cs (2)
8777
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Buffer10<int>").WithArguments("Buffer10<int>", "type").WithLocation(6, 13)
9163
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Buffer10<int>").WithArguments("Buffer10<int>", "type").WithLocation(6, 13)
Semantics\PatternMatchingTests.cs (5)
3523
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T1").WithArguments("CS7.T1", "type").WithLocation(8, 17)
4481
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "var").WithArguments("var", "type").WithLocation(9, 22),
4487
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Typ").WithArguments("Typ", "type").WithLocation(10, 22),
4496
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "var").WithArguments("var", "type").WithLocation(14, 31),
4502
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Typ").WithArguments("Typ", "type").WithLocation(15, 31),
Semantics\PatternMatchingTests_NullableTypes.cs (1)
204
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Task").WithArguments("System.Threading.Tasks.Task", "type").WithLocation(18, 18),
Semantics\PrimaryConstructorTests.cs (1)
8318
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(11, 17),
Semantics\RecordTests.cs (1)
30367
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(16, 11)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (8)
IOperation\IOperationTests_IDynamicIndexerAccessExpression.cs (1)
492
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(6, 13)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (1)
462
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Class").WithArguments("Class", "type").WithLocation(8, 65)
IOperation\IOperationTests_InvalidExpression.cs (3)
434
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(4, 23),
437
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(7, 37)
533
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(6, 33),
IOperation\IOperationTests_InvalidStatement.cs (1)
111
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(8, 27),
IOperation\IOperationTests_IPropertyReferenceExpression.cs (2)
282
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(12, 28)
325
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(12, 28)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (67)
Semantics\BindingTests.cs (2)
255
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("A.E()", "method").WithLocation(15, 15),
2535
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 9));
Semantics\ConditionalOperatorTests.cs (6)
72
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type"),
73
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "U").WithArguments("U", "type"));
75
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type"),
76
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "U").WithArguments("U", "type"));
78
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type"));
80
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type"));
Semantics\DelegateTypeTests.cs (1)
3977
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Main").WithArguments("Program.Main()", "method").WithLocation(6, 27)
Semantics\ForEachTests.cs (2)
1042
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Collections.IEnumerable").WithArguments("System.Collections.IEnumerable", "type"));
1061
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Console").WithArguments("System.Console", "type"));
Semantics\ImplicitObjectCreationTests.cs (5)
4903
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 13),
4906
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(7, 13),
4912
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(12, 13),
4915
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(13, 13)
4966
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(5, 8));
Semantics\InterpolationTests.cs (2)
971
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "String").WithArguments("string", "type").WithLocation(5, 35)
19043
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Test2").WithArguments("Test2", "type").WithLocation(3, 14)
Semantics\LocalFunctionTests.cs (8)
2253
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T()", "method").WithLocation(26, 21),
3925
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(6, 9),
7851
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(8, 36),
7889
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(10, 36)
8174
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(8, 24),
8325
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(8, 47),
8363
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(10, 43)
8425
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(10, 43)
Semantics\LockTests.cs (1)
327
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Res").WithArguments("Res", "type"),
Semantics\NameOfTests.cs (1)
2883
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "List<>").WithArguments("System.Collections.Generic.List<T>", "type").WithLocation(7, 34),
Semantics\NullableReferenceTypesTests.cs (7)
1489
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "NS").WithArguments("NS", "namespace").WithLocation(11, 23),
1492
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Main").WithArguments("C.Main()", "method").WithLocation(12, 23)
1931
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 24),
2013
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("A.E()", "method").WithLocation(12, 15),
2034
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "F").WithArguments("A.F()", "method").WithLocation(21, 15),
2750
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(7, 21),
69300
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(8, 25),
Semantics\NullableTests.cs (1)
2096
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Nullable<int>").WithArguments("int?", "type"),
Semantics\QueryTests.cs (8)
2868
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Main").WithArguments("Program.Main()", "method").WithLocation(9, 38),
2871
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Main").WithArguments("Program.Main()", "method").WithLocation(10, 18)
2964
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type parameter").WithLocation(9, 27)
4159
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleApp").WithArguments("ParentNamespace.ConsoleApp", "namespace").WithLocation(13, 35),
4162
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ParentNamespace.ConsoleApp").WithArguments("ParentNamespace.ConsoleApp", "namespace").WithLocation(14, 35),
4165
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "NSAlias").WithArguments("ParentNamespace.ConsoleApp", "namespace").WithLocation(15, 45)
4462
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type parameter").WithLocation(16, 39),
4465
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type parameter").WithLocation(17, 32),
Semantics\RawInterpolationTests.cs (1)
983
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "String").WithArguments("string", "type").WithLocation(5, 37));
Semantics\SemanticAnalyzerTests.cs (2)
113
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "N.D").WithArguments("N.D", "type").WithLocation(9, 18),
1306
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Int64").WithArguments("long", "type").WithLocation(18, 39),
Semantics\SemanticErrorTests.cs (8)
2489
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Console").WithArguments("System.Console", "type"),
2493
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Console").WithArguments("System.Console", "type"),
2522
.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_BadSKunknown
, "color").WithArguments("color", "type"));
2540
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"),
2543
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"));
2592
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Exception").WithArguments("System.Exception", "type"));
24159
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "V").WithArguments("Program.V()", "method").WithLocation(18, 20),
24269
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "V").WithArguments("Program.V()", "method").WithLocation(21, 20),
Semantics\SpanStackSafetyTests.cs (2)
2166
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "S1").WithArguments("Program.S1", "type").WithLocation(15, 17),
2169
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "S1").WithArguments("Program.S1", "type").WithLocation(16, 24)
Semantics\SwitchTests.cs (2)
117
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "color").WithArguments("color", "type").WithLocation(7, 17)
122
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "color").WithArguments("color", "type").WithLocation(7, 17)
Semantics\TopLevelStatementsTests.cs (8)
3918
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(15, 34),
3924
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(17, 9),
3927
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(33, 38),
3933
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(35, 13)
4067
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(13, 34),
4073
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(15, 9),
4076
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(31, 38),
4082
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(33, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\ExtensionMethodTests.cs (5)
1151
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(9, 15),
1175
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(19, 11)
1895
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(14, 15),
1897
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(15, 16),
1899
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(19, 11));
Symbols\IndexerTests.cs (1)
1063
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(8, 17));
Symbols\Source\EventTests.cs (1)
1949
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type"));
Symbols\Source\PropertyTests.cs (1)
1056
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type"));
Symbols\Source\UsingAliasTests.cs (1)
939
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Alias").WithArguments("int*", "type").WithLocation(11, 17));
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
8539
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type parameter").WithLocation(11, 23),
14418
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 9),
Symbols\SymbolErrorTests.cs (5)
2391
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "F").WithArguments("NS.Test.F()", "method"),
2418
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"),
2421
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"),
2424
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Int16").WithArguments("short", "type"),
2427
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Int16").WithArguments("short", "type")
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Diagnostics\DiagnosticTest.cs (12)
2584
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(6, 18),
2590
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(6, 18),
2593
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 18),
2599
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 18)
2655
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 19),
2658
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 19),
2661
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 19),
2664
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(8, 17),
2667
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(9, 19),
2670
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(9, 19),
2673
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(9, 19),
2676
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(10, 17)
Parsing\ParserErrorMessageTests.cs (2)
708
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "MyClass").WithArguments("MyClass", "type").WithLocation(8, 9),
729
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("MyClass.E", "type").WithLocation(11, 9),
Parsing\ParsingErrorRecoveryTests.cs (1)
6389
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "c").WithArguments("c", "type").WithLocation(1, 41));