Mono.Debugger.Backend.Mono.MonoSymbolFile.CreateMethodSource C# (CSharp) Method

CreateMethodSource() private method

private CreateMethodSource ( SourceFile file, int index ) : MonoMethodSource
file Mono.Debugger.SourceFile
index int
return MonoMethodSource
        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;
        }