public bool CanInline(MethodDesc caller, MethodDesc callee) { if (_baseGroup.CanInline(caller, callee)) { // Since the scanner doesn't look at instance methods whose owning type // wasn't allocated (done through TentativeInstanceMethodNode), // we need to disallow inlining these methods. They could // bring in dependencies that we didn't look at. if (callee.NotCallableWithoutOwningEEType()) { return(_constructedTypes.Contains(callee.OwningType)); } return(true); } return(false); }