Skip to content

Fix for duplicate libraries in SDK docs #1218

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

Merged
merged 1 commit into from
Jul 22, 2016
Merged

Fix for duplicate libraries in SDK docs #1218

merged 1 commit into from
Jul 22, 2016

Conversation

keertip
Copy link
Collaborator

@keertip keertip commented Jul 22, 2016

@@ -196,7 +196,8 @@ class DartDoc {
..sourceFactory = sourceFactory;

if (packageMeta.isSdk) {
libraries.addAll(getSdkLibrariesToDocument(sdk, context));
libraries
.addAll(new Set()..addAll(getSdkLibrariesToDocument(sdk, context)));
Copy link
Member

Choose a reason for hiding this comment

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

Would be awesome if collections supported a distinct() method, so we could just say getSdkLibrariesToDocument(sdk, context).distinct(). That said, a set works in the meantime! 👍

Copy link
Member

Choose a reason for hiding this comment

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

Alternatively, I guess getSdkLibrariesToDocument() might enforce uniqueness. Would there be any benefit to doing it there?

@pq
Copy link
Member

pq commented Jul 22, 2016

LGTM.

@keertip keertip merged commit 3b94e7c into dart-lang:master Jul 22, 2016
@keertip keertip deleted the sdk branch July 22, 2016 05:16
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.

api.dartlang shows two dart:math libraries in left nav bar
2 participants