resolve method

void resolve(
  1. GenerationContext ctx
)

Finds all message types used by this service.

Puts the types found in _deps and _transitiveDeps. If a type name can't be resolved, puts it in _undefinedDeps. Precondition: messages have been registered and resolved.

Implementation

void resolve(GenerationContext ctx) {
  for (final m in _methodDescriptors) {
    _addDependency(ctx, m.inputType, 'input type of ${m.name}');
    _addDependency(ctx, m.outputType, 'output type of ${m.name}');
  }
  _resolveMoreTypes(ctx);
}