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

Function removeWhitespaces

packages/compiler/src/ml_parser/html_whitespaces.ts:327–338  ·  view source on GitHub ↗
(
  htmlAstWithErrors: ParseTreeResult,
  preserveSignificantWhitespace: boolean,
)

Source from the content-addressed store, hash-verified

325}
326
327export function removeWhitespaces(
328 htmlAstWithErrors: ParseTreeResult,
329 preserveSignificantWhitespace: boolean,
330): ParseTreeResult {
331 return new ParseTreeResult(
332 visitAllWithSiblings(
333 new WhitespaceVisitor(preserveSignificantWhitespace),
334 htmlAstWithErrors.rootNodes,
335 ),
336 htmlAstWithErrors.errors,
337 );
338}
339
340interface SiblingVisitorContext {
341 prev: html.Node | undefined;

Callers 1

parseAndRemoveWSFunction · 0.90

Calls 1

visitAllWithSiblingsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…