MCPcopy Create free account
hub / github.com/angular/angular / humanizeSpan

Function humanizeSpan

packages/compiler/test/render3/r3_ast_spans_spec.ts:318–323  ·  view source on GitHub ↗
(span: ParseSourceSpan | null | undefined)

Source from the content-addressed store, hash-verified

316}
317
318function humanizeSpan(span: ParseSourceSpan | null | undefined): string {
319 if (span === null || span === undefined) {
320 return `<empty>`;
321 }
322 return span.toString();
323}
324
325function expectFromHtml(html: string, selectorlessEnabled = false) {
326 return expectFromR3Nodes(parse(html, {selectorlessEnabled}).nodes);

Callers 15

visitElementMethod · 0.85
visitTemplateMethod · 0.85
visitContentMethod · 0.85
visitVariableMethod · 0.85
visitReferenceMethod · 0.85
visitTextAttributeMethod · 0.85
visitBoundAttributeMethod · 0.85
visitBoundEventMethod · 0.85
visitTextMethod · 0.85
visitBoundTextMethod · 0.85
visitIcuMethod · 0.85
visitDeferredBlockMethod · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected