MCPcopy
hub / github.com/vuejs/core / isWhitespaceText

Function isWhitespaceText

packages/compiler-core/src/utils.ts:582–587  ·  view source on GitHub ↗
(node: TemplateChildNode)

Source from the content-addressed store, hash-verified

580}
581
582export function isWhitespaceText(node: TemplateChildNode): boolean {
583 return (
584 (node.type === NodeTypes.TEXT && isAllWhitespace(node.content)) ||
585 (node.type === NodeTypes.TEXT_CALL && isWhitespaceText(node.content))
586 )
587}
588
589export function isCommentOrWhitespace(node: TemplateChildNode): boolean {
590 return node.type === NodeTypes.COMMENT || isWhitespaceText(node)

Callers 1

isCommentOrWhitespaceFunction · 0.85

Calls 1

isAllWhitespaceFunction · 0.85

Tested by

no test coverage detected