public PEAPI.HandlerBlock Resolve(CodeGen code_gen, MethodDef method)
        {
            PEAPI.CILLabel from = handler_block.GetFromLabel(code_gen, method);
            PEAPI.CILLabel to   = handler_block.GetToLabel(code_gen, method);
            PEAPI.Catch    katch;

            type_ref.Resolve(code_gen);

            katch = new PEAPI.Catch(type_ref.PeapiType, from, to);

            return(katch);
        }
示例#2
0
文件: CatchBlock.cs 项目: nobled/mono
                public PEAPI.HandlerBlock Resolve (CodeGen code_gen, MethodDef method)
                {
                        PEAPI.CILLabel from = handler_block.GetFromLabel (code_gen, method);
                        PEAPI.CILLabel to = handler_block.GetToLabel (code_gen, method);
                        PEAPI.Catch katch;

                        type_ref.Resolve (code_gen);

                        katch = new PEAPI.Catch (type_ref.PeapiType, from, to);

                        return katch;
                }