1 write to ElementType
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7190this.ElementType = elementType;
17 references to ElementType
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Expressions.cs (2)
368var type = new PointerTypeSymbol(TypeWithAnnotations.Create(boundStackAlloc.ElementType)); 2813Error(diagnostics, ErrorCode.ERR_StackAllocConversionNotPossible, syntax, stackAllocExpression.ElementType, targetType);
Binder\Binder_Statements.cs (1)
2385Error(diagnostics, ErrorCode.ERR_StackAllocConversionNotPossible, syntax, stackAllocExpression.ElementType, targetType);
Binder\Semantics\Conversions\Conversions.cs (3)
489Debug.Assert((object)sourceExpression.ElementType != null); 491var sourceAsPointer = new PointerTypeSymbol(TypeWithAnnotations.Create(sourceExpression.ElementType)); 503var spanType_T = spanType.Construct(sourceExpression.ElementType);
BoundTree\Formatting.cs (1)
155=> (Type is null) ? FormattableStringFactory.Create("stackalloc {0}[{1}]", ElementType, Count.WasCompilerGenerated ? null : Count.Syntax.ToString()) : base.Display;
Generated\BoundNodes.xml.Generated.cs (8)
7217if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7246if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11953TypeSymbol? elementType = this.VisitType(node.ElementType); 11961TypeSymbol? elementType = this.VisitType(node.ElementType); 14413TypeSymbol elementType = GetUpdatedSymbol(node, node.ElementType); 14432TypeSymbol elementType = GetUpdatedSymbol(node, node.ElementType); 16720new TreeDumperNode("elementType", node.ElementType, null), 16730new TreeDumperNode("elementType", node.ElementType, null),
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
37var elementType = stackAllocNode.ElementType;
Lowering\SpillSequenceSpiller.cs (1)
838return UpdateExpression(builder, node.Update(node.ElementType, count, initializerOpt, node.Type));