-
Notifications
You must be signed in to change notification settings - Fork 27
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
Subsume host-sources when union merge #205
base: main
Are you sure you want to change the base?
Conversation
@@ -171,7 +171,7 @@ private void optimise() { | |||
if (directive instanceof SourceListDirective) { | |||
SourceListDirective sourceListDirective = (SourceListDirective) directive; | |||
Optional<SourceExpression> star = | |||
sourceListDirective.values().filter(x -> x instanceof HostSource && ((HostSource) x).isWildcard()) | |||
sourceListDirective.values().filter(x -> x instanceof HostSource && ((HostSource) x).isTLDWildcard()) | |||
.findAny(); | |||
if (star.isPresent()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change this to also do the subsumption test.
Now conflicting. |
865e7cc
to
e37e5bf
Compare
Ideally this would also handle:
Also: unioning |
fixes #200