Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/prettier/prettier
/ isWhitespaceNode
Function
isWhitespaceNode
src/language-handlebars/utilities.js:33–35 ·
view source on GitHub ↗
(node)
Source
from the content-addressed store, hash-verified
31
}
32
33
function
isWhitespaceNode(node) {
34
return
node.
type
===
"TextNode"
&& !/\S/.test(node.chars);
35
}
36
37
function
isPrettierIgnoreNode(node) {
38
return
(
Callers
3
print
Function · 0.90
blockStatementHasOnlyWhitespaceInProgram
Function · 0.90
isVoidElement
Function · 0.85
Calls
1
test
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…