1 write to ElementType
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7189this.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)
2382Error(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)
7216if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 7245if (!TypeSymbol.Equals(elementType, this.ElementType, TypeCompareKind.ConsiderEverything) || count != this.Count || initializerOpt != this.InitializerOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11916TypeSymbol? elementType = this.VisitType(node.ElementType); 11924TypeSymbol? elementType = this.VisitType(node.ElementType); 14376TypeSymbol elementType = GetUpdatedSymbol(node, node.ElementType); 14395TypeSymbol elementType = GetUpdatedSymbol(node, node.ElementType); 16683new TreeDumperNode("elementType", node.ElementType, null), 16693new 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));