68 references to ChangingAttributesNotSupportedByRuntime
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (66)
EditAndContinue\StatementEditingTests.cs (15)
2071
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "([A]a)", GetResource("lambda")),
2072
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "([A]a)", GetResource("lambda")),
2073
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "([A]a)", GetResource("parameter"))
9964
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
9981
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10039
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
10040
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
10057
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
10058
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
10075
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10091
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10120
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter)],
10136
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter)],
10165
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter)],
10181
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter)],
EditAndContinue\TopLevelEditingTests.cs (51)
1135
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1151
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1170
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1189
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1358
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1376
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1423
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
3955
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
3981
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "record C", GetResource("property setter", "P.init"))],
4343
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int P", GetResource("auto-property"))],
4369
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "init", GetResource("property setter"))],
4442
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "enum E", FeaturesResources.enum_)],
4460
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "X", FeaturesResources.enum_value)],
4478
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "[A]X", FeaturesResources.enum_value)],
4497
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "[A2]X", FeaturesResources.enum_value)],
5148
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", GetResource("parameter"))],
5289
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public delegate int D(int a)", FeaturesResources.delegate_)],
6169
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
9359
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9405
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9598
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9635
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9670
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9706
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9741
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9777
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9814
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
15059
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, $"class C", DeletedSymbolDisplay(FeaturesResources.constructor, "C()")),
17602
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
17603
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
18733
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
18751
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", FeaturesResources.property_)],
18771
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "get", CSharpFeaturesResources.property_getter)],
18788
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "set", CSharpFeaturesResources.property_setter)],
20513
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int this[int a]", GetResource("indexer"))],
20700
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", GetResource("parameter"))],
21586
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", GetResource("event field"))],
21620
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_)],
21656
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor)],
21688
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", GetResource("event field"))],
21720
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_)],
21756
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor)],
22551
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22570
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22588
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22607
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22899
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", GetResource("type parameter"))
23033
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
23054
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
23092
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
23113
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
4645
diagnosticContext.Report(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, cancellationToken);
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
151
AddRudeEdit(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, nameof(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime));