Example #1
0
        /// <summary>Returns a list of all previously processed frameworks (not including the current)</summary>
        internal static string PreviouslyProcessedFXString(FrameworkTypeEntry typeEntry)
        {
            if (typeEntry == null)
            {
                return(string.Empty);
            }

            return(string.Join(";", typeEntry
                               .PreviouslyProcessedFrameworkTypes
                               .Select(previous => previous?.Framework?.Name)
                               .Where(n => !string.IsNullOrWhiteSpace(n))
                               .ToArray()));
        }
Example #2
0
        public virtual FrameworkTypeEntry ProcessType(TypeDefinition type)
        {
            var entry = types.FirstOrDefault(t => t.Name.Equals(type.FullName));

            if (entry == null)
            {
                var docid = DocCommentId.GetDocCommentId(type);
                entry = new FrameworkTypeEntry(this)
                {
                    Id = docid, Name = type.FullName, Namespace = type.Namespace
                };
                types.Add(entry);
            }
            return(entry);
        }
Example #3
0
        public virtual FrameworkTypeEntry ProcessType(TypeDefinition type)
        {
            FrameworkTypeEntry entry;

            if (!typeMap.TryGetValue(Str(type.FullName), out entry))
            {
                var    docid   = DocCommentId.GetDocCommentId(type);
                string nstouse = GetNamespace(type);
                entry = new FrameworkTypeEntry(this)
                {
                    Id = Str(docid), Name = Str(type.FullName), Namespace = nstouse
                };
                types.Add(entry);

                typeMap.Add(Str(entry.Name), entry);
            }
            return(entry);
        }
Example #4
0
 public FrameworkTypeEntry FindTypeEntry(FrameworkTypeEntry type)
 {
     return(FindTypeEntry(Str(type.Name)));
 }