示例#1
0
 private SerializableNavigationBarItem(
     RoslynNavigationBarItemKind kind,
     string text,
     Glyph glyph,
     bool bolded,
     bool grayed,
     int indent,
     ImmutableArray <SerializableNavigationBarItem> childItems,
     ImmutableArray <TextSpan> spans,
     SymbolKey?navigationSymbolId,
     int navigationSymbolIndex,
     SymbolKey?destinationTypeSymbolKey,
     string?containerName,
     SymbolKey?eventSymbolKey,
     SymbolKey?methodToReplicateSymbolKey
     )
 {
     Kind                       = kind;
     Text                       = text;
     Glyph                      = glyph;
     Spans                      = spans.NullToEmpty();
     ChildItems                 = childItems.NullToEmpty();
     Indent                     = indent;
     Bolded                     = bolded;
     Grayed                     = grayed;
     NavigationSymbolId         = navigationSymbolId;
     NavigationSymbolIndex      = navigationSymbolIndex;
     DestinationTypeSymbolKey   = destinationTypeSymbolKey;
     ContainerName              = containerName;
     EventSymbolKey             = eventSymbolKey;
     MethodToReplicateSymbolKey = methodToReplicateSymbolKey;
 }
 private SerializableNavigationBarItem(
     RoslynNavigationBarItemKind kind,
     string text,
     Glyph glyph,
     bool bolded,
     bool grayed,
     int indent,
     ImmutableArray <SerializableNavigationBarItem> childItems,
     string?name,
     bool isObsolete,
     SymbolItemLocation?location,
     SymbolKey?destinationTypeSymbolKey,
     string?containerName,
     SymbolKey?eventSymbolKey,
     SymbolKey?methodToReplicateSymbolKey)
 {
     Kind       = kind;
     Text       = text;
     Glyph      = glyph;
     ChildItems = childItems.NullToEmpty();
     Name       = name;
     IsObsolete = isObsolete;
     Location   = location;
     Indent     = indent;
     Bolded     = bolded;
     Grayed     = grayed;
     DestinationTypeSymbolKey   = destinationTypeSymbolKey;
     ContainerName              = containerName;
     EventSymbolKey             = eventSymbolKey;
     MethodToReplicateSymbolKey = methodToReplicateSymbolKey;
 }
示例#3
0
 protected RoslynNavigationBarItem(
     RoslynNavigationBarItemKind kind,
     string text,
     Glyph glyph,
     bool bolded,
     bool grayed,
     int indent,
     ImmutableArray <RoslynNavigationBarItem> childItems)
 {
     Kind       = kind;
     Text       = text;
     Glyph      = glyph;
     ChildItems = childItems.NullToEmpty();
     Indent     = indent;
     Bolded     = bolded;
     Grayed     = grayed;
 }
 protected AbstractGenerateCodeItem(
     RoslynNavigationBarItemKind kind,
     string text,
     Glyph glyph,
     SymbolKey destinationTypeSymbolKey
     )
     : base(
         kind,
         text,
         glyph,
         bolded: false,
         grayed: false,
         indent: 0,
         childItems: default,
         ImmutableArray <TextSpan> .Empty
         )
 {
     DestinationTypeSymbolKey = destinationTypeSymbolKey;
 }