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