Skip to content

Rename the internal feed types to source - #313

Open
electricessence wants to merge 1 commit into
masterfrom
refactor/rc18-feed-to-source
Open

electricessence wants to merge 1 commit into
masterfrom
refactor/rc18-feed-to-source

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

The Channel and Dataflow pumps each have an internal interface and two structs that say where the rows of one pass come from. They were named with "feed", while the rest of the package says "source" for where rows come from. This renames them; internal only, no behavior change.

  • IFeed<T> is now IPumpSource<T>. The plainer IRowSource<T> is already an internal interface in Core that the Channel and Dataflow packages can see, so that name would have clashed (the owner approved IPumpSource).
  • ChunkFeed<T> is now ChunkSource<T>, and RowFeed<T> is now RowSource<T>.
  • The type parameter TFeed is now TSource and the parameter feed is now source, in ChannelPump.Run and BlockPump.Run (no other name in those scopes is called source).
  • Comments and doc comments that mean these types now say "source", in the two pumps, the call sites and five test comments. Uses of "feed" that mean something else (a column feeds a property, a package feed) are unchanged.

Every renamed type and member is internal; the public API files have no diff, and grep finds no IFeed, ChunkFeed, RowFeed or TFeed left.

Verification: solution Release and Debug (VS MSBuild) 0 warnings, 0 errors; Core.Tests 16154 passed with the generator on, 16133 passed and 16 skipped with it off; 267 sample checks; style and analyzer checks 0 findings on all 14 projects; docfx 0 warnings; style scan clean.

Reviews: a lens that compared every changed line for pure renames, collisions and left-over names (no defect).

🤖 Generated with Claude Code

The Channel and Dataflow pumps each have an internal interface and two
structs that say where the rows of one pass come from. They were named
with "feed", while the rest of the package says "source" for where rows
come from.

- IFeed<T> is now IPumpSource<T>. The plainer IRowSource<T> is already
  an internal interface in Core that the Channel and Dataflow packages
  can see, so that name would have clashed.
- ChunkFeed<T> is now ChunkSource<T>, and RowFeed<T> is now RowSource<T>.
- The type parameter TFeed is now TSource and the parameter feed is now
  source, in ChannelPump.Run and BlockPump.Run (no other name in those
  scopes is called source).
- Comments and doc comments that mean these types now say "source".
  Uses of "feed" that mean something else (a column feeds a property,
  a package feed) are unchanged.

A rename only: no logic, no behavior and no public member changes. Every
renamed type and member is internal, and the public API files have no
diff. No run-time cost.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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