123 references to ERR_BadSKunknown
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (1)
811
Error(diagnostics, ErrorCode.
ERR_BadSKunknown
, expr.Syntax, expr.Type, MessageID.IDS_SK_TYPE.Localize());
Binder\Binder_Expressions.cs (1)
6838
Error(diagnostics, ErrorCode.
ERR_BadSKunknown
, methodGroup.NameSyntax, method, MessageID.IDS_SK_METHOD.Localize());
Binder\Binder_Lookup.cs (1)
1488
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadSKunknown
, unwrappedSymbol, unwrappedSymbol.GetKindText()) : null;
Binder\Binder_Query.cs (2)
948
diagnostics.Add(ErrorCode.
ERR_BadSKunknown
, ultimateReceiver.Syntax.Location, ((BoundNamespaceExpression)ultimateReceiver).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize());
981
Error(diagnostics, ErrorCode.
ERR_BadSKunknown
, ultimateReceiver.Syntax, ultimateReceiver.Type, MessageID.IDS_SK_TYVAR.Localize());
Errors\ErrorFacts.cs (1)
654
case ErrorCode.
ERR_BadSKunknown
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenFunctionPointersTests.cs (4)
3597
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Action").WithArguments("System.Action", "type").WithLocation(8, 24),
3600
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Action").WithArguments("System.Action", "type").WithLocation(8, 24),
3648
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(7, 19),
3651
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.Emit2.UnitTests (7)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
2947
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"),
2953
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "CharSet").WithArguments("System.Runtime.InteropServices.CharSet", "type"),
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),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (8)
IOperation\IOperationTests_IDynamicIndexerAccessExpression.cs (1)
481
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)
436
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(4, 23),
439
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(7, 37)
535
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)
254
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("A.E()", "method").WithLocation(15, 15),
2502
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)
2093
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Main").WithArguments("Program.Main()", "method").WithLocation(6, 27)
Semantics\ForEachTests.cs (2)
1041
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Collections.IEnumerable").WithArguments("System.Collections.IEnumerable", "type"));
1060
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Console").WithArguments("System.Console", "type"));
Semantics\ImplicitObjectCreationTests.cs (5)
4762
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 13),
4765
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(7, 13),
4771
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(12, 13),
4774
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(13, 13)
4825
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(5, 8));
Semantics\InterpolationTests.cs (1)
971
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "String").WithArguments("string", "type").WithLocation(5, 35)
Semantics\LocalFunctionTests.cs (8)
2253
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T()", "method").WithLocation(26, 21),
3841
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type").WithLocation(6, 9),
7767
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(8, 36),
7805
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(10, 36)
8090
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(8, 24),
8241
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(8, 47),
8279
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "TParameter").WithArguments("TParameter", "type").WithLocation(10, 43)
8341
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\NullableReferenceTypesTests.cs (7)
1477
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "NS").WithArguments("NS", "namespace").WithLocation(11, 23),
1480
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Main").WithArguments("C.Main()", "method").WithLocation(12, 23)
1919
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 24),
2001
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("A.E()", "method").WithLocation(12, 15),
2022
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "F").WithArguments("A.F()", "method").WithLocation(21, 15),
2739
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "C").WithArguments("C", "type").WithLocation(7, 21),
65841
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(8, 25),
Semantics\NullableTests.cs (1)
2100
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\RecordTests.cs (1)
30241
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(16, 11)
Semantics\RefFieldTests.cs (1)
21628
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "R").WithArguments("R", "type").WithLocation(6, 30),
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)
2491
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Console").WithArguments("System.Console", "type"),
2495
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Console").WithArguments("System.Console", "type"),
2524
.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_BadSKunknown
, "color").WithArguments("color", "type"));
2542
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"),
2545
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"));
2594
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Exception").WithArguments("System.Exception", "type"));
23903
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "V").WithArguments("Program.V()", "method").WithLocation(18, 20),
24013
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "V").WithArguments("Program.V()", "method").WithLocation(21, 20),
Semantics\SpanStackSafetyTests.cs (2)
1674
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "S1").WithArguments("Program.S1", "type").WithLocation(15, 17),
1677
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)
3905
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(15, 34),
3911
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(17, 9),
3914
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(33, 38),
3920
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(35, 13)
4054
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(13, 34),
4060
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(15, 9),
4063
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(31, 38),
4069
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "args").WithArguments("args", "type").WithLocation(33, 13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\ExtensionMethodTests.cs (5)
1155
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(9, 15),
1179
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(19, 11)
1899
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(14, 15),
1901
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(15, 16),
1903
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "E").WithArguments("S.E(object)", "method").WithLocation(19, 11));
Symbols\IndexerTests.cs (1)
1061
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)
1055
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "Program").WithArguments("Program", "type"));
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
8557
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type parameter").WithLocation(11, 23),
14460
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "T").WithArguments("T", "type").WithLocation(6, 9),
Symbols\SymbolErrorTests.cs (5)
2387
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "F").WithArguments("NS.Test.F()", "method"),
2414
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"),
2417
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "global::System.Int32").WithArguments("int", "type"),
2420
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Int16").WithArguments("short", "type"),
2423
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.Int16").WithArguments("short", "type")
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Diagnostics\DiagnosticTest.cs (12)
2546
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(6, 18),
2552
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(6, 18),
2555
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 18),
2561
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 18)
2617
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 19),
2620
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 19),
2623
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(7, 19),
2626
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(8, 17),
2629
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(9, 19),
2632
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(9, 19),
2635
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").WithLocation(9, 19),
2638
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)
5585
Diagnostic(ErrorCode.
ERR_BadSKunknown
, "c").WithArguments("c", "type").WithLocation(1, 41));