Exemple #1
0
 public static ICategoryEntrySymbol CreateEntry(
     ISymbol containingSymbol,
     CategoryEntryNode item,
     DiagnosticBag diagnostics)
 {
     return(new CategoryEntrySymbol(containingSymbol, item, diagnostics));
 }
Exemple #2
0
 public static CategoryLinkNode CategoryLink(CategoryEntryNode categoryEntry, string id = null)
 {
     return(CategoryLink(
                id: id ?? NewId(),
                name: categoryEntry.Name,
                publicationId: categoryEntry.PublicationId,
                page: categoryEntry.Page,
                hidden: false,
                targetId: categoryEntry.Id,
                primary: false));
 }
Exemple #3
0
 public static CategoryNode Category(CategoryEntryNode categoryEntry, string id = null)
 {
     return(Category(
                id: id ?? NewId(),
                categoryEntry.Name,
                categoryEntry.Id,
                entryGroupId: null,
                categoryEntry.PublicationId,
                categoryEntry.Page,
                primary: false));
 }