134 references to GetResource
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (134)
EditAndContinue\ActiveStatementTests.vb (9)
2069
Diagnostic(RudeEditKind.ModifiersUpdate, "Private Const a As Integer = 1",
GetResource
("field")))
2114
Diagnostic(RudeEditKind.ModifiersUpdate, "Private Const a As Integer = 1, b As Integer = 2",
GetResource
("field")),
2115
Diagnostic(RudeEditKind.ModifiersUpdate, "Private Const a As Integer = 1, b As Integer = 2",
GetResource
("field")))
4624
Diagnostic(RudeEditKind.ComplexQueryExpression, "Join y In ys On F() Equals G()",
GetResource
("Lambda")))
4776
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "Function(b)",
GetResource
("Lambda")))
4804
Diagnostic(RudeEditKind.ActiveStatementLambdaRemoved, "Function(b)",
GetResource
("Lambda")))
4952
Diagnostic(RudeEditKind.ComplexQueryExpression, "Sub Main()",
GetResource
("method")),
5726
Diagnostic(RudeEditKind.ChangingFromAsynchronousToSynchronous, "Function()",
GetResource
("Lambda")))
5764
Diagnostic(RudeEditKind.ModifiersUpdate, "Function()",
GetResource
("Lambda")))
EditAndContinue\LineEditTests.vb (2)
493
diagnostics:={Diagnostic(RudeEditKind.UpdateStaticLocal, "Static a = 0",
GetResource
("method"))})
1038
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, " ",
GetResource
("field"))
EditAndContinue\StatementEditingTests.vb (18)
1368
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1410
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1453
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaReturnType, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1500
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1547
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaReturnType, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1630
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaReturnType, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1753
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1893
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
1950
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
2033
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
3943
RuntimeRudeEdit(0, RudeEditKind.ChangingLambdaParameters, syntaxMap.NodePosition(0), {
GetResource
("lambda")})
3979
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.NodePosition(0), {
GetResource
("select clause")})
4013
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.NodePosition(0), {
GetResource
("select clause")})
4047
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.NodePosition(0), {
GetResource
("select clause")})
4081
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.Position(0), {
GetResource
("from clause")})
4264
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.Position(0), {
GetResource
("let clause")})
4300
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.NodePosition(0), {
GetResource
("orderby clause")})
4336
RuntimeRudeEdit(0, RudeEditKind.ChangingQueryLambdaType, syntaxMap.NodePosition(0), {
GetResource
("orderby clause")})
EditAndContinue\TopLevelEditingTests.vb (105)
551
Diagnostic(RudeEditKind.ChangingAccessibility, keyword + " S",
GetResource
(keyword)))
636
{Diagnostic(RudeEditKind.ChangingAttributesNotSupportedByRuntime, keyword & " C",
GetResource
(keyword))},
856
diagnostics:={Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "Module C",
GetResource
("module"))},
871
diagnostics:={Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "Partial Module C",
GetResource
("module"))},
1326
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Property P1(i As Integer)",
GetResource
("property")),
1335
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Property P1(i As Integer)",
GetResource
("property"))
1777
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Sub F()",
GetResource
("method")),
1778
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Sub F()",
GetResource
("method")),
1779
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Sub F()",
GetResource
("method"))
1978
Diagnostic(RudeEditKind.ChangingNamespace, keyword + " C",
GetResource
(keyword), "N", "M"))
1992
Diagnostic(RudeEditKind.ChangingNamespace, "Delegate Sub F()",
GetResource
("Delegate"), "N", "M"))
2006
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N", "M.O"))
2455
Diagnostic(RudeEditKind.TypeUpdate, "a As Integer",
GetResource
("delegate")))
2480
Diagnostic(RudeEditKind.TypeUpdate, "Public Delegate Function D()",
GetResource
("delegate")))
2493
{Diagnostic(RudeEditKind.RenamingNotSupportedByRuntime, "b",
GetResource
("parameter"))},
2516
Diagnostic(RudeEditKind.TypeUpdate, "a As Byte",
GetResource
("delegate")))
2655
Diagnostic(RudeEditKind.Move, "Class C",
GetResource
("Class")))
2668
Diagnostic(RudeEditKind.Move, "Class D",
GetResource
("Class")))
2683
Diagnostic(RudeEditKind.Move, "Class D",
GetResource
("Class")))
2697
Diagnostic(RudeEditKind.Move, "Class D",
GetResource
("Class")))
2743
Diagnostic(RudeEditKind.Move, "Class C",
GetResource
("Class")))
3518
{Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "Class C",
GetResource
("Class"))},
3533
{Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "Class C",
GetResource
("Class"))},
3554
{Diagnostic(RudeEditKind.ChangingNamespace, keyword & " X",
GetResource
(keyword), "Global", "N")},
3565
{Diagnostic(RudeEditKind.ChangingNamespace, "Delegate Sub X()",
GetResource
("Delegate"), "Global", "N")},
3577
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "Global", "N"),
3578
Diagnostic(RudeEditKind.ChangingNamespace, "Class D",
GetResource
("Class"), "Global", "N")
3590
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "Global", "N")},
3601
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N", "N.M")},
3612
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "Global", "N.M")},
3623
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "Global", "N.M")},
3640
{Diagnostic(RudeEditKind.ChangingNamespace, keyword + " X",
GetResource
(keyword), "N", "Global")},
3652
{Diagnostic(RudeEditKind.ChangingNamespace, "Delegate Sub X()",
GetResource
("Delegate"), "N", "Global")},
3664
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N", "Global"),
3665
Diagnostic(RudeEditKind.ChangingNamespace, "Class D",
GetResource
("Class"), "N", "Global")
3677
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N.M", "Global")},
3694
{Diagnostic(RudeEditKind.ChangingNamespace, keyword + " X",
GetResource
(keyword), "N", "M")},
3706
{Diagnostic(RudeEditKind.ChangingNamespace, "Delegate Sub X()",
GetResource
("Delegate"), "N", "M")},
3718
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N", "M"),
3719
Diagnostic(RudeEditKind.ChangingNamespace, "Class D",
GetResource
("Class"), "N", "M")
3731
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N.M", "N.M.O")},
3742
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N.M", "N")},
3753
{Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N.M1.O", "N.M2.O")},
3793
Diagnostic(RudeEditKind.ChangingNamespace, "Partial Class C",
GetResource
("Class"), "N", "M")
3797
Diagnostic(RudeEditKind.ChangingNamespace, "Partial Class C",
GetResource
("Class"), "N", "M")
3811
Diagnostic(RudeEditKind.ChangingNamespace, "Partial Class C",
GetResource
("Class"), "M", "X"),
3812
Diagnostic(RudeEditKind.Delete, "Partial Class C", DeletedSymbolDisplay(
GetResource
("Class"), "C")))
3823
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N2", "M2"),
3824
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N1", "M1"))
3859
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N.M", "M"),
3860
Diagnostic(RudeEditKind.ChangingNamespace, "Class C(Of T)",
GetResource
("Class"), "N.M", "M"))
3875
Diagnostic(RudeEditKind.ChangingNamespace, "Class C",
GetResource
("Class"), "N1.M", "N2.M"))
4169
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Sub F(Of T)()",
GetResource
("method"))
4199
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Sub F(Of T)()",
GetResource
("method"))
4878
Diagnostic(RudeEditKind.TypeUpdate, "a As Boolean",
GetResource
("method")))
5167
Diagnostic(RudeEditKind.InsertOrMoveComInterfaceMember, "Sub H()",
GetResource
("method")))
5191
Diagnostic(RudeEditKind.InsertVirtual, "Sub F()",
GetResource
("method")),
5192
Diagnostic(RudeEditKind.InsertOrMoveComInterfaceMember, "Sub F()",
GetResource
("method")))
5267
Diagnostic(RudeEditKind.RenamingNotSupportedByRuntime, "Shared Sub G()",
GetResource
("method"))
5914
Diagnostic(RudeEditKind.UpdateStaticLocal, "Static a = 0",
GetResource
("method")))
5924
Diagnostic(RudeEditKind.UpdateStaticLocal, "Static a = 0",
GetResource
("method")))
5934
Diagnostic(RudeEditKind.UpdateStaticLocal, "Sub F()",
GetResource
("method")))
6299
Diagnostic(RudeEditKind.ModifiersUpdate, "Public Sub New()",
GetResource
("shared constructor")))
6337
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Public Sub New(a As Integer)",
GetResource
("constructor"))
7568
GetResource
(If(oldModifiers.Contains("Const"), "const field", "field"))))
7802
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "Dim WithEvents WE As Object",
GetResource
("WithEvents field"),
GetResource
("class")))
7824
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "WE2",
GetResource
("WithEvents field"),
GetResource
("class")))
8057
Diagnostic(RudeEditKind.ModifiersUpdate, "WithEvents a As WE",
GetResource
("field")))
8070
Diagnostic(RudeEditKind.ModifiersUpdate, "Dim a As WE",
GetResource
("WithEvents field")))
8141
Diagnostic(RudeEditKind.InsertOrMoveStructMember, "Private Event d",
GetResource
("event"),
GetResource
("structure")),
8142
Diagnostic(RudeEditKind.InsertOrMoveStructMember, "b As Integer",
GetResource
("field"),
GetResource
("structure")))
8207
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "b As Integer",
GetResource
("field"),
GetResource
("class")),
8208
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "c As Integer",
GetResource
("field"),
GetResource
("class")),
8209
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "d As Integer",
GetResource
("field"),
GetResource
("class")))
8237
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "b As Integer",
GetResource
("field"),
GetResource
("class")),
8238
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "c As Integer",
GetResource
("field"),
GetResource
("class")),
8239
Diagnostic(RudeEditKind.InsertOrMoveTypeWithLayoutMember, "d As Integer",
GetResource
("field"),
GetResource
("class")))
8392
{Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "Function(c)",
GetResource
("Lambda")),
8393
Diagnostic(RudeEditKind.InsertNotSupportedByRuntime, "B",
GetResource
("field"))},
8707
Diagnostic(rudeEditKind, "Property R",
GetResource
("auto-property"),
GetResource
(keyword)))
9005
Diagnostic(rudeEditKind, "Private Property b",
GetResource
("auto-property"),
GetResource
(type)))
9041
{Diagnostic(rudeEditKind, "Private Shared Property c",
GetResource
("auto-property"),
GetResource
(type))},
9809
{Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "a As Integer = 2",
GetResource
("field"))},
9826
Diagnostic(RudeEditKind.UpdatingGenericNotSupportedByRuntime, "Property a",
GetResource
("auto-property"))
10290
Diagnostic(RudeEditKind.ModifiersUpdate, "Dim x As Integer = 0",
GetResource
("const field")))
10300
Diagnostic(RudeEditKind.ModifiersUpdate, "Const x = 0",
GetResource
("field")))
11795
{Diagnostic(RudeEditKind.ChangingSignatureNotSupportedByRuntime, "Public Sub M()",
GetResource
("method"))},
11819
{Diagnostic(RudeEditKind.ChangingSignatureNotSupportedByRuntime, "Public Sub M(b As Integer)",
GetResource
("method"))},
12155
{Diagnostic(RudeEditKind.ChangingSignatureNotSupportedByRuntime, "A",
GetResource
("method"))},
12178
{Diagnostic(RudeEditKind.ChangingSignatureNotSupportedByRuntime, "B",
GetResource
("method"))},
12201
{Diagnostic(RudeEditKind.ChangingSignatureNotSupportedByRuntime, "Public Sub M ()",
GetResource
("method"))},
12224
{Diagnostic(RudeEditKind.ChangingSignatureNotSupportedByRuntime, "Public Sub M(Of B )()",
GetResource
("method"))},