Skip to content

Delete TextFallbackHelper and EnclosingClassResolver - #507

Draft
Firehed wants to merge 5 commits into
mainfrom
step/42
Draft

Delete TextFallbackHelper and EnclosingClassResolver#507
Firehed wants to merge 5 commits into
mainfrom
step/42

Conversation

@Firehed

@Firehed Firehed commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Step 42 of docs/architecture/build-manifest.md.

Done

  • src/Resolution/TextFallbackHelper.php and EnclosingClassResolver.php are gone — git log, composer test.
  • NameContextFactory has one public constructor method (fromAst) — git diff, composer test.
  • SymbolResolver constructor builds no text helper — composer test.
  • The one-route ledger has no text-helper row and no pending entry that names step-42 — OneRoutePerFactTest.
  • CLAUDE.md no longer says incomplete code is handled via TextFallbackHelpergit diff CLAUDE.md.
  • Named Tighten: the disallowedMethodCalls entry for TextFallbackHelper::resolveEnclosingClassName and the regex allowlist path for the helper are gone — composer phpstan.

🤖 Generated with Claude Code

Firehed and others added 5 commits September 7, 2026 11:41
Step-40 left it without a caller; its docstring says step-42 deletes it.
Also drops stale mentions from three test files whose commentary
referenced the class.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
fromAstOrText and fromText have no caller: every parsed tree carries the
namespace and use nodes, so callers read fromAst directly. The test file
that covered only the deleted paths goes with them; fromAst has coverage
through SymbolResolverTest CoversClass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Steps 37, 40, and 41 moved every regex home elsewhere. The remaining
methods (findEnclosingClass, findEnclosingClassFromContent, findNamespace,
matchParameterType, resolveEnclosingClassName) have no caller once the
tree always carries the enclosing class and namespace.

Drops the AstTextAgreementTest sections that pinned agreement with the
deleted paths, and the stale comment names in SymbolResolverTest and
CompletionParityTest.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Removes the disallowedMethodCalls entry for resolveEnclosingClassName and
the regex allowlist path for src/Resolution/TextFallbackHelper.php: both
name a class that no longer exists. Drops the one-route ledger text-helper
row with the class it watched.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
CLAUDE.md no longer names TextFallbackHelper: incomplete code is handled
inside SymbolResolver through the SyntaxSource composite, which falls
through to CursorTextSyntaxSource.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.45%. Comparing base (d70b669) to head (d1071aa).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #507      +/-   ##
============================================
+ Coverage     99.24%   99.45%   +0.21%     
+ Complexity     1915     1889      -26     
============================================
  Files           140      138       -2     
  Lines          5033     4977      -56     
============================================
- Hits           4995     4950      -45     
+ Misses           38       27      -11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant