Inheritance: QBaseType
Beispiel #1
0
        //public override object GetResult()
        //{
        //    if (AlreadyDefined)
        //        return false;

        //    if (InnerValue != null)
        //        return InnerValue.GetResult();

        //    if (Referenced)
        //    {
        //        if (!Identifiers.IsDefined(Identifier))
        //            return null;

        //        QIdentifier refId = Identifiers.GetIdentifier(Identifier);
        //        return refId.GetResult();
        //    }

        //    return null;
        //}

        public ExpressionBase GetValue()
        {
            if (InnerValue != null)
            {
                return(InnerValue);//.GetResult();
            }
            if (Referenced)
            {
                if (!Identifiers.IsDefined(Identifier))
                {
                    return(null);
                }

                QIdentifier refId = Identifiers.GetIdentifier(Identifier);
                return(refId.GetValue());
            }

            return(null);
        }
Beispiel #2
0
        public override QBaseType GetType()
        {
            if (InnerType != null)
            {
                return(InnerType);
            }

            if (Referenced)
            {
                if (!Identifiers.IsDefined(Identifier))
                {
                    return(null);
                }

                QIdentifier refId = Identifiers.GetIdentifier(Identifier);
                return(refId.GetType());
            }

            return(null);
        }