Repository navigation
Conversation
Forward start to node.error() so the formatted warning agrees with its line and column. Cover same-line and multiline positions. Signed-off-by: Don Yin <Don_Yin@outlook.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Warningalready uses an explicitstartfor itslineandcolumn, buttoString()drops it and reports the node's start instead.This forwards
startto the existingnode.error()call, leaving position calculation and source-map handling there.I added two regression cases in
test/warning.test.ts, covering a same-line start and a start on another line. Both fail before the fix and pass with it.pnpm testpasses: 723 tests, coverage, lint, types, version, integration and size checks.The measured positions for those two cases are below; each circle is the requested start.