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

Privatize some of the interface of Library #2293

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

srawlins
Copy link
Member

  • Change Library.fromLibraryResult to be a factory constructor
  • Change Library. _exportedAndLocalElements from a List<Element> to a final Set<Element>
  • Deprecate the public methods Library.getDefinedElements, Library.getLibraryName, and getter Library.allOriginalModelElementNames.
  • Adjust doc comments to have a short one-liner.
  • Extract a RegExp to be static final.
  • Mark memoized fields as /*late final*/.

@srawlins srawlins requested a review from devoncarew August 12, 2020 14:53
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Aug 12, 2020
Copy link
Member

@devoncarew devoncarew left a comment

Choose a reason for hiding this comment

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

lgtm!

Note that some portion of the dartdoc API is consumed internally (I don't know that this PR affects that but wanted to mention it). You can look back through @mehmetf 's recent PRs into dartdoc to get a sense of what API surface area is used.

@srawlins
Copy link
Member Author

Yes, I'm trying to sync dartdoc internally on the regular now, to catch any conflicts early. Glad to have an internal customer!

@srawlins
Copy link
Member Author

Side-stepping the flutter timeout; all PRs feature this issue.

@srawlins srawlins merged commit 6c3242a into dart-lang:master Aug 12, 2020
@srawlins srawlins deleted the privatize-3 branch August 12, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants