MonoMethodSource CreateMethodSource(SourceFile file, int index)
{
C.MethodEntry entry = File.GetMethod (index);
Cecil.MethodDefinition mdef = MonoDebuggerSupport.GetMethod (
ModuleDefinition, entry.Token);
MonoClassType klass = LookupMonoClass (mdef.DeclaringType);
if (klass == null)
throw new InternalError ();
MonoFunctionType function = klass.LookupFunction (mdef);
MonoMethodSource method = new MonoMethodSource (
this, file, entry, mdef, klass, function);
method_index_hash.Add (index, method);
return method;
}