57 references to ERR_BadSKknown
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (3)
566
Error(diagnostics, ErrorCode.
ERR_BadSKknown
, node, ns.NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize(), MessageID.IDS_SK_VARIABLE.Localize());
571
Error(diagnostics, ErrorCode.
ERR_BadSKknown
, node, type.Type, MessageID.IDS_SK_TYPE.Localize(), MessageID.IDS_SK_VARIABLE.Localize());
808
Error(diagnostics, ErrorCode.
ERR_BadSKknown
, expr.Syntax, ((BoundNamespaceExpression)expr).NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize(), MessageID.IDS_SK_VARIABLE.Localize());
Binder\Binder_Invocation.cs (1)
114
ErrorCode.
ERR_BadSKknown
,
Binder\Binder_Symbols.cs (1)
338
var diagnosticInfo = diagnostics.Add(ErrorCode.
ERR_BadSKknown
, syntax.Location, syntax, symbol.Symbol.GetKindText(), MessageID.IDS_SK_TYPE.Localize());
Binder\LookupResult.cs (1)
204
var diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadSKknown
, unwrappedSymbol.Name, unwrappedSymbol.GetKindText(), MessageID.IDS_SK_TYPE.Localize()) : null;
Errors\ErrorFacts.cs (1)
653
case ErrorCode.
ERR_BadSKknown
:
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
788
diagnostics.Add(ErrorCode.
ERR_BadSKknown
, usingDirective.NamespaceOrType.Location,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
1284
Diagnostic(ErrorCode.
ERR_BadSKknown
, "o1").WithArguments("o1", "variable", "type").WithLocation(10, 13),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests.cs (2)
10295
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "type").WithLocation(5, 4),
10316
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "type").WithLocation(5, 4),
Semantics\PatternMatchingTests.cs (2)
4383
Diagnostic(ErrorCode.
ERR_BadSKknown
, "_").WithArguments("_", "variable", "type").WithLocation(9, 29),
4784
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Color").WithArguments("Color", "variable", "type").WithLocation(8, 18),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ISizeOfExpression.cs (1)
148
Diagnostic(ErrorCode.
ERR_BadSKknown
, "i").WithArguments("i", "variable", "type").WithLocation(8, 30),
IOperation\IOperationTests_ITypeOfExpression.cs (1)
113
Diagnostic(ErrorCode.
ERR_BadSKknown
, "t").WithArguments("t", "variable", "type").WithLocation(8, 30)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (35)
Semantics\BindingAsyncTasklikeTests.cs (1)
98
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await new Unawaitable()").WithArguments("GetAwaiter", "field", "method").WithLocation(15, 9)
Semantics\BindingAsyncTests.cs (2)
3720
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await x").WithArguments("GetAwaiter", "field", "method"));
3744
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await x").WithArguments("GetAwaiter", "property", "method"));
Semantics\BindingAwaitTests.cs (1)
2728
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await x").WithArguments("GetResult", "property", "method")
Semantics\BindingTests.cs (2)
437
Diagnostic(ErrorCode.
ERR_BadSKknown
, "N").WithArguments("N", "namespace", "variable"),
3466
Diagnostic(ErrorCode.
ERR_BadSKknown
, "x").WithArguments("x", "variable", "type").WithLocation(11, 9)
Semantics\ImplicitObjectCreationTests.cs (1)
4137
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "type").WithLocation(6, 11)
Semantics\NullableReferenceTypesTests.cs (2)
76548
Diagnostic(ErrorCode.
ERR_BadSKknown
, "s").WithArguments("s", "variable", "type").WithLocation(18, 16),
76551
Diagnostic(ErrorCode.
ERR_BadSKknown
, "t").WithArguments("t", "variable", "type").WithLocation(18, 26),
Semantics\ObjectAndCollectionInitializerTests.cs (2)
936
Diagnostic(ErrorCode.
ERR_BadSKknown
, @"""""").WithArguments("Add", "field", "method").WithLocation(12, 27),
982
Diagnostic(ErrorCode.
ERR_BadSKknown
, @"""""").WithArguments("Add", "property", "method").WithLocation(12, 27)
Semantics\OutVarTests.cs (1)
17887
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System.Collections.Generic.IEnumerable<System.Int32>").WithArguments("System.Collections.Generic.IEnumerable<int>", "type", "variable").WithLocation(6, 18)
Semantics\RecordTests.cs (1)
2519
Diagnostic(ErrorCode.
ERR_BadSKknown
, "r").WithArguments("r", "variable", "type").WithLocation(7, 9),
Semantics\RefFieldTests.cs (5)
11296
Diagnostic(ErrorCode.
ERR_BadSKknown
, "record").WithArguments("record", "variable", "type").WithLocation(1, 8),
12561
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(6, 16),
12573
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(7, 9),
12599
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(1, 8),
12608
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(2, 1),
Semantics\SemanticAnalyzerTests.cs (5)
110
Diagnostic(ErrorCode.
ERR_BadSKknown
, "N").WithArguments("N", "namespace", "variable").WithLocation(8, 18),
699
Diagnostic(ErrorCode.
ERR_BadSKknown
, "N").WithArguments("N", "namespace", "variable").WithLocation(15, 9),
702
Diagnostic(ErrorCode.
ERR_BadSKknown
, "C").WithArguments("C", "type", "variable").WithLocation(16, 9),
822
Diagnostic(ErrorCode.
ERR_BadSKknown
, "C").WithArguments("C", "type", "variable").WithLocation(37, 24),
1303
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable").WithLocation(17, 35),
Semantics\SemanticErrorTests.cs (7)
2441
Diagnostic(ErrorCode.
ERR_BadSKknown
, "myTest").WithArguments("myTest", "variable", "type"));
2459
Diagnostic(ErrorCode.
ERR_BadSKknown
, "args").WithArguments("args", "variable", "type").WithLocation(6, 16),
2462
Diagnostic(ErrorCode.
ERR_BadSKknown
, "a").WithArguments("a", "variable", "type").WithLocation(7, 16));
2493
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable"),
2497
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable"));
11039
Diagnostic(ErrorCode.
ERR_BadSKknown
, "b").WithArguments("b", "variable", "type"),
11042
Diagnostic(ErrorCode.
ERR_BadSKknown
, "c").WithArguments("c", "variable", "type"),
Semantics\SwitchTests.cs (2)
2783
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable").WithLocation(8, 18),
2794
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable").WithLocation(8, 18),
Semantics\TargetTypedDefaultTests.cs (1)
3551
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "type").WithLocation(6, 17)
Semantics\UnsafeTests.cs (2)
7636
Diagnostic(ErrorCode.
ERR_BadSKknown
, "s").WithArguments("s", "variable", "type"),
7639
Diagnostic(ErrorCode.
ERR_BadSKknown
, "i").WithArguments("i", "variable", "type"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\SymbolErrorTests.cs (5)
2319
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Goo").WithArguments("Goo", "namespace", "type"),
2322
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Goo").WithArguments("Goo", "namespace", "type"),
2325
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Goo").WithArguments("Goo", "namespace", "type"),
2364
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadSKknown
, Line = 6, Column = 10 });
2390
Diagnostic(ErrorCode.
ERR_BadSKknown
, "NS").WithArguments("NS", "namespace", "variable")
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\FileModifierParsingTests.cs (2)
3027
Diagnostic(ErrorCode.
ERR_BadSKknown
, "file").WithArguments("file", "variable", "type").WithLocation(3, 5),
3149
Diagnostic(ErrorCode.
ERR_BadSKknown
, "file").WithArguments("file", "variable", "type").WithLocation(1, 1),