Native printer panics when printing JSDoc AST nodes

未關閉
#65,057 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@el-j 已經在處理了。

開始於 2026年10月30日。

  • #65058 來自 @el-j —— 未關閉

評估

難度
3/5
預估耗時
1-2 天
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
go, typescript
領域
compilers

研究方向

Start in tsc/internal/printer/printer.go by reading Printer.emitJSDocNode and tracing how JSDoc nodes reach it. Reproduce the panic with an AST-factory JSDoc node passed to api.printer.printNode; done means it prints a formatted JSDoc comment with text and tags instead of panicking.

由索引模型根據 Issue 內容生成。

描述

Bug\nThe TypeScript 7 native printer panics when asked to print a JSDoc AST node directly. The printer dispatches JSDoc kinds to Printer.emitJSDocNode, which currently panics with not implemented.\n\n## Reproduction\nCreate a JSDoc node with the AST factory and call api.printer.printNode(jsdocNode).\n\n## Expected\nThe printer emits a formatted JSDoc comment (including text and tags).\n\n## Actual\nPrinting the node panics in tsc/internal/printer/printer.go.

主要語言
Go
星號
112k
分支
15.4k
平均合併
2 天 21 小時
30 天內合併 PR
126

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/TypeScript 的其他 Issue

查看 microsoft/TypeScript 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。