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

incremental rebuilds with watch #46

Merged
merged 2 commits into from
Feb 16, 2016
Merged

Conversation

jakemac53
Copy link
Contributor

closes #6

var outputId = new AssetId.deserialize(output);
_inputsByPackage[outputId.package]?.remove(outputId);
return _writer.delete(outputId);
var node = _assetGraph.get(outputId);
if (node == null || (node as GeneratedAssetNode).needsUpdate) {

Choose a reason for hiding this comment

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

Will this always be a safe cast to GeneratedAssetNode? If so, why not type _assetGraph?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should always be a GeneratedAssetNode, otherwise it would be an error (all outputs are GeneratedAssetNodes).

@kegluneq
Copy link

Just the one comment, otherwise LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use dependency graph to implement watch mode
3 participants