60 references to StackAllocUpdate
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2493
rudeEdit = RudeEditKind.
StackAllocUpdate
;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (58)
EditAndContinue\LineEditTests.cs (3)
751
diagnostics: [Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc bool[64]", GetResource("method"))]);
757
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc bool[64]", GetResource("method"))]);
789
diagnostics: [Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc bool[64]", GetResource("method"))]);
EditAndContinue\StatementEditingTests.cs (10)
7042
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("lambda")));
7068
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("lambda")));
7094
Diagnostic(RudeEditKind.
StackAllocUpdate
, "()", GetResource("lambda")));
10345
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("local function")));
10382
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("local function")));
10419
Diagnostic(RudeEditKind.
StackAllocUpdate
, "L1", GetResource("local function")));
12325
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("where clause")),
12326
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[40]", GetResource("select clause")),
12327
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("groupby clause")),
12328
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[30]", GetResource("groupby clause")));
EditAndContinue\TopLevelEditingTests.cs (45)
3419
Diagnostic(RudeEditKind.
StackAllocUpdate
, "record C", GetResource(kind, methodDisplay)));
9922
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method),
9962
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method));
10000
Diagnostic(RudeEditKind.
StackAllocUpdate
, "static void F()", FeaturesResources.method));
12795
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", FeaturesResources.constructor));
12806
Diagnostic(RudeEditKind.
StackAllocUpdate
, "C()", FeaturesResources.constructor));
12817
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", FeaturesResources.constructor));
13227
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor")));
13252
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor"))
13291
Diagnostic(RudeEditKind.
StackAllocUpdate
, "partial class C", GetResource("constructor", "C()"))
15421
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
15446
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("constructor")));
15470
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15496
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("auto-property")),
15497
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15511
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
15512
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15524
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
15538
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
15539
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15551
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
15565
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource(accessor == "" ? "field" : "auto-property")),
15566
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public G(Span<int> span)", GetResource("constructor")));
15581
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("constructor")));
15596
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
18354
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
18355
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
18673
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
18674
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
20436
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
20437
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
20464
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20574
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
20575
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
20590
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20810
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20840
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20870
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
21777
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
21778
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
21794
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
21795
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor"))
23508
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", GetResource("top-level code")),
23523
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[3]", GetResource("top-level code")),
23538
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[3]", GetResource("top-level code")),
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
120
AddRudeEdit(RudeEditKind.
StackAllocUpdate
, nameof(FeaturesResources.Modifying_0_which_contains_the_stackalloc_operator_requires_restarting_the_application));