Пример #1
0
        private Unwrap(Expression child)
        {
            _child = child;
            _info  = new NullableInfo(child.Type);

            Span            = child.Span;
            Type            = _info.UnderlyingType;
            ExpressionClass = child.ExpressionClass;
        }
Пример #2
0
            public InternalWrap([NotNull] Expression child, [NotNull] NullableInfo info, SourceSpan location)
            {
                if (child == null)
                {
                    throw new ArgumentNullException("child");
                }
                if (info == null)
                {
                    throw new ArgumentNullException("info");
                }

                _child = child;
                _info  = info;

                Span            = location;
                Type            = _info.Type;
                ExpressionClass = ExpressionClass.Value;
            }