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)
7040
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("lambda")));
7066
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("lambda")));
7092
Diagnostic(RudeEditKind.
StackAllocUpdate
, "()", GetResource("lambda")));
10343
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("local function")));
10380
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("local function")));
10417
Diagnostic(RudeEditKind.
StackAllocUpdate
, "L1", GetResource("local function")));
12323
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("where clause")),
12324
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[40]", GetResource("select clause")),
12325
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("groupby clause")),
12326
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[30]", GetResource("groupby clause")));
EditAndContinue\TopLevelEditingTests.cs (45)
3399
Diagnostic(RudeEditKind.
StackAllocUpdate
, "record C", GetResource(kind, methodDisplay)));
9828
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method),
9868
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method));
9906
Diagnostic(RudeEditKind.
StackAllocUpdate
, "static void F()", FeaturesResources.method));
12671
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", FeaturesResources.constructor));
12682
Diagnostic(RudeEditKind.
StackAllocUpdate
, "C()", FeaturesResources.constructor));
12693
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", FeaturesResources.constructor));
13103
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor")));
13127
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor"))
13162
Diagnostic(RudeEditKind.
StackAllocUpdate
, "partial class C", GetResource("constructor", "C()"))
15247
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
15272
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("constructor")));
15296
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15322
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("auto-property")),
15323
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15337
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
15338
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15350
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
15364
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
15365
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
15377
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
15391
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource(accessor == "" ? "field" : "auto-property")),
15392
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public G(Span<int> span)", GetResource("constructor")));
15407
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("constructor")));
15422
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
18174
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
18175
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
18493
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
18494
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
20238
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
20239
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
20266
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20376
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
20377
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
20392
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20612
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20642
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
20672
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
21573
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
21574
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
21590
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
21591
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor"))
23300
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", GetResource("top-level code")),
23315
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[3]", GetResource("top-level code")),
23330
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[3]", GetResource("top-level code")),
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
130
AddRudeEdit(RudeEditKind.
StackAllocUpdate
, nameof(FeaturesResources.Modifying_0_which_contains_the_stackalloc_operator_requires_restarting_the_application));