Skip to content

Remove the @Source provenance annotations - #5

Open
jamiewest wants to merge 1 commit into
mainfrom
chore/remove-source-annotations
Open

Remove the @Source provenance annotations#5
jamiewest wants to merge 1 commit into
mainfrom
chore/remove-source-annotations

Conversation

@jamiewest

Copy link
Copy Markdown
Owner

Abandons the annotation-based upstream-provenance feature. Every ported type carried a @Source(...) block naming its C# file, namespace, repository, and path — 215 annotations across 212 files, ~1,800 lines.

Why remove: nothing consumes them. No test, tool, or doc build reads the annotation, and the drift audit maps Dart types to upstream by filename and declaration, not by annotation. They were pure maintenance surface: every new port had to hand-write one, and nothing noticed when they went stale.

What's removed:

  • All 215 @Source(...) blocks (pure deletion — the diff is 1,801 deletions, 0 insertions before the changelog note)
  • All 212 imports of the annotation library (211 package: imports plus one relative import the analyzer caught)
  • lib/annotations.dart itself — it contained only the Source class

Removing a public library is breaking; recorded in the changelog under the pending 0.8.0 entry alongside the other breaks from #4.

Verification: both packages dart analyze clean, dart format --set-exit-if-changed clean (checked by exit code), 1,029 + 47 tests pass.

🤖 Generated with Claude Code

Abandons the annotation-based upstream-provenance feature: every ported
type carried a @source(...) block naming its C# file, namespace, repo,
and path. Nothing consumed them — no test, tool, or doc build reads the
annotation — and the drift audit maps Dart types to upstream by filename
and declaration, not by annotation, so they were 1,800 lines of
maintenance surface with no reader.

Removes all 215 annotations across 212 files, their annotations.dart
imports (211 package imports plus one relative import in
auto_chat_tool_mode.dart), and the lib/annotations.dart library itself.
Removing a public library is breaking; recorded in the changelog under
the pending 0.8.0 entry.

Both packages analyze clean, format clean by exit code, 1,029 + 47 tests
pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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