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

Function humanizeSpan

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

Source from the content-addressed store, hash-verified

326}
327
328function humanizeSpan(span: ParseSourceSpan | null | undefined): string {
329 if (span === null || span === undefined) {
330 return `<empty>`;
331 }
332 return span.toString();
333}
334
335function expectFromHtml(html: string, selectorlessEnabled = false) {
336 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