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

Method constructor

packages/core/src/jsx.ts:21–27  ·  view source on GitHub ↗
(private context: Pick<Context, 'patterns' | 'recipes' | 'config'>)

Source from the content-addressed store, hash-verified

19 patternPropertiesByJsxName = new Map<string, Set<string>>()
20
21 constructor(private context: Pick<Context, 'patterns' | 'recipes' | 'config'>) {
22 this.nodes = [...context.patterns.details, ...context.recipes.details]
23 this.names = [this.factoryName, ...this.nodes.map((node) => node.jsxName)]
24
25 this.assignRecipeMatcher()
26 this.assignPatternMatcher()
27 }
28
29 assignRecipeMatcher() {
30 if (!this.isEnabled) return

Callers

nothing calls this directly

Calls 2

assignRecipeMatcherMethod · 0.95
assignPatternMatcherMethod · 0.95

Tested by

no test coverage detected