Esempio n. 1
0
 public virtual void VisitNonNullableReferenceType(NonNullableReferenceTypeSymbol symbol)
 {
     DefaultVisit(symbol);
 }
Esempio n. 2
0
        private TypeSymbol SubstituteNonNullableType(NonNullableReferenceTypeSymbol t)
        {
            var oldUnderlyingType = new TypeWithModifiers(t.UnderlyingType);
            TypeWithModifiers underlyingType = oldUnderlyingType.SubstituteType(this);
            if (underlyingType == oldUnderlyingType)
            {
                return t;
            }

            if (underlyingType.Type.IsValueType)
                return underlyingType.Type;

            return underlyingType.Type as NonNullableReferenceTypeSymbol ?? NonNullableReferenceTypeSymbol.CreateNonNullableReference(underlyingType.Type);
        }
Esempio n. 3
0
 public virtual TResult VisitNonNullableReferenceType(NonNullableReferenceTypeSymbol symbol)
 {
     return(DefaultVisit(symbol));
 }
Esempio n. 4
0
 public virtual void VisitNonNullableReferenceType(NonNullableReferenceTypeSymbol symbol)
 {
     DefaultVisit(symbol);
 }