Skip to content

Move ToolDefinition and related classes out of dartdoc_options #2686

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
Jun 17, 2021

Conversation

srawlins
Copy link
Member

ToolDefinition, DartToolDefinition, Snapshot, and SnapshotCache (~250 lines) are all only lightly related to dartdoc options. These four classes are easily extracted to their own file.

This change also replaces the Tuple2 usage with ToolStateForArgs, and refactors modifyArgsToCreateSnapshotIfNeeded to a new method which exists on both ToolDefinition and on DartToolDefinition.

These changes will help a new change to fix #2344 by emitting a warning from the new file.

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Jun 17, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 57.774% when pulling b51098c on srawlins:move-tool-definition into 99f45ab on dart-lang:master.

@srawlins srawlins requested a review from jcollins-g June 17, 2021 13:53
Copy link
Contributor

@jcollins-g jcollins-g left a comment

Choose a reason for hiding this comment

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

Yep, straightforward enough.

@srawlins srawlins merged commit 451c82d into dart-lang:master Jun 17, 2021
@srawlins srawlins deleted the move-tool-definition branch June 17, 2021 22:05
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
3 participants