52 references to ArrayRankSpecifierSyntax
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (3)
3994ArrayRankSpecifierSyntax firstRankSpecifier = node.Type.RankSpecifiers[0]; 4470SyntaxList<ArrayRankSpecifierSyntax> rankSpecifiers = arrayTypeSyntax.RankSpecifiers; 4479foreach (ArrayRankSpecifierSyntax rankSpecifier in rankSpecifiers)
Parser\DocumentationCommentParser.cs (1)
1457var rankList = _pool.Allocate<ArrayRankSpecifierSyntax>();
Parser\LanguageParser.cs (3)
5367var specifier = this.ParseArrayRankSpecifier(sawNonOmittedSize: out sawNonOmittedSize); 7337var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7538private ArrayRankSpecifierSyntax ParseArrayRankSpecifier(out bool sawNonOmittedSize)
Syntax\SyntaxExtensions.cs (2)
401internal static void VisitRankSpecifiers<TArg>(this TypeSyntax type, Action<ArrayRankSpecifierSyntax, TArg> action, in TArg argument) 410if (current is ArrayRankSpecifierSyntax rankSpecifier)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
727ArrayRankSpecifierSyntax n => (n.OpenBracketToken, n.CloseBracketToken),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
89using var _ = ArrayBuilder<ArrayRankSpecifierSyntax>.GetInstance(out var ranks);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
141ArrayRankSpecifierSyntax arrayRankSpecifier => InferTypeInArrayRankSpecifier(arrayRankSpecifier), 205ArrayRankSpecifierSyntax arrayRankSpecifier => InferTypeInArrayRankSpecifier(arrayRankSpecifier, token), 837private IEnumerable<TypeInferenceInfo> InferTypeInArrayRankSpecifier(ArrayRankSpecifierSyntax arrayRankSpecifier, SyntaxToken? previousToken = null)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\OutVarTests.cs (6)
34330var rankSpecifierOld = method.DescendantNodes().OfType<ArrayRankSpecifierSyntax>().Single(); 34332var rankSpecifierNew = rankSpecifierOld 34544var rankSpecifierOld = method.DescendantNodes().OfType<ArrayRankSpecifierSyntax>().Single(); 34546var rankSpecifierNew = rankSpecifierOld
Microsoft.CodeAnalysis.CSharp.Features (3)
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (3)
128else if (openBracket.Parent is ArrayRankSpecifierSyntax) 338token.Parent is ArrayRankSpecifierSyntax; 343Contract.ThrowIfFalse(openBracket.Parent is ArrayRankSpecifierSyntax && openBracket.Parent.Parent is ArrayTypeSyntax);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (12)
IOperation\IOperationTests_IVariableDeclaration.cs (12)
1215var rankSpecifierOld = syntaxTree.GetCompilationUnitRoot().DescendantNodes().OfType<ArrayRankSpecifierSyntax>().First(); 1216var rankSpecifierNew = rankSpecifierOld 2301var rankSpecifierOld = syntaxTree.GetCompilationUnitRoot().DescendantNodes().OfType<ArrayRankSpecifierSyntax>().First(); 2302var rankSpecifierNew = rankSpecifierOld 2362var rankSpecifierOld = syntaxTree.GetCompilationUnitRoot().DescendantNodes().OfType<ArrayRankSpecifierSyntax>().First(); 2363var rankSpecifierNew = rankSpecifierOld 2830var rankSpecifierOld = syntaxTree.GetCompilationUnitRoot().DescendantNodes().OfType<ArrayRankSpecifierSyntax>().First(); 2831var rankSpecifierNew = rankSpecifierOld
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\NullableReferenceTypesTests.cs (3)
7769var specifier = tree.GetRoot().DescendantNodes().OfType<ArrayRankSpecifierSyntax>().Single(); 7772var newSpecifier = specifier.Update(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (6)
10248=> SyntaxFactory.ArrayType(GenerateIdentifierName(), new SyntaxList<ArrayRankSpecifierSyntax>()); 10250private static ArrayRankSpecifierSyntax GenerateArrayRankSpecifier() 11044var node = GenerateArrayRankSpecifier(); 11049var newNode = node.WithOpenBracketToken(node.OpenBracketToken).WithSizes(node.Sizes).WithCloseBracketToken(node.CloseBracketToken); 14281var oldNode = GenerateArrayRankSpecifier(); 14297var oldNode = GenerateArrayRankSpecifier();
Syntax\SyntaxNodeTests.cs (1)
1912var spec = SyntaxFactory.ArrayRankSpecifier(
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
727ArrayRankSpecifierSyntax n => (n.OpenBracketToken, n.CloseBracketToken),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
89using var _ = ArrayBuilder<ArrayRankSpecifierSyntax>.GetInstance(out var ranks);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
141ArrayRankSpecifierSyntax arrayRankSpecifier => InferTypeInArrayRankSpecifier(arrayRankSpecifier), 205ArrayRankSpecifierSyntax arrayRankSpecifier => InferTypeInArrayRankSpecifier(arrayRankSpecifier, token), 837private IEnumerable<TypeInferenceInfo> InferTypeInArrayRankSpecifier(ArrayRankSpecifierSyntax arrayRankSpecifier, SyntaxToken? previousToken = null)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
83var specifier = specifiers[i];
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
441foreach (var rankSpecifier in arrayCreationExpression.Type.RankSpecifiers)