Skip to content

Rename various accesskit and accesskit_consumer types#734

Open
PoignardAzur wants to merge 3 commits into
AccessKit:mainfrom
PoignardAzur:rename_items
Open

Rename various accesskit and accesskit_consumer types#734
PoignardAzur wants to merge 3 commits into
AccessKit:mainfrom
PoignardAzur:rename_items

Conversation

@PoignardAzur

@PoignardAzur PoignardAzur commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Closes #720

Rename accesskit::Tree to TreeInfo
Rename accesskit_consumer::Node to accesskit_consumer::NodeRef Rename accesskit_consumer::NodeId to FullNodeId
Rename accesskit_consumer::State to TreeState

Because the previous names were ambiguous or had collisions, a lot of files imported them with aliases.
This PR removes most of these alias imports.

This is a rename-only PR with no behavior changes; most changes were done with rust-analyzer's "rename symbol" assist and similar (non-AI) tools.

Rename accesskit::Tree to TreeInfo
Rename accesskit_consumer::Node to accesskit_consumer::NodeRef
Rename accesskit_consumer::NodeId to FullNodeId
Rename accesskit_consumer::State to TreeState

Because the previous names were ambiguous or had collisions, a lot of
files imported them with aliases.
This PR removes most of these alias imports.

This is a rename-only PR with no behavior changes; most changes were
done with rust-analyzer's "rename symbol" assist and similar (non-AI)
tools.

@DataTriny DataTriny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the intra doc links in the accesskit crate. We're clearly missing a CI check here.

accesskit::Tree is such a core type that I would prefer keeping it around for a few versions, but as a type alias:

#[deprecated]
pub type Tree = TreeInfo;

Any opinion on replacing the type name by Self on impl blocks?

I haven't reviewed everything yet.

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.

Types in accesskit_consumer should be renamed

2 participants