MCPcopy Index your code
hub / github.com/angular/angular / extractErrors

Function extractErrors

packages/compiler/test/i18n/extractor_merger_spec.ts:728–741  ·  view source on GitHub ↗
(
  html: string,
  implicitTags: string[] = [],
  implicitAttrs: {[k: string]: string[]} = {},
)

Source from the content-addressed store, hash-verified

726}
727
728function extractErrors(
729 html: string,
730 implicitTags: string[] = [],
731 implicitAttrs: {[k: string]: string[]} = {},
732): any[] {
733 const errors = extractMessages(
734 parseHtml(html),
735 implicitTags,
736 implicitAttrs,
737 /* preserveSignificantWhitespace */ true,
738 ).errors;
739
740 return errors.map((e): [string, string] => [e.msg, e.span.toString()]);
741}

Callers 1

Calls 4

extractMessagesFunction · 0.90
mapMethod · 0.80
parseHtmlFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…