MCPcopy
hub / github.com/tailwindlabs/prettier-plugin-tailwindcss / AttrNode

Function AttrNode

src/index.ts:252–256  ·  view source on GitHub ↗
(attr, _path, meta)

Source from the content-addressed store, hash-verified

250
251 visit(ast, {
252 AttrNode(attr, _path, meta) {
253 if (matcher.hasStaticAttr(attr.name) && attr.value) {
254 meta.sortTextNodes = true
255 }
256 },
257
258 TextNode(node, path, meta) {
259 if (!meta.sortTextNodes) {

Callers

nothing calls this directly

Calls 1

hasStaticAttrMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…