Mono.Debugger.Backend.DwarfReader.FindMethod C# (CSharp) Method

FindMethod() public method

public FindMethod ( string name ) : MethodSource
name string
return MethodSource
        public MethodSource FindMethod(string name)
        {
            if (pubnames == null)
                return null;

            NameEntry entry = (NameEntry) pubnames [name];
            if (entry == null)
                return null;

            MethodSource source;
            source = (MethodSource) method_source_hash [entry.AbsoluteOffset];
            if (source != null)
                return source;

            CompileUnitBlock block = (CompileUnitBlock) compile_unit_hash [entry.FileOffset];
            return block.GetMethod (entry.AbsoluteOffset);
        }