getAllDependencies method

List<TaskInvocation> getAllDependencies(
  1. GrinderTask task
)

Given a task, return all of its transitive dependencies.

Implementation

List<TaskInvocation> getAllDependencies(GrinderTask task) {
  var taskDeps = _taskDeps;
  if (taskDeps == null) {
    throw StateError(
        'Grinder.getAllDependencies() may only be called after grind().');
  }

  var dependencies = taskDeps[task];
  if (dependencies == null) {
    throw ArgumentError(
        'Task "$task" isn\'t associated with this Grinder instance.');
  }

  return dependencies;
}