internal override ImmutableArray <TypeWithAnnotations> GetConstraintTypes(ConsList <TypeParameterSymbol> inProgress, bool canIgnoreNullableContext) { var constraintTypes = _sourceTypeParameter.GetConstraintTypes(inProgress, canIgnoreNullableContext); if (constraintTypes.IsEmpty) { return(constraintTypes); } // Remap constraints from sourceTypeParameter since constraints // may be defined in terms of other type parameters. return(this.TypeMap.SubstituteTypes(constraintTypes)); }
internal override ImmutableArray <TypeSymbol> GetConstraintTypes(ConsList <TypeParameterSymbol> inProgress) { var constraintTypes = _sourceTypeParameter.GetConstraintTypes(inProgress); if (constraintTypes.IsEmpty) { return(constraintTypes); } // Remap constraints from sourceTypeParameter since constraints // may be defined in terms of other type parameters. return(this.TypeMap.SubstituteTypesWithoutModifiers(constraintTypes)); }
internal override ImmutableArray <TypeSymbol> GetConstraintTypes(ConsList <TypeParameterSymbol> inProgress) { return(this.RetargetingTranslator.Retarget(_underlyingTypeParameter.GetConstraintTypes(inProgress))); }