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)
3399
Diagnostic(RudeEditKind.
StackAllocUpdate
, "record C", GetResource(kind, methodDisplay)));
11926
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method),
11966
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc char[16]", FeaturesResources.method));
12004
Diagnostic(RudeEditKind.
StackAllocUpdate
, "static void F()", FeaturesResources.method));
14769
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", FeaturesResources.constructor));
14780
Diagnostic(RudeEditKind.
StackAllocUpdate
, "C()", FeaturesResources.constructor));
14791
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", FeaturesResources.constructor));
15201
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor")));
15225
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public C()", GetResource("constructor"))
15260
Diagnostic(RudeEditKind.
StackAllocUpdate
, "partial class C", GetResource("constructor", "C()"))
17345
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
17370
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("constructor")));
17394
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17420
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource("auto-property")),
17421
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17435
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
17436
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17448
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
17462
Diagnostic(RudeEditKind.
StackAllocUpdate
, "int a", GetResource("auto-property")),
17463
Diagnostic(RudeEditKind.
StackAllocUpdate
, "class C", GetResource("constructor", "C()")));
17475
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("auto-property")));
17489
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[20]", GetResource(accessor == "" ? "field" : "auto-property")),
17490
Diagnostic(RudeEditKind.
StackAllocUpdate
, "public G(Span<int> span)", GetResource("constructor")));
17505
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", GetResource("constructor")));
17520
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[10]", FeaturesResources.constructor));
20272
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
20273
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
20591
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property getter")),
20592
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("property setter"))
22336
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
22337
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
22364
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22474
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter")),
22475
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer setter"))
22490
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22710
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22740
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
22770
[Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("indexer getter"))],
23671
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
23672
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
23688
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor")),
23689
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[1]", GetResource("event accessor"))
25398
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[2]", GetResource("top-level code")),
25413
Diagnostic(RudeEditKind.
StackAllocUpdate
, "stackalloc int[3]", GetResource("top-level code")),
25428
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));