Skip to content

Add flag and rebuild test package docs #1457

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 2 commits into from
Jun 6, 2017
Merged

Add flag and rebuild test package docs #1457

merged 2 commits into from
Jun 6, 2017

Conversation

jcollins-g
Copy link
Contributor

Fixes #1456 and should enable dartdoc tests to work reliably in the SDK.

As discussed before, add a flag to hide the imported SDK docs in the integration tests.

@jcollins-g jcollins-g requested a review from devoncarew June 5, 2017 21:45
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jun 5, 2017
@@ -266,6 +289,14 @@ ArgParser _createArgsParser() {
"Generates `index.json` with indentation and newlines. The file is larger, but it's also easier to diff.",
negatable: false,
defaultsTo: false);
parser.addFlag(
'hide-sdk-text',
help:
Copy link
Member

Choose a reason for hiding this comment

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

add hide: true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops. Fixed.

return _rawDocs;
}

/// Returns the docs, stripped of their leading comments syntax.
@override
String get documentation => documentationFrom._documentationLocal;
String get documentation {
String x = documentationFrom._documentationLocal;
Copy link
Member

Choose a reason for hiding this comment

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

use the function shorthand?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. I keep forgetting to undo my manual conditional breakpoints completely.

if (categoryOrder == null) {
categoryOrder = new UnmodifiableListView<String>([]);
}
if (dropTextFrom == null) {
Copy link
Member

Choose a reason for hiding this comment

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

??=

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@devoncarew
Copy link
Member

lgtm

@jcollins-g jcollins-g merged commit 80b2a60 into master Jun 6, 2017
@kevmoo kevmoo deleted the hide-sdk-docs branch June 21, 2017 17:04
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