softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
518 stars 31 forks source link

Make pub(crate) fields of `ASTWithValidityInfo` private. #434

Closed ratmice closed 11 months ago

ratmice commented 11 months ago

This makes some fields which were pub (crate) private, and replaces their usage outside the ast module with the existing pub functions. Which makes it a tiny bit easier to refactor these fields.

ratmice commented 11 months ago

Also noticed in that last commit (even though the private fields are visible at that point), that can be implemented in terms of the pub api.

Probably worth squashing.

ltratt commented 11 months ago

Please squash.

ratmice commented 11 months ago

Squashed.