MCPcopy Create free account
hub / github.com/tailwindlabs/tailwindcss / parent

Function parent

packages/tailwindcss/src/ast.ts:207–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 return context
206 },
207 get parent() {
208 let parent = (this.path().pop() as Extract<AstNode, { nodes: AstNode[] }>) ?? null
209
210 // Once computed, we never need to compute this again
211 Object.defineProperty(this, 'parent', { value: parent })
212 return parent
213 },
214 path() {
215 return ctx.path().filter((n) => n.kind !== 'context')
216 },

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected