Ejemplo n.º 1
0
        internal override TypeSymbol MergeEquivalentTypes(TypeSymbol other, VarianceKind variance)
        {
            Debug.Assert(this.Equals(other, TypeCompareKind.IgnoreDynamicAndTupleNames | TypeCompareKind.IgnoreNullableModifiersForReferenceTypes));
            TypeWithAnnotations pointedAtType = PointedAtTypeWithAnnotations.MergeEquivalentTypes(((PointerTypeSymbol)other).PointedAtTypeWithAnnotations, VarianceKind.None);

            return(WithPointedAtType(pointedAtType));
        }
Ejemplo n.º 2
0
 internal PointerTypeSymbol WithPointedAtType(TypeWithAnnotations newPointedAtType)
 {
     return(PointedAtTypeWithAnnotations.IsSameAs(newPointedAtType) ? this : new PointerTypeSymbol(newPointedAtType));
 }
Ejemplo n.º 3
0
 internal override void AddNullableTransforms(ArrayBuilder <byte> transforms)
 {
     PointedAtTypeWithAnnotations.AddNullableTransforms(transforms);
 }