2 writes to Type
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\TypeWithModifiers.vb (2)
17Me.Type = type 23Me.Type = type
93 references to Type
Microsoft.CodeAnalysis.VisualBasic (92)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (3)
407Dim newType = DirectCast(v.Visit(t.Type), TypeSymbol) 411newType = t.Type 734Dim translatedTypeArguments = type.GetAllTypeArgumentsWithModifiers().SelectAsArray(Function(t, v) New TypeWithModifiers(DirectCast(v.Visit(t.Type), TypeSymbol),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
34Dim awaiterType As TypeSymbol = node.GetAwaiter.Type.InternalSubstituteTypeParameters(Me.TypeMap).Type
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
61Me._resultType = DirectCast(Me.Method.ReturnType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics().Single().InternalSubstituteTypeParameters(Me.TypeMap).Type 413expression.Type.InternalSubstituteTypeParameters(typeMap).Type)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
336Dim parameter As BoundExpression = ConvertRuntimeHelperToExpressionTree("Parameter", _factory.[Typeof](p.Type.InternalSubstituteTypeParameters(_typeMap).Type), _factory.Literal(p.Name))
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
40Me._elementType = DirectCast(methodReturnType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics().Single().InternalSubstituteTypeParameters(Me.TypeMap).Type
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (2)
80type = local.Type.InternalSubstituteTypeParameters(frame.TypeMap).Type 85type = parameter.Type.InternalSubstituteTypeParameters(frame.TypeMap).Type
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1172type.InternalSubstituteTypeParameters(containerAsFrame.TypeMap).Type)
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (2)
84curParam.Type.InternalSubstituteTypeParameters(TypeMap).Type, 144Return _lambda.ReturnType.InternalSubstituteTypeParameters(TypeMap).Type
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (2)
201params(i) = SynthesizedMethod.WithNewContainerAndType(Me, curParam.Type.InternalSubstituteTypeParameters(Me._typeMap).Type, curParam) 205Me._returnType = Me._wrappedMethod.ReturnType.InternalSubstituteTypeParameters(Me._typeMap).Type
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
103Return type.InternalSubstituteTypeParameters(Me.TypeMap).Type
Lowering\StateMachineRewriter\StateMachineRewriter.vb (2)
238Dim paramType As TypeSymbol = parameter.Type.InternalSubstituteTypeParameters(typeMap).Type 288Dim fieldType = local.Type.InternalSubstituteTypeParameters(typeMap).Type
Semantics\TypeInference\TypeArgumentInference.vb (1)
2292Return parameterType.InternalSubstituteTypeParameters(partialSubstitution).Type
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
127current.Type.InternalSubstituteTypeParameters(substitution).Type,
Symbols\ArrayTypeSymbol.vb (3)
516newArray = New SZArray(newElementType.Type, newElementType.CustomModifiers, _systemArray, newInterfaces) 519newArray = New MDArrayNoSizesOrBounds(newElementType.Type, newElementType.CustomModifiers, Me.Rank, _systemArray) 522newArray = New MDArrayWithSizesAndBounds(newElementType.Type, newElementType.CustomModifiers, Me.Rank, Me.Sizes, Me.LowerBounds, _systemArray)
Symbols\ConstraintsHelper.vb (1)
672Dim constraintType = t.InternalSubstituteTypeParameters(substitution).Type
Symbols\MethodSignatureComparer.vb (9)
458If Not type1.Type.IsSameType(type2.Type, TypeCompareKind.AllIgnoreOptionsForVB) Then 465Not type1.Type.IsSameType(type2.Type, TypeCompareKind.AllIgnoreOptionsForVB And Not TypeCompareKind.IgnoreTupleNames) Then 574If Not type1.Type.IsSameType(type2.Type, TypeCompareKind.AllIgnoreOptionsForVB) Then 588Not type1.Type.IsSameType(type2.Type, TypeCompareKind.AllIgnoreOptionsForVB And 937result.Add(SubstituteType(substitution, New TypeWithModifiers(constraintType)).Type)
Symbols\ReducedExtensionMethodSymbol.vb (3)
165receiverType = receiverType.InternalSubstituteTypeParameters(partialSubstitution).Type 387type = type.InternalSubstituteTypeParameters(_curryTypeSubstitution).Type 840paramType = paramType.InternalSubstituteTypeParameters(_curriedMethod._curryTypeSubstitution).Type
Symbols\Retargeting\RetargetingSymbolTranslator.vb (6)
454Dim newArg = New TypeWithModifiers(DirectCast(arg.Type.Accept(Me, RetargetOptions.RetargetPrimitiveTypesByTypeCode), TypeSymbol), 457If Not anythingRetargeted AndAlso (modifiersHaveChanged OrElse Not TypeSymbol.Equals(newArg.Type, arg.Type, TypeCompareKind.ConsiderEverything)) Then 512If IsOrClosedOverAnExplicitLocalType(oldArguments(i).Type) Then 522If MetadataDecoder.IsOrClosedOverATypeFromAssemblies(oldArguments(i).Type, assembliesToEmbedTypesFrom) Then 532If MetadataDecoder.IsOrClosedOverATypeFromAssemblies(newArguments(i).Type, linkedAssemblies) Then
Symbols\SubstitutedFieldSymbol.vb (1)
164Return _originalDefinition.Type.InternalSubstituteTypeParameters(_containingType.TypeSubstitution).Type
Symbols\SubstitutedMethodSymbol.vb (1)
307Return OriginalDefinition.ReturnType.InternalSubstituteTypeParameters(Me.TypeSubstitution).Type
Symbols\SubstitutedParameterSymbol.vb (1)
100Return _originalDefinition.Type.InternalSubstituteTypeParameters(TypeSubstitution).Type
Symbols\SubstitutedPropertySymbol.vb (1)
216Return _originalDefinition.Type.InternalSubstituteTypeParameters(TypeSubstitution).Type
Symbols\Tuples\TupleTypeSymbol.vb (1)
1072Dim substitutedUnderlying = DirectCast(Me.TupleUnderlyingType.InternalSubstituteTypeParameters(substitution).Type, NamedTypeSymbol)
Symbols\TypeParameterSymbol.vb (1)
351Private Shared ReadOnly s_substituteFunc As Func(Of TypeSymbol, TypeSubstitution, TypeSymbol) = Function(type, substitution) type.InternalSubstituteTypeParameters(substitution).Type
Symbols\TypeSubstitution.vb (13)
166result(p.Key.Ordinal) = p.Value.Type 244Dim value As TypeSymbol = pair.Value.Type 445If arg.Type.IsTypeParameter() AndAlso Not arg.Type.IsDefinition Then 551builder.AppendFormat("{0}->{1}", _pairs(i).Key.ToString(), _pairs(i).Value.Type.ToString()) 559Debug.Assert(pairs.All(Function(p) p.Value.Type IsNot Nothing)) 643If argument.Type.IsTypeParameter() Then 644Dim typeParameter = DirectCast(argument.Type, TypeParameterSymbol) 672If argument.Type.IsTypeParameter() Then 673Dim typeParameter = DirectCast(argument.Type, TypeParameterSymbol) 837If arg.Type.IsTypeParameter() AndAlso Not arg.Type.IsDefinition Then 905If Not pair.Key.Equals(pair.Value.Type.OriginalDefinition) Then
Symbols\TypeWithModifiers.vb (8)
37If Not Me.Type.IsSameType(other.Type, compareKind) Then 59Return Hash.Combine(Me.Type, Hash.CombineValues(Me.CustomModifiers)) 63Return TypeSymbol.Equals(Me.Type, other, TypeCompareKind.ConsiderEverything) AndAlso Me.CustomModifiers.IsEmpty 78Return Me.Type 83Dim newTypeWithModifiers As TypeWithModifiers = Me.Type.InternalSubstituteTypeParameters(substitution) 84If Not newTypeWithModifiers.Is(Me.Type) OrElse newCustomModifiers <> Me.CustomModifiers Then 85Return New TypeWithModifiers(newTypeWithModifiers.Type, newCustomModifiers.Concat(newTypeWithModifiers.CustomModifiers))
Utilities\TypeUnification.vb (23)
72ElseIf t1.Type Is Nothing OrElse t2.Type Is Nothing Then 85If Not t1.Type.IsTypeParameter() AndAlso t2.Type.IsTypeParameter() Then 91Debug.Assert(t1.Type.IsTypeParameter() OrElse Not t2.Type.IsTypeParameter()) 92Select Case t1.Type.Kind 94If t2.Type.TypeKind <> t1.Type.TypeKind OrElse Not t1.CustomModifiers.SequenceEqual(t2.CustomModifiers) Then 98Dim at1 As ArrayTypeSymbol = DirectCast(t1.Type, ArrayTypeSymbol) 99Dim at2 As ArrayTypeSymbol = DirectCast(t2.Type, ArrayTypeSymbol) 107If t2.Type.TypeKind <> t1.Type.TypeKind OrElse Not t1.CustomModifiers.SequenceEqual(t2.CustomModifiers) Then 111Dim nt1 As NamedTypeSymbol = DirectCast(t1.Type, NamedTypeSymbol) 112Dim nt2 As NamedTypeSymbol = DirectCast(t2.Type, NamedTypeSymbol) 151If t2.Type.SpecialType = SpecialType.System_Void Then 155Dim tp1 As TypeParameterSymbol = DirectCast(t1.Type, TypeParameterSymbol) 156If Contains(t2.Type, tp1) Then 166AddSubstitution(substitution, containingGenericType, tp1, New TypeWithModifiers(t2.Type)) 173New TypeWithModifiers(t2.Type, 178If t2.Type.IsTypeParameter Then 179Dim tp2 As TypeParameterSymbol = DirectCast(t2.Type, TypeParameterSymbol) 189New TypeWithModifiers(t1.Type,
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\TypeSubstitutionExtensions.vb (1)
13Return type.InternalSubstituteTypeParameters(typeMap).Type