39 references to RestPosition
Microsoft.CodeAnalysis.VisualBasic (39)
Symbols\NamedTypeSymbol.vb (8)
1532If arity > 0 AndAlso arity < TupleTypeSymbol.RestPosition Then 1535ElseIf arity = TupleTypeSymbol.RestPosition AndAlso Not IsDefinition Then 1542typeToCheck = DirectCast(typeToCheck, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1) 1547If underlying.Arity = TupleTypeSymbol.RestPosition AndAlso Not TypeSymbol.Equals(underlying.OriginalDefinition, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then 1552tupleCardinality = (TupleTypeSymbol.RestPosition - 1) * levelsOfNesting + typeToCheck.TupleElementTypes.Length 1559arity < TupleTypeSymbol.RestPosition AndAlso 1561Debug.Assert(tupleCardinality < TupleTypeSymbol.RestPosition) 1562tupleCardinality += (TupleTypeSymbol.RestPosition - 1) * levelsOfNesting
Symbols\Tuples\TupleTypeSymbol.vb (31)
53Friend Const RestIndex As Integer = RestPosition - 1 420If tupleCompatibleType.Arity = TupleTypeSymbol.RestPosition Then 422Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes 423Dim instance As ArrayBuilder(Of TypeSymbol) = ArrayBuilder(Of TypeSymbol).GetInstance(TupleTypeSymbol.RestPosition - 1 + tupleElementTypes.Length) 424instance.AddRange(tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics, TupleTypeSymbol.RestPosition - 1) 435If Not tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).IsTupleType Then 441namedTypeSymbol = CType(namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1), NamedTypeSymbol) 442Loop While namedTypeSymbol.Arity = TupleTypeSymbol.RestPosition 451Dim typeArgumentsBuilder As ArrayBuilder(Of TypeWithModifiers) = ArrayBuilder(Of TypeWithModifiers).GetInstance(TupleTypeSymbol.RestPosition) 470For i As Integer = 0 To TupleTypeSymbol.RestPosition - 1 - 1 476If(hasTypeArgumentsCustomModifiers, tupleCompatibleType.GetTypeArgumentCustomModifiers(TupleTypeSymbol.RestPosition - 1), Nothing))) 511If namedTypeSymbol.Arity <> TupleTypeSymbol.RestPosition Then 514namedTypeSymbol = namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleUnderlyingType 526Dim length As Integer = Math.Min(namedTypeSymbol.Arity, TupleTypeSymbol.RestPosition - 1) 528If namedTypeSymbol.Arity <> TupleTypeSymbol.RestPosition Then 531namedTypeSymbol = CType(namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1), NamedTypeSymbol) 539namedTypeSymbol = namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleUnderlyingType 545remainder = (numElements - 1) Mod (RestPosition - 1) + 1 546Return (numElements - 1) \ (RestPosition - 1) + 1 560Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder)) 563Dim wellKnownType2 As NamedTypeSymbol = compilation.GetWellKnownType(TupleTypeSymbol.GetTupleType(TupleTypeSymbol.RestPosition)) 569Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol) 585Dim wellKnownType2 As NamedTypeSymbol = compilation.GetWellKnownType(TupleTypeSymbol.GetTupleType(TupleTypeSymbol.RestPosition)) 591If arity > TupleTypeSymbol.RestPosition Then 599If arity > TupleTypeSymbol.RestPosition Then 729tupleFieldIndex += (RestPosition - 1) * currentNestingLevel 809If currentUnderlying.Arity <> RestPosition Then 814currentUnderlying = oldUnderlying.TypeArgumentsNoUseSiteDiagnostics(RestPosition - 1).TupleUnderlyingType 817If currentUnderlying.Arity <> RestPosition Then 881Dim num As Integer = Math.Min(underlying.Arity, TupleTypeSymbol.RestPosition - 1)