writeInstanceManager method

  1. @override
void writeInstanceManager(
  1. DartOptions generatorOptions,
  2. Root root,
  3. Indent indent, {
  4. required String dartPackageName,
})
override

Writes the implementation of an InstanceManager to indent.

Implementation

@override
void writeInstanceManager(
  DartOptions generatorOptions,
  Root root,
  Indent indent, {
  required String dartPackageName,
}) {
  indent.format(proxyApiBaseClass);

  indent.format(
    instanceManagerTemplate(
      allProxyApiNames: root.apis
          .whereType<AstProxyApi>()
          .map((AstProxyApi api) => api.name),
    ),
  );
}