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