Beispiel #1
0
        private IReadOnlyCollection <CakeScriptAlias> InspectAssembly(AssemblyDefinition assembly, FilePath path)
        {
            var result        = new List <CakeScriptAlias>();
            var documentation = _documentation.Load(path.ChangeExtension("xml"));

            foreach (var module in assembly.Modules)
            {
                foreach (var type in module.Types)
                {
                    if (type.IsSpecialName)
                    {
                        continue;
                    }
                    if (type.Name == "<Module>")
                    {
                        continue;
                    }
                    if (type.Name.StartsWith("_"))
                    {
                        continue;
                    }
                    if (type.IsAnonymousType())
                    {
                        continue;
                    }

                    InspectType(assembly, type, documentation, result);
                }
            }

            return(result);
        }