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

Refactor TransformerConfiguration Paths to more explicitly trace what is matched on source-side and what on target-side #612

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

MateuszKubuszok
Copy link
Member

@MateuszKubuszok MateuszKubuszok commented Oct 2, 2024

Prerequisite for #248 and #611

… is matched on source-side and what on target-side
def unapply(path: Path): Option[(??, Path)] =
path.segments.headOption.collect { case Segment.SourceMatching(tpe) => tpe -> new Path(path.segments.tail) }
}

Copy link
Member Author

Choose a reason for hiding this comment

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

This special-case hack is no longer needed

Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.79%. Comparing base (d9a153d) to head (575b374).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #612      +/-   ##
==========================================
+ Coverage   86.56%   86.79%   +0.23%     
==========================================
  Files         155      155              
  Lines        6012     6012              
  Branches      542      544       +2     
==========================================
+ Hits         5204     5218      +14     
+ Misses        808      794      -14     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -585,7 +609,7 @@ private[compiletime] trait Configurations { this: Derivation =>
extractPath[PathType2].matching[Subtype]
case ChimneyType.Path.SourceMatching(init, sourceSubtype) =>
Copy link
Member Author

Choose a reason for hiding this comment

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

We have to leave this in the DSL runtime (bincompat), so we might as well still parse it.

@MateuszKubuszok MateuszKubuszok merged commit f2cb2a6 into master Oct 2, 2024
24 checks passed
@MateuszKubuszok MateuszKubuszok deleted the paths-refactor branch October 2, 2024 17:04
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