Accumulate typechecking methods in impl TypeCheckContext
, part 2
#5088
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Partially resolves issue #5050.
All the
impl TypeEngine
methods from the filetype_system/engine.rs
that also takeEngines
andNamespace
as parameters have been moved intoimpl TypeCheckContext
.All the
impl Root
methods from the filenamespace/root.rs
that also takeEngines
as parameters have been moved intoimpl TypeCheckContext
.I'm splitting the refactoring into several PRs to solicit early feedback, make review process a bit easier and potentially create fewer merge conflicts.
List of changes:
type_engine.monomorphize
->ctx.monomorphize_with_modpath
type_engine.resolve
->ctx.resolve
type_engine.resolve_with_self
->ctx.resolve_with_self
type_engine.MonomorphizeHelper
->ctx.MonomorphizeHelper
type_engine.EnforceTypeArguments
->ctx.EnforceTypeArguments
namespace.root.resolve_call_path_with_visibility_check
->ctx.resolve_call_path_with_visibility_check_and_modpath
Checklist
Breaking*
orNew Feature
labels where relevant.