示例#1
0
        internal Primary_ExpressionInfo Parse()
        {
            var rslt = new Primary_ExpressionInfo(this);

            rslt.IsConstant   = this.IsConstant;
            rslt.IsExpression = this.IsExpression;
            rslt.IsId         = this.IsId;
            rslt.IsCreator    = this.IsCreator;

            if (this.IsConstant)
            {
                rslt.Constant = this.Constant.Parse();
            }
            if (this.IsId)
            {
                rslt.Id = Id;
            }
            if (this.IsExpression)
            {
                rslt.Expression = this.Expression.Parse();
            }
            if (this.IsCreator)
            {
                rslt.Creator = this.Creator.Parse();
            }
            return(rslt);
        }
示例#2
0
        internal Primary_ExpressionInfo Parse()
        {
            var rslt = new Primary_ExpressionInfo(this);
            rslt.IsConstant = this.IsConstant;
            rslt.IsExpression = this.IsExpression;
            rslt.IsId = this.IsId;
            rslt.IsCreator = this.IsCreator;

            if (this.IsConstant)
            {
                rslt.Constant = this.Constant.Parse();
            }
            if (this.IsId)
            {
                rslt.Id = Id;
            }
            if (this.IsExpression)
            {
                rslt.Expression = this.Expression.Parse();
            }
            if (this.IsCreator)
            {
                rslt.Creator = this.Creator.Parse();

            }
            return rslt;
        }