public CopiedMethodILNode(EcmaMethod method) { Debug.Assert(!method.IsAbstract); _method = (EcmaMethod)method.GetTypicalMethodDefinition(); }
private ModuleToken GetModuleToken(NodeFactory factory) { if (factory.CompilationModuleGroup.VersionsWithMethodBody(_method)) { return(new ModuleToken(_method.Module, _method.Handle)); } else { return(new ModuleToken(factory.ManifestMetadataTable._mutableModule, factory.ManifestMetadataTable._mutableModule.TryGetEntityHandle(_method.GetTypicalMethodDefinition()).Value)); } }