73 references to ERR_BadSKknown
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (3)
739
Error(diagnostics, ErrorCode.
ERR_BadSKknown
, node, ns.NamespaceSymbol, MessageID.IDS_SK_NAMESPACE.Localize(), MessageID.IDS_SK_VARIABLE.Localize());
744
Error(diagnostics, ErrorCode.
ERR_BadSKknown
, node, type.Type, MessageID.IDS_SK_TYPE.Localize(), MessageID.IDS_SK_VARIABLE.Localize());
1020
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)
171
ErrorCode.
ERR_BadSKknown
,
Binder\Binder_Symbols.cs (1)
340
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)
714
or ErrorCode.
ERR_BadSKknown
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
832
diagnostics.Add(ErrorCode.
ERR_BadSKknown
, usingDirective.NamespaceOrType.Location,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
8733
Diagnostic(ErrorCode.
ERR_BadSKknown
, "s").WithArguments("s", "variable", "type").WithLocation(12, 13),
8799
Diagnostic(ErrorCode.
ERR_BadSKknown
, "s").WithArguments("s", "variable", "type").WithLocation(11, 13),
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
1284
Diagnostic(ErrorCode.
ERR_BadSKknown
, "o1").WithArguments("o1", "variable", "type").WithLocation(10, 13),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Attributes\AttributeTests.cs (2)
10595
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "type").WithLocation(5, 4),
10616
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "type").WithLocation(5, 4),
Semantics\CollectionExpressionTests.cs (1)
27764
Diagnostic(ErrorCode.
ERR_BadSKknown
, "[x, ..y]").WithArguments("Add", "field", "method").WithLocation(5, 26));
Semantics\ExtensionTests.cs (8)
16085
Diagnostic(ErrorCode.
ERR_BadSKknown
, "[42]").WithArguments("Add", "property", "method").WithLocation(4, 18));
16134
Diagnostic(ErrorCode.
ERR_BadSKknown
, "[42]").WithArguments("Add", "property", "method").WithLocation(4, 18));
22587
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await new C()").WithArguments("GetAwaiter", "property", "method").WithLocation(5, 9));
22650
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await new C()").WithArguments("GetAwaiter", "property", "method").WithLocation(5, 9));
22783
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await new C()").WithArguments("GetResult", "property", "method").WithLocation(4, 9));
22846
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await new C()").WithArguments("GetResult", "property", "method").WithLocation(4, 9));
24464
Diagnostic(ErrorCode.
ERR_BadSKknown
, "42").WithArguments("Add", "property", "method").WithLocation(4, 39));
24513
Diagnostic(ErrorCode.
ERR_BadSKknown
, "42").WithArguments("Add", "property", "method").WithLocation(4, 39));
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\PatternMatchingTests.cs (2)
4383
Diagnostic(ErrorCode.
ERR_BadSKknown
, "_").WithArguments("_", "variable", "type").WithLocation(9, 29),
4778
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Color").WithArguments("Color", "variable", "type").WithLocation(8, 18),
Semantics\PrimaryConstructorTests.cs (3)
8321
Diagnostic(ErrorCode.
ERR_BadSKknown
, "T").WithArguments("T", "type", "variable").WithLocation(12, 9)
8353
Diagnostic(ErrorCode.
ERR_BadSKknown
, "T").WithArguments("T", "type", "variable").WithLocation(11, 9),
8356
Diagnostic(ErrorCode.
ERR_BadSKknown
, "T").WithArguments("T", "type", "variable").WithLocation(18, 27)
Semantics\RecordTests.cs (1)
2574
Diagnostic(ErrorCode.
ERR_BadSKknown
, "r").WithArguments("r", "variable", "type").WithLocation(7, 9),
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 (34)
Semantics\BindingAsyncTasklikeTests.cs (1)
98
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await new Unawaitable()").WithArguments("GetAwaiter", "field", "method").WithLocation(15, 9)
Semantics\BindingAsyncTests.cs (2)
3779
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await x").WithArguments("GetAwaiter", "field", "method"));
3803
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await x").WithArguments("GetAwaiter", "property", "method"));
Semantics\BindingAwaitTests.cs (1)
2729
Diagnostic(ErrorCode.
ERR_BadSKknown
, "await x").WithArguments("GetResult", "property", "method")
Semantics\BindingTests.cs (2)
438
Diagnostic(ErrorCode.
ERR_BadSKknown
, "N").WithArguments("N", "namespace", "variable"),
3726
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)
80243
Diagnostic(ErrorCode.
ERR_BadSKknown
, "s").WithArguments("s", "variable", "type").WithLocation(18, 16),
80246
Diagnostic(ErrorCode.
ERR_BadSKknown
, "t").WithArguments("t", "variable", "type").WithLocation(18, 26),
Semantics\ObjectAndCollectionInitializerTests.cs (2)
938
Diagnostic(ErrorCode.
ERR_BadSKknown
, @"""""").WithArguments("Add", "field", "method").WithLocation(12, 27),
984
Diagnostic(ErrorCode.
ERR_BadSKknown
, @"""""").WithArguments("Add", "property", "method").WithLocation(12, 27)
Semantics\RefFieldTests.cs (6)
11810
Diagnostic(ErrorCode.
ERR_BadSKknown
, "record").WithArguments("record", "variable", "type").WithLocation(1, 8),
11856
Diagnostic(ErrorCode.
ERR_BadSKknown
, "record").WithArguments("record", "variable", "type").WithLocation(1, 8),
13121
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(6, 16),
13133
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(7, 9),
13159
Diagnostic(ErrorCode.
ERR_BadSKknown
, "scoped").WithArguments("scoped", "variable", "type").WithLocation(1, 8),
13168
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)
2439
Diagnostic(ErrorCode.
ERR_BadSKknown
, "myTest").WithArguments("myTest", "variable", "type"));
2457
Diagnostic(ErrorCode.
ERR_BadSKknown
, "args").WithArguments("args", "variable", "type").WithLocation(6, 16),
2460
Diagnostic(ErrorCode.
ERR_BadSKknown
, "a").WithArguments("a", "variable", "type").WithLocation(7, 16));
2491
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable"),
2495
Diagnostic(ErrorCode.
ERR_BadSKknown
, "System").WithArguments("System", "namespace", "variable"));
11043
Diagnostic(ErrorCode.
ERR_BadSKknown
, "b").WithArguments("b", "variable", "type"),
11046
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)
10481
Diagnostic(ErrorCode.
ERR_BadSKknown
, "s").WithArguments("s", "variable", "type"),
10484
Diagnostic(ErrorCode.
ERR_BadSKknown
, "i").WithArguments("i", "variable", "type"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\Source\FileModifierTests.cs (1)
5159
Diagnostic(ErrorCode.
ERR_BadSKknown
, "App.Widget").WithArguments("App.Widget", "namespace", "type").WithLocation(10, 13),
Symbols\SymbolErrorTests.cs (5)
2323
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Goo").WithArguments("Goo", "namespace", "type"),
2326
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Goo").WithArguments("Goo", "namespace", "type"),
2329
Diagnostic(ErrorCode.
ERR_BadSKknown
, "Goo").WithArguments("Goo", "namespace", "type"),
2368
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadSKknown
, Line = 6, Column = 10 });
2394
Diagnostic(ErrorCode.
ERR_BadSKknown
, "NS").WithArguments("NS", "namespace", "variable")
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\FileModifierParsingTests.cs (2)
3028
Diagnostic(ErrorCode.
ERR_BadSKknown
, "file").WithArguments("file", "variable", "type").WithLocation(3, 5),
3150
Diagnostic(ErrorCode.
ERR_BadSKknown
, "file").WithArguments("file", "variable", "type").WithLocation(1, 1),