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

fix(filter) : remove imports of filtered types #683

Merged
merged 4 commits into from
Aug 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(filter) : improve the modification flag logic
Signed-off-by: Dan Selman <[email protected]>
dselman committed Aug 11, 2023
commit 0f8c18261b809d2b653baf3fa2389792235eed82
6 changes: 6 additions & 0 deletions packages/concerto-core/test/modelmanager.js
Original file line number Diff line number Diff line change
@@ -1079,12 +1079,18 @@ concept Bar {
concept Unused {}
`, 'child.cto', true);

modelManager.addCTOModel(`namespace [email protected]
concept Used2 {}
`, 'cousin.cto', true);

modelManager.addCTOModel(`namespace [email protected]
import [email protected]
import [email protected]
import [email protected]
import [email protected].{Used,Unused}
concept Person {
o Used used
o Used2 used2
}
`, 'test.cto');
const filtered = modelManager.filter(declaration =>