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