private Cci.IMethodDefinition ResolvedMethodImpl(EmitContext context)
{
Debug.Assert(this.IsDefinitionOrDistinct());
PEModuleBuilder moduleBeingBuilt = (PEModuleBuilder)context.Module;
if (this.IsDefinition && // can't be generic instantiation
object.ReferenceEquals(this.ContainingModule, moduleBeingBuilt.SourceModule)) // must be declared in the module we are building
{
Debug.Assert((object)this.PartialDefinitionPart == null); // must be definition
return this;
}
return null;
}