Skip to content

Conversation

@toinehartman
Copy link
Member

@toinehartman toinehartman commented Jan 29, 2026

@toinehartman toinehartman self-assigned this Jan 29, 2026
@toinehartman toinehartman marked this pull request as draft January 29, 2026 10:29
@toinehartman toinehartman removed the request for review from PaulKlint January 29, 2026 10:29
@toinehartman toinehartman changed the title Remove functions that moved to typepal Remove obsolete functions Jan 29, 2026
@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46%. Comparing base (e55b577) to head (5452e80).

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2616   +/-   ##
=======================================
  Coverage       46%     46%           
- Complexity    6643    6646    +3     
=======================================
  Files          793     793           
  Lines        65719   65719           
  Branches      9844    9844           
=======================================
+ Hits         30602   30610    +8     
+ Misses       32759   32749   -10     
- Partials      2358    2360    +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@toinehartman toinehartman force-pushed the fix/remove-duplicate-functions branch from feb2812 to 745a65f Compare January 29, 2026 12:02
@toinehartman toinehartman marked this pull request as ready for review January 29, 2026 12:05
@toinehartman
Copy link
Member Author

@PaulKlint Can you please confirm which of the copies should remain?

@toinehartman toinehartman force-pushed the fix/remove-duplicate-functions branch from 745a65f to 8039269 Compare January 29, 2026 14:12
Copy link
Member

@PaulKlint PaulKlint left a comment

Choose a reason for hiding this comment

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

See remarks. It is fine to remove these functions.

import lang::rascalcore::check::Checker;
import lang::rascal::\syntax::Rascal;

extend analysis::typepal::Collector; // for private isContainedIn
Copy link
Member

Choose a reason for hiding this comment

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

Since the ternary version of isContainedIn is no longer available in Location we need to get it from analysis::typepal::TModel. I think an import of that module would do.

Copy link
Member

@PaulKlint PaulKlint left a comment

Choose a reason for hiding this comment

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

Looks fine, except extend in StaticTestingUtils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants