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

refactor build fn to use a class for managing state #44

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

jakemac53
Copy link
Contributor

closes #43

@jakemac53 jakemac53 added this to the v0.1.2 release milestone Feb 10, 2016
@jakemac53
Copy link
Contributor Author

Essentially this just moves all top level functions to instance methods, and zone-local values to properties. I also simplified some argument signatures by adding additional properties.

final AssetWriter _writer;
final PackageGraph _packageGraph;
final List<List<Phase>> _phaseGroups;
Map<String, Set<AssetId>> _inputsByPackage;

Choose a reason for hiding this comment

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

nit: Make this final & assign right away.

Change the assignment in _initializeInputsByPackage to a call to clear()

@kegluneq
Copy link

LGTM

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.

Refactor build function
2 participants