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"))
10032
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10049
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10107
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
10108
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
10125
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function),
10126
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)
10143
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10159
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.local_function)],
10188
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter)],
10204
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.parameter)],
10233
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "L", FeaturesResources.type_parameter)],
10249
[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),
11363
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11409
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11602
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11639
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11674
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11710
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11745
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11781
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
11818
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "static void F()", FeaturesResources.method)],
16983
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, $"class C", DeletedSymbolDisplay(FeaturesResources.constructor, "C()")),
19522
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
19523
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "public int a = 1, x = 1", FeaturesResources.field),
20651
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
20669
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int P", FeaturesResources.property_)],
20689
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "get", CSharpFeaturesResources.property_getter)],
20706
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "set", CSharpFeaturesResources.property_setter)],
22413
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int this[int a]", GetResource("indexer"))],
22600
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", GetResource("parameter"))],
23480
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", GetResource("event field"))],
23514
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_)],
23550
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor)],
23582
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", GetResource("event field"))],
23614
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "event Action F", FeaturesResources.event_)],
23650
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "remove", FeaturesResources.event_accessor)],
24441
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
24460
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
24478
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
24497
[Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "int a", FeaturesResources.parameter)],
24789
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", GetResource("type parameter"))
24923
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
24944
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
24982
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
25003
Diagnostic(RudeEditKind.
ChangingAttributesNotSupportedByRuntime
, "T", FeaturesResources.type_parameter)
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
4831
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));