Esempio n. 1
0
        public static ILSpyUnresolvedFile GetSymbols(IMethod method)
        {
            var typeName = DecompiledTypeReference.FromTypeDefinition(method.DeclaringTypeDefinition);

            if (typeName == null)
            {
                return(null);
            }
            return(SD.ParserService.ParseFile(typeName.ToFileName()) as ILSpyUnresolvedFile);
        }
        public static ILSpyUnresolvedFile GetSymbols(IMethod method)
        {
            var typeName = DecompiledTypeReference.FromTypeDefinition(method.DeclaringTypeDefinition);

            if (typeName == null)
            {
                return(null);
            }
            SD.Log.DebugFormatted("GetSymbols for: {0}", typeName.ToFileName());
            // full parse info required to make ParserService caching possible...
            return(SD.ParserService.Parse(typeName.ToFileName()).UnresolvedFile as ILSpyUnresolvedFile);
        }