Exemple #1
0
 internal Postfix_PartInfo Parse()
 {
     var rslt = new Postfix_PartInfo(this);
     if (this.Postfix_part_decrease != null)
     {
         rslt.Postfix_Part_Decrease = new Postfix_Part_DecreaseInfo(this);
         rslt.Postfix_Part_Decrease.TokenPair = this;
     }
     if (this.Postfix_part_empty_function != null)
     {
         rslt.Postfix_Part_Empty_Function = new Postfix_Part_Empty_FunctionInfo() {};
         rslt.Postfix_Part_Empty_Function.TokenPair = this;
     }
     if (this.Postfix_part_function != null)
     {
         rslt.Postfix_Part_Function = this.Postfix_part_function.Parse();
         rslt.Postfix_Part_Function.TokenPair = this;
     }
     if (this.Postfix_part_increase != null)
     {
         rslt.Postfix_Part_Increase = new Postfix_Part_IncreaseInfo(this);
         rslt.Postfix_Part_Increase.TokenPair = this;
     }
     if (this.Postfix_part_index != null)
     {
         rslt.Postfix_Part_Index = this.Postfix_part_index.Parse();
         rslt.Postfix_Part_Index.TokenPair = this;
     }
     if (this.Postfix_part_long_name != null)
     {
         rslt.Postfix_Part_Long_Name = new Postfix_Part_Long_NameInfo(this) { Text = this.Postfix_part_long_name.Text };
         rslt.Postfix_Part_Long_Name.TokenPair = this;
     }
     return rslt;
 }
Exemple #2
0
        internal Postfix_PartInfo Parse()
        {
            var rslt = new Postfix_PartInfo(this);

            if (this.Postfix_part_decrease != null)
            {
                rslt.Postfix_Part_Decrease           = new Postfix_Part_DecreaseInfo(this);
                rslt.Postfix_Part_Decrease.TokenPair = this;
            }
            if (this.Postfix_part_empty_function != null)
            {
                rslt.Postfix_Part_Empty_Function = new Postfix_Part_Empty_FunctionInfo()
                {
                };
                rslt.Postfix_Part_Empty_Function.TokenPair = this;
            }
            if (this.Postfix_part_function != null)
            {
                rslt.Postfix_Part_Function           = this.Postfix_part_function.Parse();
                rslt.Postfix_Part_Function.TokenPair = this;
            }
            if (this.Postfix_part_increase != null)
            {
                rslt.Postfix_Part_Increase           = new Postfix_Part_IncreaseInfo(this);
                rslt.Postfix_Part_Increase.TokenPair = this;
            }
            if (this.Postfix_part_index != null)
            {
                rslt.Postfix_Part_Index           = this.Postfix_part_index.Parse();
                rslt.Postfix_Part_Index.TokenPair = this;
            }
            if (this.Postfix_part_long_name != null)
            {
                rslt.Postfix_Part_Long_Name = new Postfix_Part_Long_NameInfo(this)
                {
                    Text = this.Postfix_part_long_name.Text
                };
                rslt.Postfix_Part_Long_Name.TokenPair = this;
            }
            return(rslt);
        }