normalizeDirective method

Future<CompileDirectiveMetadata> normalizeDirective(
  1. CompileDirectiveMetadata directive
)

Implementation

Future<CompileDirectiveMetadata> normalizeDirective(
  CompileDirectiveMetadata directive,
) async {
  if (!directive.isComponent) {
    return directive;
  }
  return CompileDirectiveMetadata.from(
    directive,
    template: await _normalizeTemplate(
      directive.type,
      directive.template,
    ),
  );
}