Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename some ConstantEvaluator-associated types and values. #2516

Merged

Conversation

jimblandy
Copy link
Member

These names seem more informative. "Extra Data" is pretty noisy. "Info" is at least what Naga already uses for "Data collected about this other thing" (ModuleInfo, FunctionInfo, etc.).

  • ExpressionConstnessTracker::contains -> is_const
  • ConstantEvaluatorExtraData -> FunctionConstantInfo
  • ConstantEvaluator::extra_data -> function_info

@jimblandy jimblandy requested a review from teoxoy September 26, 2023 17:27
@teoxoy
Copy link
Member

teoxoy commented Sep 27, 2023

Naming is hard 😅

Can we do FunctionLocalData instead?

`ExpressionConstnessTracker::contains` -> `is_const`
`ConstantEvaluatorExtraData` -> `FunctionConstantInfo`
`ConstantEvaluator::extra_data` -> `function_info`
@jimblandy jimblandy force-pushed the const-evaluator-renames branch from b066956 to aab1542 Compare September 27, 2023 19:24
@teoxoy teoxoy merged commit b7b69ee into gfx-rs:const-expressions-2 Sep 27, 2023
5 checks passed
@jimblandy jimblandy deleted the const-evaluator-renames branch September 28, 2023 02:23
jimblandy added a commit to jimblandy/naga that referenced this pull request Oct 4, 2023
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.

2 participants