private void ProcessCallInstruction(Instruction instruction, MethodDefinition method) { if (instruction.Operand is MethodReference calledMethod) { var calledMethodDefinition = calledMethod.Resolve(); if (calledMethodDefinition != null && GetInlineAttribute(calledMethodDefinition) != null) { ProcessMethod(calledMethodDefinition); var inlineMethodWeaver = new InlineMethodWeaver(this, instruction, method, calledMethodDefinition); inlineMethodWeaver.Process(); } } }
public Arg(InlineMethodWeaver inlineMethodWeaver, int paramIndex, Instruction pushInstruction) { _inlineMethodWeaver = inlineMethodWeaver; _paramIndex = paramIndex; _pushInstruction = pushInstruction; }