60 references to StackAllocUpdate
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2510
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)
7110
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("lambda")));
7136
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("lambda")));
7162
Diagnostic(RudeEditKind.
StackAllocUpdate
, "()", GetResource("lambda")));
10413
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("local function")));
10450
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("local function")));
10487
Diagnostic(RudeEditKind.
StackAllocUpdate
, "L1", GetResource("local function")));
12393
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("where clause")),
12394
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[40]", GetResource("select clause")),
12395
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("groupby clause")),
12396
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[30]", GetResource("groupby clause")));
EditAndContinue\TopLevelEditingTests.cs (45)
3403
Diagnostic(RudeEditKind.
StackAllocUpdate
, "record C", GetResource(kind, methodDisplay)));
11983
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method),
12023
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method));
12061
Diagnostic(RudeEditKind.
StackAllocUpdate
, "static void F()", FeaturesResources.method));
14826
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", FeaturesResources.constructor));
14837
Diagnostic(RudeEditKind.
StackAllocUpdate
, "C()", FeaturesResources.constructor));
14848
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", FeaturesResources.constructor));
15258
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor")));
15282
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor"))
15317
Diagnostic(RudeEditKind.
StackAllocUpdate
, "partial class C", GetResource("constructor", "C()"))
17541
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
17566
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("constructor")));
17590
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17616
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("auto-property")),
17617
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17631
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
17632
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17644
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
17658
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
17659
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17671
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
17685
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource(accessor == "" ? "field" : "auto-property")),
17686
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public G(Span<int> span)", GetResource("constructor")));
17701
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("constructor")));
17716
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
20468
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
20469
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
20787
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
20788
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
22532
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
22533
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
22560
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22670
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
22671
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
22686
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22906
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22936
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22966
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
23867
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
23868
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
23884
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
23885
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor"))
25594
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", GetResource("top-level code")),
25609
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[3]", GetResource("top-level code")),
25624
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));