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"))
9962
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
9979
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10037
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
10038
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
10055
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
10056
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
10073
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10089
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10118
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter)],
10134
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter)],
10163
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter)],
10179
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter)],
EditAndContinue\TopLevelEditingTests.cs (51)
1133
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1149
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1168
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1187
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1356
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1374
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
1421
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "class C", FeaturesResources.class_)],
3935
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
3961
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "record C", GetResource("property setter", "P.init"))],
4323
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int P", GetResource("auto-property"))],
4349
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "init", GetResource("property setter"))],
4420
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "enum E", FeaturesResources.enum_)],
4438
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "X", FeaturesResources.enum_value)],
4456
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "[A]X", FeaturesResources.enum_value)],
4475
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "[A2]X", FeaturesResources.enum_value)],
5124
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", GetResource("parameter"))],
5265
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public delegate int D(int a)", FeaturesResources.delegate_)],
6121
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter),
9265
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9311
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9504
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9541
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9576
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9612
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9647
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9683
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
9720
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
14885
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, $"class C", DeletedSymbolDisplay(FeaturesResources.constructor, "C()")),
17424
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
17425
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
18553
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
18571
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", FeaturesResources.property_)],
18591
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "get", CSharpFeaturesResources.property_getter)],
18608
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "set", CSharpFeaturesResources.property_setter)],
20315
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int this[int a]", GetResource("indexer"))],
20502
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", GetResource("parameter"))],
21382
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", GetResource("event field"))],
21416
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_)],
21452
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor)],
21484
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", GetResource("event field"))],
21516
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_)],
21552
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor)],
22343
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22362
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22380
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22399
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
22691
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", GetResource("type parameter"))
22825
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
22846
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
22884
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
22905
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
4764
diagnosticContext.Report(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, cancellationToken);
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
161
AddRudeEdit(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, nameof(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime));