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

Function humanizeSpan

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

Source from the content-addressed store, hash-verified

345}
346
347function humanizeSpan(span: ParseSourceSpan | null | undefined): string {
348 if (span === null || span === undefined) {
349 return `<empty>`;
350 }
351 return span.toString();
352}
353
354function expectFromHtml(html: string, selectorlessEnabled = false) {
355 return expectFromR3Nodes(parse(html, {selectorlessEnabled}).nodes);

Callers 15

visitElementMethod · 0.85
visitTemplateMethod · 0.85
visitContentMethod · 0.85
visitContentBlockMethod · 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

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected