private visitTokenDispatcher()

in Clients/Xamarin.Interactive.Client/ClientApp/workbook/parser.ts [31:58]


  private visitTokenDispatcher(token: Token) {
    switch (token.type) {
      case "inline": this.visitInline(token); break
      case "text": this.visitText(token); break
      case "html_inline": this.visitHtmlInline(token); break
      case "heading_open": this.visitHeadingOpen(token); break
      case "heading_close": this.visitHeadingClose(token); break
      case "paragraph_open": this.visitParagraphOpen(token); break
      case "paragraph_close": this.visitParagraphClose(token); break
      case "bullet_list_open": this.visitBulletListOpen(token); break
      case "bullet_list_close": this.visitBulletListClose(token); break
      case "list_item_open": this.visitListItemOpen(token); break
      case "list_item_close": this.visitListItemClose(token); break
      case "fence": this.visitFence(token); break
      case "hr": this.visitHr(token); break
      case "link_open": this.visitLinkOpen(token); break
      case "link_close": this.visitLinkClose(token); break
      case "image": this.visitImage(token); break
      case "metadata_block": this.visitMetadataBlock(token); break
      default: this.visitToken(token); break
    }

    if (token.children) {
      this._depth++
      this.visitTokens(token.children)
      this._depth--
    }
  }