dsherret / dsherret/ts-morph

Conditionally parse comment nodes

Open
#609 0 comments 0 reactions 0 assignees View on GitHub
internal performance
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

These should be lazily parsed. Also, when someone forgets all child extended comments, it shouldn’t parse them on the next manipulation (perhaps the containers should have a `commentCount` property or something... will figure it out when I’m not sleepy).

Contributor guide

Open the contributing guide

Research direction

Start by tracing how comment nodes are parsed and how container manipulation triggers parsing; the issue does not name specific files or tests. Define the lazy-parsing behavior and verify that containers with no child extended comments do not parse them again during later manipulation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Refactor
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.