コード例 #1
0
        /// <summary>
        /// Applies the pattern to a sequence of instructions by replacing each instruction by its expanded sequence where appropriate.
        /// </summary>
        /// <param name="instrs">sequence of instructions</param>
        /// <returns>expanded sequence</returns>
        public List <XILSInstr> Apply(IList <XILSInstr> instrs)
        {
            InstructionExpander xpander = new InstructionExpander(instrs, this);

            xpander.Rewrite();
            return(xpander.OutInstructions);
        }
コード例 #2
0
 /// <summary>
 /// Applies the pattern to a sequence of instructions by replacing each instruction by its expanded sequence where appropriate.
 /// </summary>
 /// <param name="instrs">sequence of instructions</param>
 /// <returns>expanded sequence</returns>
 public List<XILSInstr> Apply(IList<XILSInstr> instrs)
 {
     InstructionExpander xpander = new InstructionExpander(instrs, this);
     xpander.Rewrite();
     return xpander.OutInstructions;
 }