예제 #1
0
        public IList <XILSInstr> Rewrite(IList <XILSInstr> instrs)
        {
            var impl = new ImplTypeRewriterImpl(instrs);

            impl.Rewrite();
            return(impl.OutInstructions);
        }
예제 #2
0
        public static XILSFunction Rewrite(XILSFunction func)
        {
            var rw = new ImplTypeRewriterImpl(func.Instructions);

            rw.Rewrite();
            var result = new XILSFunction(func.Name, func.Arguments, rw.Locals.ToArray(), rw.OutInstructions.ToArray());

            return(result);
        }
예제 #3
0
 public IList<XILSInstr> Rewrite(IList<XILSInstr> instrs)
 {
     var impl = new ImplTypeRewriterImpl(instrs);
     impl.Rewrite();
     return impl.OutInstructions;
 }
예제 #4
0
 public static XILSFunction Rewrite(XILSFunction func)
 {
     var rw = new ImplTypeRewriterImpl(func.Instructions);
     rw.Rewrite();
     var result = new XILSFunction(func.Name, func.Arguments, rw.Locals.ToArray(), rw.OutInstructions.ToArray());
     return result;
 }