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)],
7391
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "f", GetResource("local function")),
7435
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "f", GetResource("local function")),
7492
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "f", GetResource("local function"))
8162
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "M", FeaturesResources.local_function)],
12215
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "where", GetResource("where clause")),
12216
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "group", GetResource("groupby clause")),
12217
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "select", GetResource("select clause"))
12273
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "where", GetResource("where clause")),
12274
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "group", GetResource("groupby clause")),
12275
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "select", GetResource("select clause"))
EditAndContinue\TopLevelEditingTests.cs (46)
1932
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "public class D", FeaturesResources.class_)],
2190
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "class C<T>", GetResource("class"))],
2366
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "C(int x)", FeaturesResources.constructor),
2367
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void M()", FeaturesResources.method),
2368
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void G<S>()", FeaturesResources.method),
2369
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P2", FeaturesResources.property_),
2370
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int this[int i]", FeaturesResources.indexer_),
2371
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "event Action E", FeaturesResources.event_),
2372
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "set", CSharpFeaturesResources.property_setter),
2373
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "get", CSharpFeaturesResources.indexer_getter),
2415
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", FeaturesResources.auto_property),
2416
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "EF", CSharpFeaturesResources.event_field),
2417
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F1", FeaturesResources.field),
2418
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F2", FeaturesResources.field),
2419
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "SF", FeaturesResources.field),
2424
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property")),
2425
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F1", FeaturesResources.field),
2426
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "F2", FeaturesResources.field),
2427
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "SF", FeaturesResources.field),
2432
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", FeaturesResources.auto_property),
2433
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "EF", CSharpFeaturesResources.event_field)
2475
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void F()", FeaturesResources.method),
2476
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "X", FeaturesResources.field),
2477
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "Y", FeaturesResources.field)
3652
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "record C", GetResource("property getter", "X.get"))],
3673
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "record C<T>", GetResource("property getter", "X.get"))
6432
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "class C", GetResource("class"))],
6449
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "class C", GetResource("class"))],
8105
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "void goo()", FeaturesResources.method)],
13172
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "(int P)", GetResource("constructor")),
13173
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("parameter"))
14299
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "c", GetResource("lambda"))],
17400
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "c", GetResource("lambda")),
17401
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "B = F(b => b + 1)", GetResource("field")),
17560
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a = 1", FeaturesResources.field)],
17573
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "a = 1", FeaturesResources.field)],
17869
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("property getter"))],
18827
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", FeaturesResources.property_)],
18989
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
19027
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "static int P", GetResource("auto-property"))],
19048
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
19075
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "int P", GetResource("auto-property"))],
19098
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "static int P", GetResource("auto-property"))],
19125
[Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "static int P", GetResource("auto-property"))],
19364
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "get", GetResource("property getter"))
19388
Diagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, "get", GetResource("property getter"))
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2969
RudeEditKind.
InsertNotSupportedByRuntime
,
3011
RudeEditKind.
InsertNotSupportedByRuntime
,
4243
rudeEdit = RudeEditKind.
InsertNotSupportedByRuntime
;
5844
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.
InsertNotSupportedByRuntime
, GetDiagnosticSpan(newLambda, EditKind.Insert), newLambda, [GetDisplayName(newLambda, EditKind.Insert)]));
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
150
AddRudeEdit(RudeEditKind.
InsertNotSupportedByRuntime
, nameof(FeaturesResources.Adding_0_requires_restarting_the_application));