39 references to RestPosition
Microsoft.CodeAnalysis.VisualBasic (39)
Symbols\NamedTypeSymbol.vb (8)
1530If arity > 0 AndAlso arity < TupleTypeSymbol.RestPosition Then 1533ElseIf arity = TupleTypeSymbol.RestPosition AndAlso Not IsDefinition Then 1540typeToCheck = DirectCast(typeToCheck, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1) 1545If underlying.Arity = TupleTypeSymbol.RestPosition AndAlso Not TypeSymbol.Equals(underlying.OriginalDefinition, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then 1550tupleCardinality = (TupleTypeSymbol.RestPosition - 1) * levelsOfNesting + typeToCheck.TupleElementTypes.Length 1557arity < TupleTypeSymbol.RestPosition AndAlso 1559Debug.Assert(tupleCardinality < TupleTypeSymbol.RestPosition) 1560tupleCardinality += (TupleTypeSymbol.RestPosition - 1) * levelsOfNesting
Symbols\Tuples\TupleTypeSymbol.vb (31)
53Friend Const RestIndex As Integer = RestPosition - 1 414If tupleCompatibleType.Arity = TupleTypeSymbol.RestPosition Then 416Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes 417Dim instance As ArrayBuilder(Of TypeSymbol) = ArrayBuilder(Of TypeSymbol).GetInstance(TupleTypeSymbol.RestPosition - 1 + tupleElementTypes.Length) 418instance.AddRange(tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics, TupleTypeSymbol.RestPosition - 1) 429If Not tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).IsTupleType Then 435namedTypeSymbol = CType(namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1), NamedTypeSymbol) 436Loop While namedTypeSymbol.Arity = TupleTypeSymbol.RestPosition 445Dim typeArgumentsBuilder As ArrayBuilder(Of TypeWithModifiers) = ArrayBuilder(Of TypeWithModifiers).GetInstance(TupleTypeSymbol.RestPosition) 464For i As Integer = 0 To TupleTypeSymbol.RestPosition - 1 - 1 470If(hasTypeArgumentsCustomModifiers, tupleCompatibleType.GetTypeArgumentCustomModifiers(TupleTypeSymbol.RestPosition - 1), Nothing))) 505If namedTypeSymbol.Arity <> TupleTypeSymbol.RestPosition Then 508namedTypeSymbol = namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleUnderlyingType 520Dim length As Integer = Math.Min(namedTypeSymbol.Arity, TupleTypeSymbol.RestPosition - 1) 522If namedTypeSymbol.Arity <> TupleTypeSymbol.RestPosition Then 525namedTypeSymbol = CType(namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1), NamedTypeSymbol) 533namedTypeSymbol = namedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleUnderlyingType 539remainder = (numElements - 1) Mod (RestPosition - 1) + 1 540Return (numElements - 1) \ (RestPosition - 1) + 1 554Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder)) 557Dim wellKnownType2 As NamedTypeSymbol = compilation.GetWellKnownType(TupleTypeSymbol.GetTupleType(TupleTypeSymbol.RestPosition)) 563Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol) 579Dim wellKnownType2 As NamedTypeSymbol = compilation.GetWellKnownType(TupleTypeSymbol.GetTupleType(TupleTypeSymbol.RestPosition)) 585If arity > TupleTypeSymbol.RestPosition Then 593If arity > TupleTypeSymbol.RestPosition Then 723tupleFieldIndex += (RestPosition - 1) * currentNestingLevel 803If currentUnderlying.Arity <> RestPosition Then 808currentUnderlying = oldUnderlying.TypeArgumentsNoUseSiteDiagnostics(RestPosition - 1).TupleUnderlyingType 811If currentUnderlying.Arity <> RestPosition Then 875Dim num As Integer = Math.Min(underlying.Arity, TupleTypeSymbol.RestPosition - 1)