49 references to GetResource
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (49)
EditAndContinue\ActiveStatementTests.cs (13)
748Diagnostic(RudeEditKind.Delete, "", GetResource("class", "N.C")), 749Diagnostic(RudeEditKind.DeleteActiveStatement, "", GetResource("method", "N.C.F()"))); 772Diagnostic(RudeEditKind.Delete, "namespace N", GetResource("class", "C")), 773Diagnostic(RudeEditKind.DeleteActiveStatement, "namespace N", GetResource("method", "N.C.F()"))); 803Diagnostic(RudeEditKind.DeleteActiveStatement, "class C", GetResource("method", "N.C.F()"))); 2994Diagnostic(RudeEditKind.DeleteActiveStatement, "class C", GetResource("field", "C.a")), 2995Diagnostic(RudeEditKind.Delete, "class C", GetResource("field", "a"))); 3129Diagnostic(RudeEditKind.DeleteActiveStatement, "class C", GetResource("field", "C.a")), 3130Diagnostic(RudeEditKind.Delete, "class C", GetResource("field", "a"))); 3180Diagnostic(RudeEditKind.DeleteActiveStatement, "class C", GetResource("field", "C.a")), 3181Diagnostic(RudeEditKind.Delete, "class C", GetResource("field", "a"))); 12022diagnostics: [Diagnostic(RudeEditKind.DeleteActiveStatement, "partial class C", GetResource("method", "F()"))]) 12045diagnostics: [Diagnostic(RudeEditKind.DeleteActiveStatement, "", GetResource("method", "C.F()"))])
EditAndContinue\TopLevelEditingTests.cs (36)
1371Diagnostic(RudeEditKind.Renamed, keyword + " D", GetResource(keyword, "C"))); 1391Diagnostic(RudeEditKind.Renamed, "class D", GetResource("class", "C"))); 1407Diagnostic(RudeEditKind.Renamed, "class D", GetResource("class", "C"))); 1428Diagnostic(RudeEditKind.Renamed, "class D", GetResource("class", "C"))); 2505Diagnostic(RudeEditKind.Delete, "using System.Runtime.CompilerServices;", GetResource("class", "C"))); 2991Diagnostic(RudeEditKind.Renamed, "record D", GetResource("record", "C"))); 3305Diagnostic(RudeEditKind.StackAllocUpdate, "record C", GetResource(kind, methodDisplay))); 3534[Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "record C", GetResource("property getter", "X.get"))], 3555Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "record C<T>", GetResource("property getter", "X.get")) 3868[Diagnostic(RudeEditKind.ChangingAttributesNotSupportedByRuntime, "record C", GetResource("property setter", "P.init"))], 4426Diagnostic(RudeEditKind.Renamed, "enum Colors", GetResource("enum", "Color"))); 4668Diagnostic(RudeEditKind.Renamed, "Orange", GetResource("enum value", "Red"))); 4858Diagnostic(RudeEditKind.Renamed, "public delegate void Z()", GetResource("delegate", "D"))); 5107Diagnostic(RudeEditKind.Renamed, "S", GetResource("type parameter", "T"))); 6055DocumentResults(diagnostics: [Diagnostic(RudeEditKind.Delete, null, GetResource("class", "C"))]), 6056DocumentResults(diagnostics: [Diagnostic(RudeEditKind.Delete, null, GetResource("class", "C"))]), 9063Diagnostic(RudeEditKind.Renamed, $"{modifier} void boo()", GetResource("method", "goo()"))); 9697Diagnostic(RudeEditKind.Renamed, "void Goo()", GetResource("method", "I.Goo()"))); 13088Diagnostic(RudeEditKind.StackAllocUpdate, "partial class C", GetResource("constructor", "C()")) 15312Diagnostic(RudeEditKind.StackAllocUpdate, "class C", GetResource("constructor", "C()"))); 15339Diagnostic(RudeEditKind.StackAllocUpdate, "class C", GetResource("constructor", "C()"))); 15354Diagnostic(RudeEditKind.StackAllocUpdate, "class C", GetResource("constructor", "C()"))); 15381Diagnostic(RudeEditKind.StackAllocUpdate, "class C", GetResource("constructor", "C()"))); 16529Diagnostic(RudeEditKind.Renamed, "b = 0", GetResource("field", "a"))); 17839Diagnostic(RudeEditKind.Renamed, "int J.P", GetResource("property", "I.P"))); 19888Diagnostic(RudeEditKind.Renamed, "int J.this[int a]", GetResource("indexer", "I.this[int a]"))); 19911Diagnostic(RudeEditKind.Renamed, "int J.this[int a]", GetResource("indexer", "I.this[int a]"))); 21269[Diagnostic(RudeEditKind.Renamed, "F", GetResource("event field", "E"))], 22199[Diagnostic(RudeEditKind.Renamed, "B", GetResource("type parameter", "A"))], 22205Diagnostic(RudeEditKind.Renamed, "B", GetResource("type parameter", "A")) 22239Diagnostic(RudeEditKind.Renamed, "C", GetResource("type parameter", "A")) 22396Diagnostic(RudeEditKind.Delete, "class C", GetResource("type parameter", "A"))); 22412Diagnostic(RudeEditKind.Delete, "class C<B>", GetResource("type parameter", "A"))); 22427Diagnostic(RudeEditKind.Renamed, "B", GetResource("type parameter", "A"))); 22459Diagnostic(RudeEditKind.Renamed, "C", GetResource("type parameter", "A"))); 22712Diagnostic(RudeEditKind.Delete, "class C<S>", GetResource("type parameter", "T")));