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)); 2810Error(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)) 11917TypeSymbol? elementType = this.VisitType(node.ElementType); 11925TypeSymbol? elementType = this.VisitType(node.ElementType); 14377TypeSymbol elementType = GetUpdatedSymbol(node, node.ElementType); 14396TypeSymbol elementType = GetUpdatedSymbol(node, node.ElementType); 16684new TreeDumperNode("elementType", node.ElementType, null), 16694new 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));