Conversation
A function or method called only by itself counted as used: the recursive call is a real reference. Classes already saw through that shape, for the unnamed constructor's declaration. Text inside a declaration's own span goes when it does, so the rule is the same for every kind. The cross-library recovery probes declarations with no reference outside their own span, and a use that resolves to the declaration it sits in recovers nothing. An enum kept alive only by its own body is removed whole, so its values are no longer blocked as an emptied enum. Groundwork for #58. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011fqaUyaQtY7AkuTYBjAUJv
Komoszek
force-pushed
the
claude/issue-58-implementation-rcw0sg
branch
from
September 21, 2026 06:19
d4169d6 to
77780ea
Compare
Komoszek
commented
Sep 21, 2026
isSelfReference now runs for every kind, so the class-only convention got a guard. It never needed one: isStatePairingReference already requires the reference to be the sole type argument of an `extends State<…>` clause, which nothing but a class name can be. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011fqaUyaQtY7AkuTYBjAUJv
Komoszek
commented
Sep 21, 2026
_isWithin said what it computed, not why. The probe and the reference search discount the same shape — a use inside the declaration it would keep alive — so the helper now carries isSelfReference's name and points at it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011fqaUyaQtY7AkuTYBjAUJv
Komoszek
marked this pull request as ready for review
September 21, 2026 09:40
Komoszek
added this pull request to stack #69
September 21, 2026 09:41
This was referenced Sep 22, 2026
Komoszek
removed this pull request from stack #69
September 22, 2026 06:20
Komoszek
added this pull request to stack #74
September 22, 2026 06:21
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Groundwork for #58. A function or method called only by itself counted as used; classes already saw through that shape (the unnamed constructor's declaration). The rule is now the same for every kind: a reference inside a declaration's own span keeps nothing alive.
ReferenceClassifier:isSelfClassReference→isSelfReference, applied to every kind;State<Self>pairing stays class-only.CrossLibraryReferences: probes declarations with no reference outside their own span; a use resolving to the declaration it sits in recovers nothing.RemoveSafety:emptiedEnumsreads the enum's status, so an enum alive only through its own body is removed whole._countdown,factorial,UsedClass._depth.Verified on the live server that a first declarator's outline range in
int x = 1, y = x + 1;ends atx, so a sibling initializer's reference is not a self-reference.🤖 Generated with Claude Code
https://claude.ai/code/session_011fqaUyaQtY7AkuTYBjAUJv