public static InlineCall WithPrefix(this InlineCall original, string prefix) { var output = new InlineCall() { AddressPath = { prefix }, MethodName = original.MethodName }; output.AddressPath.AddRange(original.AddressPath); return(output); }
private static InlineCall GetImpl(AbcFile abc, IType type, IMethod method) { var info = method.GetInlineInfo(); if (info != null) { return(InlineCall.Create(abc, method, info)); } InlineCodeProvider provider; if (Inlines.TryGetValue(type.FullName, out provider)) { return(provider.GetImplementation(abc, method)); } return(null); }