Skip to content

Conversation

CppCXY
Copy link
Member

@CppCXY CppCXY commented Apr 1, 2025

No description provided.

@CppCXY CppCXY requested a review from Copilot April 3, 2025 09:31
@CppCXY CppCXY marked this pull request as ready for review April 3, 2025 09:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the member design in the code analysis component by removing legacy merge functions and replacing them with new binding functions (bind_type and add_member) that streamline type resolution. Key changes include:

  • Replacing merge_decl_expr_type and merge_member_type calls with bind_type across multiple modules.
  • Updating member owner handling to use add_member.
  • Removing the deprecated merge_type module.

Reviewed Changes

Copilot reviewed 65 out of 65 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/emmylua_code_analysis/src/compilation/analyzer/unresolve/resolve.rs Converted merge functions to bind_type and added member binding logic
crates/emmylua_code_analysis/src/compilation/analyzer/unresolve/mod.rs Removed merge_type module references
crates/emmylua_code_analysis/src/compilation/analyzer/unresolve/merge_type.rs Removed unused merge functions
crates/emmylua_code_analysis/src/compilation/analyzer/lua/stats.rs Updated local stat and assign stat processing with bind_type
crates/emmylua_code_analysis/src/compilation/analyzer/bind_type/mod.rs Introduced new bind_type function with type merging logic and member migration
Various doc, flow, and decl modules Adjusted to use new binding APIs and removed legacy merge calls
CHANGELOG.md Updated version to 0.7.0 (unreleased) with refactor notes

@CppCXY CppCXY merged commit 63c42ea into main Apr 3, 2025
14 checks passed
@CppCXY CppCXY deleted the refactor-member branch April 3, 2025 09:46
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