MCPcopy Create free account
hub / github.com/chakra-ui/panda / constructor

Method constructor

packages/core/src/patterns.ts:30–36  ·  view source on GitHub ↗
(private options: PatternOptions)

Source from the content-addressed store, hash-verified

28 private deprecated: Set<string> = new Set()
29
30 constructor(private options: PatternOptions) {
31 this.patterns = options.config.patterns ?? {}
32 this.details = Object.entries(this.patterns).map(([name, pattern]) => this.createDetail(name, pattern))
33 this.keys = Object.keys(this.patterns)
34 this.utility = options.utility
35 this.tokens = options.tokens
36 }
37
38 private createDetail(name: string, pattern: PatternConfig): PatternNode {
39 const names = this.getNames(name)

Callers

nothing calls this directly

Calls 3

createDetailMethod · 0.95
entriesMethod · 0.80
keysMethod · 0.80

Tested by

no test coverage detected