21 references to Type
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
4507TypeSyntax typeSyntax = node.Type; 4621? ((StackAllocArrayCreationExpressionSyntax)node).Type
Syntax.xml.Main.Generated.cs (1)
1705=> node.Update(VisitToken(node.StackAllocKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (InitializerExpressionSyntax?)Visit(node.Initializer));
Syntax.xml.Syntax.Generated.cs (3)
4062if (stackAllocKeyword != this.StackAllocKeyword || type != this.Type || initializer != this.Initializer) 4072public StackAllocArrayCreationExpressionSyntax WithStackAllocKeyword(SyntaxToken stackAllocKeyword) => Update(stackAllocKeyword, this.Type, this.Initializer); 4074public StackAllocArrayCreationExpressionSyntax WithInitializer(InitializerExpressionSyntax? initializer) => Update(this.StackAllocKeyword, this.Type, initializer);
Syntax\SyntaxFactory.cs (1)
2230if (((StackAllocArrayCreationExpressionSyntax)parent).Type == node)
Syntax\SyntaxFacts.cs (1)
120return ((StackAllocArrayCreationExpressionSyntax)parent).Type == node;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (2)
112expression.Type.Span.End))); 137static e => e.Type,
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (2)
112expression.Type.Span.End))); 137static e => e.Type,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\StackAllocInitializerTests.cs (5)
2382var sizeInfo = model.GetSemanticInfoSummary(((ArrayTypeSyntax)@stackalloc.Type).RankSpecifiers[0].Sizes[0]); 2410sizeInfo = model.GetSemanticInfoSummary(((ArrayTypeSyntax)@stackalloc.Type).RankSpecifiers[0].Sizes[0]); 2438sizeInfo = model.GetSemanticInfoSummary(((ArrayTypeSyntax)@stackalloc.Type).RankSpecifiers[0].Sizes[0]); 2588var sizeInfo = model.GetSemanticInfoSummary(((ArrayTypeSyntax)@stackalloc.Type).RankSpecifiers[0].Sizes[0]); 2616sizeInfo = model.GetSemanticInfoSummary(((ArrayTypeSyntax)@stackalloc.Type).RankSpecifiers[0].Sizes[0]);
Semantics\UnsafeTests.cs (1)
11306var arrayTypeSyntax = (ArrayTypeSyntax)stackAllocSyntax.Type;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (2)
11892Assert.NotNull(node.Type); 11894var newNode = node.WithStackAllocKeyword(node.StackAllocKeyword).WithType(node.Type).WithInitializer(node.Initializer);
Syntax\SyntaxNodeTests.cs (1)
4041var newExpression = expression.Update(replacedKeyword, expression.Type).ToString();