benjamn / benjamn/recast

Respect AST nodes with .loc information but no .original node when generating source maps

Open
#88 4 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
TypeScript
Stars
5.3k
Forks
363
Avg merge
3d 8h
Merged PRs (30d)
3

Description

Perhaps even when calling `recast.prettyPrint`?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the source-map generation path and the recast.prettyPrint entry point mentioned in the issue. Check how AST nodes with .loc but without .original are handled, then determine the expected source-map behavior and add coverage for that case before validating the generated maps.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.