Skip to content

[WIP] Update expression extensions refactor and fix typos#200

Merged
BlaiseD merged 2 commits intoCleanupfrom
copilot/sub-pr-199
Feb 24, 2026
Merged

[WIP] Update expression extensions refactor and fix typos#200
BlaiseD merged 2 commits intoCleanupfrom
copilot/sub-pr-199

Conversation

Copy link
Contributor

Copilot AI commented Feb 24, 2026

  • Add test case AddTypeMapping_ExpressionSourceNonExpressionDest_ThrowsArgumentException to verify validation logic
  • Run tests to ensure the new test passes (all 503 tests pass)
  • Request code review

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…tion

Co-authored-by: BlaiseD <7595209+BlaiseD@users.noreply.github.com>
@BlaiseD BlaiseD marked this pull request as ready for review February 24, 2026 18:46
@BlaiseD BlaiseD merged commit e9967b9 into Cleanup Feb 24, 2026
1 of 2 checks passed
@BlaiseD BlaiseD deleted the copilot/sub-pr-199 branch February 24, 2026 18:46
BlaiseD added a commit that referenced this pull request Feb 24, 2026
* Refactor expression extensions; fix typos and errors

- Consolidated all expression extension methods into ExpressionExtensions.cs; deleted VisitorExtensions.cs.
- Added ExpressionHelpers.cs for member access and parameter replacement helpers.
- Fixed resource typos ("deledate" → "delegate", "rempa" → "map").
- Added new error message for invalid type mappings.
- Updated TypeMappingsManager to throw on mismatched Expression<> types and always add type mappings for argument pairs.
- Cleaned up XpressionMapperVisitor.cs, fixed VisitParameter bug, and removed unused ConvertTypesIfNecessary.
- Updated unit tests for corrected error messages.
- Improves code organization, error clarity, and maintainability.

* [WIP] Update expression extensions refactor and fix typos (#200)

* Initial plan

* Add test for Expression source with non-Expression destination validation

Co-authored-by: BlaiseD <7595209+BlaiseD@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BlaiseD <7595209+BlaiseD@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix typo in exception message assertion in test

Corrected "Invalis type mappings" to "Invalid type mappings" in the assertion for AddTypeMapping_ExpressionSourceNonExpressionDest_ThrowsArgumentExcep test to ensure accurate exception message validation.

* Fix typos in resource comments and summaries

Corrected "Invalis" to "Invalid" in resource string summaries and XML comments. Also fixed "destinationTyp;" to "destinationType" in resource comments for clarity. No functional changes made.

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BlaiseD <7595209+BlaiseD@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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