MCPcopy
hub / github.com/tailwindlabs/tailwindcss / expand

Function expand

packages/tailwindcss/src/expand-declaration.test.ts:10–21  ·  view source on GitHub ↗
(input: string, options: SignatureFeatures)

Source from the content-addressed store, hash-verified

8const css = String.raw
9
10function expand(input: string, options: SignatureFeatures): string {
11 let ast = parse(input)
12
13 walk(ast, (node) => {
14 if (node.kind === 'declaration') {
15 let result = expandDeclaration(node, options)
16 if (result) return WalkAction.ReplaceSkip(result)
17 }
18 })
19
20 return toCss(ast)
21}
22
23describe('expand declarations', () => {
24 let options = SignatureFeatures.ExpandProperties

Callers 1

Calls 4

parseFunction · 0.90
walkFunction · 0.90
expandDeclarationFunction · 0.90
toCssFunction · 0.90

Tested by

no test coverage detected