コード例 #1
0
 public CodeParser(IFunctionParser functionParser, ICodeFactory codeFactory,
                   IDisassemblerFactory disassemblerFactory,
                   IInstructionWithAddressOperandDecider jumpTargetAddressDecider)
 {
     m_functionParser           = functionParser ?? throw new ArgumentNullException(nameof(functionParser));
     m_codeFactory              = codeFactory ?? throw new ArgumentNullException(nameof(codeFactory));
     m_disassemblerFactory      = disassemblerFactory ?? throw new ArgumentNullException(nameof(disassemblerFactory));
     m_jumpTargetAddressDecider = jumpTargetAddressDecider ?? throw new ArgumentNullException(nameof(jumpTargetAddressDecider));
 }
コード例 #2
0
        protected override IFunctionParser CreateFunctionParser()
        {
            IFunctionParser functionParser = (IFunctionParser) new DataFunctionParser(this.Datas);

            if (this.CustomFunctions != null)
            {
                functionParser.CustomFunctions = this.CustomFunctions;
            }
            return(functionParser);
        }