You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(devx): check-registry-log-declared consumes js-comment-mask's maskComments instead of a private wrapper (#15595)
* refactor(devx): check-registry-log-declared consumes js-comment-mask's maskComments instead of a private wrapper (#15561)
The local `maskComments` was `blank(source, scanSource(source).comment)` —
character-for-character the module's own export — so it was a private wrapper,
not a second scanner. Import the export and delete the wrapper; every call site
is unchanged.
`maskCode` stays local (the module publishes no comments+literals projection
yet) and its docblock now says so: it composes `scanSource`'s `comment` and
`literal` flags through `blank` and carries no scanning logic of its own.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
* test(devx): pin both directions of the code mask in check-registry-log-declared's self-test (#15561)
The existing prose row pins the COMMENT direction for S2 only. This row adds
the code mask's other direction: a signal spelled inside a string literal or a
comment must not select, and the same spelling in real code still must. Two
packages in one case, so a mask that stopped blanking either span shows up as a
second selected package rather than as a silent widening of the population.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments