95 references to ChangingAttributesNotSupportedByRuntime
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (64)
EditAndContinue\StatementEditingTests.cs (15)
1992
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "([A]a)", FeaturesResources.method),
1993
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "([A]a)", FeaturesResources.method),
1994
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "([A]a)", FeaturesResources.parameter)
7419
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function) },
7436
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function) },
7495
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
7496
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
7514
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
7515
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
7532
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function) },
7548
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function) },
7577
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter) },
7593
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter) },
7622
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter) },
7638
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter) },
EditAndContinue\TopLevelEditingTests.cs (49)
1008
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
1024
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
1043
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
1062
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
1163
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
1181
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
1228
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_) },
3823
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "enum E", FeaturesResources.enum_) },
3841
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "X", FeaturesResources.enum_value) },
3859
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "[A]X", FeaturesResources.enum_value) },
3878
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "[A2]X", FeaturesResources.enum_value) },
4498
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter) },
4666
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public delegate int D(int a)", FeaturesResources.delegate_) },
5503
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
8231
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8271
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8421
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8454
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8485
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8517
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8548
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8580
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
8613
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void Main(string[] args)", FeaturesResources.method) },
10041
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", DeletedSymbolDisplay(FeaturesResources.constructor, "C()")),
11532
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, $"{typeKind} C", DeletedSymbolDisplay(FeaturesResources.constructor, "C()")),
13548
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
13549
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
14474
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", FeaturesResources.property_) },
14502
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "get", CSharpFeaturesResources.property_getter) },
14515
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "set", CSharpFeaturesResources.property_setter) },
16563
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_) },
16594
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_) },
16627
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor) },
16655
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_) },
16683
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_) },
16716
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor) },
17161
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter) },
17180
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter) },
17198
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter) },
17217
new[] { Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter) },
17360
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17384
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17407
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17431
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17473
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17608
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17631
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17671
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
17694
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
4371
ReportUpdateRudeEdit(diagnostics, RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, oldSymbol, newSymbol, newNode, newCompilation, cancellationToken);
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
148
AddRudeEdit(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, nameof(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime));
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (29)
EditAndContinue\TopLevelEditingTests.vb (29)
325
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Class C", FeaturesResources.class_)},
354
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Class C", FeaturesResources.class_)},
368
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Class C", FeaturesResources.class_)},
428
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Class C", FeaturesResources.class_)},
616
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Class C", FeaturesResources.class_)},
634
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, keyword & " C", GetResource(keyword))},
1998
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Enum E", FeaturesResources.enum_)},
2012
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "X", FeaturesResources.enum_value)},
2026
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "<System.Obsolete>X", FeaturesResources.enum_value)},
2043
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "<A2>X", FeaturesResources.enum_value)},
2486
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Public Delegate Function D(a As Integer)", FeaturesResources.delegate_)},
4780
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4794
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4808
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4822
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4836
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4850
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4864
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
4878
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Sub F()", FeaturesResources.method)},
6868
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Shared Function Goo()", FeaturesResources.method),
10861
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "a As Integer", FeaturesResources.parameter)},
10875
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "a As Integer", FeaturesResources.parameter)},
10889
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "a As Integer", FeaturesResources.parameter)},
10906
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "a As Integer", FeaturesResources.parameter)},
10923
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Public Function M()", FeaturesResources.method)},
10949
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Public Function M()", FeaturesResources.method)},
10963
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Public Function M()", FeaturesResources.method)},
10977
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Public Function M()", FeaturesResources.method),
10992
{Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "Public Function M()", FeaturesResources.method),