Example #1
0
        private ArrayTypeSymbol DecodeArrayType(ArrayTypeSymbol type)
        {
            var decodedElementType = DecodeType(type.ElementType);

            return(ReferenceEquals(decodedElementType, type.ElementType)
                ? type
                : type.WithElementType(decodedElementType));
        }
Example #2
0
        private ArrayTypeSymbol DecodeArrayType(ArrayTypeSymbol type)
        {
            TypeSymbolWithAnnotations elementType        = type.ElementType;
            TypeSymbolWithAnnotations decodedElementType = DecodeTypeInternal(elementType);

            return(decodedElementType.IsSameAs(elementType)
                ? type
                : type.WithElementType(decodedElementType));
        }
Example #3
0
        private ArrayTypeSymbol DecodeArrayType(ArrayTypeSymbol type)
        {
            TypeWithAnnotations decodedElementType = DecodeTypeInternal(type.ElementTypeWithAnnotations);

            return(type.WithElementType(decodedElementType));
        }
Example #4
0
 private ArrayTypeSymbol DecodeArrayType(ArrayTypeSymbol type)
 {
     var decodedElementType = DecodeType(type.ElementType);
     return ReferenceEquals(decodedElementType, type.ElementType)
         ? type
         : type.WithElementType(decodedElementType);
 }
 private ArrayTypeSymbol TransformArrayType(ArrayTypeSymbol type)
 {
     Increment();
     return(type.WithElementType(TransformTypeWithAnnotations(type.ElementTypeWithAnnotations)));
 }