addConstantImportsTo method

void addConstantImportsTo(
  1. Set<FileGenerator> imports
)

Adds dependencies of generateConstants to imports.

For each .pbjson.dart file that the generated code needs to import, add its generator.

Implementation

void addConstantImportsTo(Set<FileGenerator> imports) {
  for (final mg in _transitiveDeps.values) {
    imports.add(mg.fileGen);
  }
}