2 overrides of Rank
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ArrayTypeSymbol.cs (2)
527public override int Rank 579public sealed override int Rank
27 references to Rank
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Expressions.cs (5)
4219if (dimension == type.Rank) 4300boundInitExprOpt = BindArrayInitializerExpressions(node, diagnostics, dimension, type.Rank); 4373int rank = type.Rank; 4426Error(diagnostics, ErrorCode.ERR_BadIndexCount, nonNullSyntax, type.Rank); 9331int rank = arrayType.Rank;
Binder\DecisionDagBuilder.cs (2)
1554array1.Rank == array2.Rank)
CodeGen\EmitArrayInitializer.cs (1)
195Debug.Assert(indices.Count == arrayType.Rank - 1);
Compiler\ClsComplianceChecker.cs (2)
1383sawArrayRankDifference = sawArrayRankDifference || xArrayType.Rank != yArrayType.Rank;
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
55for (int i = 0; i < symbol.Rank - 1; i++)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
163return ArrayTypeSymbol.CreateMDArray(_otherAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(otherElementType, otherModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds); 869return ArrayTypeSymbol.CreateMDArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds);
Emitter\Model\ArrayTypeSymbolAdapter.cs (1)
48int Cci.IArrayTypeReference.Rank => AdaptedArrayTypeSymbol.Rank;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
1060int rank = arrayType.Rank;
Lowering\SyntheticBoundNodeFactory.cs (1)
1167int rank = ((ArrayTypeSymbol)array.Type).Rank;
Symbols\AbstractTypeMap.cs (1)
221t.Rank,
Symbols\ArrayTypeSymbol.cs (6)
141return Rank == other.Rank && IsSZArray == other.IsSZArray; 145/// Specified sizes for dimensions, by position. The length can be less than <see cref="Rank"/>, 158/// Specified lower bounds for dimensions, by position. The length can be less than <see cref="Rank"/>, 171/// Note, <see cref="Rank"/> equality should be checked separately!!! 379hash = Hash.Combine(cur.Rank, hash);
Symbols\Compilation_WellKnownMembers.cs (1)
1221return (array.Rank == countOfDimensions);
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
322ArrayTypeSymbol.CreateMDArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers), arrayType.Rank, arrayType.Sizes, arrayType.LowerBounds);
Symbols\PublicModel\ArrayTypeSymbol.cs (1)
35int IArrayTypeSymbol.Rank => _underlying.Rank;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
710return ArrayTypeSymbol.CreateMDArray(this.RetargetingAssembly, newElement, type.Rank, type.Sizes, type.LowerBounds);