1 write to Count
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7326this.Count = count;
21 references to Count
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Conversions.cs (1)
3046var convertedNode = new BoundConvertedStackAllocExpression(syntax, elementType, boundStackAlloc.Count, boundStackAlloc.InitializerOpt, stackAllocType, boundStackAlloc.HasErrors);
BoundTree\Expression.cs (2)
139protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(GetChildInitializers(this.InitializerOpt).Insert(0, this.Count)); 144protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(GetChildInitializers(this.InitializerOpt).Insert(0, this.Count));
BoundTree\Formatting.cs (2)
155=> (Type is null) ? FormattableStringFactory.Create("stackalloc {0}[{1}]", ElementType, Count.WasCompilerGenerated ? null : Count.Syntax.ToString()) : base.Display;
CodeGen\EmitExpression.cs (2)
2434EmitStackAlloc(expression.Type, initializer, expression.Count); 2440EmitExpression(expression.Count, used: false);
FlowAnalysis\AbstractFlowPass.cs (1)
3597VisitRvalue(node.Count);
FlowAnalysis\NullableWalker.cs (1)
13497VisitRvalue(node.Count);
Generated\BoundNodes.xml.Generated.cs (10)
7352if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7381if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10884this.Visit(node.Count); 10890this.Visit(node.Count); 12366BoundExpression count = (BoundExpression)this.Visit(node.Count); 12374BoundExpression count = (BoundExpression)this.Visit(node.Count); 14872BoundExpression count = (BoundExpression)this.Visit(node.Count); 14891BoundExpression count = (BoundExpression)this.Visit(node.Count); 17226new TreeDumperNode("count", null, new TreeDumperNode[] { Visit(node.Count, null) }), 17236new TreeDumperNode("count", null, new TreeDumperNode[] { Visit(node.Count, null) }),
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
27var rewrittenCount = VisitExpression(stackAllocNode.Count);
Lowering\SpillSequenceSpiller.cs (1)
847BoundExpression count = VisitExpression(ref builder, node.Count);