Exemplo n.º 1
0
 /// <summary>
 /// Construct a new EventApiView instance, represented by the provided symbol.
 /// </summary>
 /// <param name="symbol">The symbol representing the event.</param>
 public EventApiView(IEventSymbol symbol)
 {
     this.Id            = symbol.ToDisplayString();
     this.Name          = symbol.Name;
     this.Accessibility = symbol.DeclaredAccessibility.ToString().ToLower();
     this.Type          = new TypeReferenceApiView(symbol.Type);
 }
Exemplo n.º 2
0
 public void Render(TypeReferenceApiView type, StringBuilder builder)
 {
     if (type == null || type?.Tokens == null)
     {
         return;
     }
     foreach (var token in type.Tokens)
     {
         RenderToken(builder, token);
     }
 }