70 references to InsertNotSupportedByRuntime
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (65)
EditAndContinue\StatementEditingTests.cs (19)
2199
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a", GetResource("lambda"))],
2240
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a", GetResource("lambda"))],
2281
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a", GetResource("lambda"))],
2326
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a", GetResource("lambda"))],
2369
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "b", GetResource("lambda"))],
2702
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "b", GetResource("lambda"))],
2746
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "b", GetResource("lambda"))],
2788
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "b", GetResource("lambda"))],
3317
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "b", CSharpFeaturesResources.lambda)],
7459
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "f", GetResource("local function")),
7503
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "f", GetResource("local function")),
7560
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "f", GetResource("local function"))
8230
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "M", FeaturesResources.local_function)],
12283
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "where", GetResource("where clause")),
12284
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "group", GetResource("groupby clause")),
12285
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "select", GetResource("select clause"))
12341
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "where", GetResource("where clause")),
12342
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "group", GetResource("groupby clause")),
12343
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "select", GetResource("select clause"))
EditAndContinue\TopLevelEditingTests.cs (46)
1928
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "public class D", FeaturesResources.class_)],
2186
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "class C<T>", GetResource("class"))],
2360
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "C(int x)", FeaturesResources.constructor),
2361
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void M()", FeaturesResources.method),
2362
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void G<S>()", FeaturesResources.method),
2363
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P2", FeaturesResources.property_),
2364
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int this[int i]", FeaturesResources.indexer_),
2365
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "event Action E", FeaturesResources.event_),
2366
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "set", CSharpFeaturesResources.property_setter),
2367
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "get", CSharpFeaturesResources.indexer_getter),
2409
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", FeaturesResources.auto_property),
2410
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "EF", CSharpFeaturesResources.event_field),
2411
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F1", FeaturesResources.field),
2412
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F2", FeaturesResources.field),
2413
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "SF", FeaturesResources.field),
2418
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property")),
2419
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F1", FeaturesResources.field),
2420
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F2", FeaturesResources.field),
2421
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "SF", FeaturesResources.field),
2426
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", FeaturesResources.auto_property),
2427
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "EF", CSharpFeaturesResources.event_field)
2469
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void F()", FeaturesResources.method),
2470
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "X", FeaturesResources.field),
2471
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "Y", FeaturesResources.field)
3632
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "record C", GetResource("property getter", "X.get"))],
3653
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "record C<T>", GetResource("property getter", "X.get"))
8474
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "class C", GetResource("class"))],
8491
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "class C", GetResource("class"))],
10111
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void goo()", FeaturesResources.method)],
15146
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "(int P)", GetResource("constructor")),
15147
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("parameter"))
16245
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "c", GetResource("lambda"))],
19320
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "c", GetResource("lambda")),
19321
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "B = F(b => b + 1)", GetResource("field")),
19480
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a = 1", FeaturesResources.field)],
19493
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a = 1", FeaturesResources.field)],
19787
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("property getter"))],
20745
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", FeaturesResources.property_)],
20907
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
20945
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "static int P", GetResource("auto-property"))],
20966
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
20993
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
21016
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "static int P", GetResource("auto-property"))],
21043
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "static int P", GetResource("auto-property"))],
21282
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "get", GetResource("property getter"))
21306
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "get", GetResource("property getter"))
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
3131
RudeEditKind.
InsertNotSupportedByRuntime
,
3173
RudeEditKind.
InsertNotSupportedByRuntime
,
4413
rudeEdit = RudeEditKind.
InsertNotSupportedByRuntime
;
6030
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, [GetDisplayName(newLambda, EditKind.Insert)]));
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
160
AddRudeEdit(RudeEditKind.
InsertNotSupportedByRuntime
, nameof(FeaturesResources.Adding_0_requires_restarting_the_application));