MCPcopy Create free account
hub / github.com/adobe/react-spectrum / copy

Method copy

packages/@react-spectrum/s2/style/style-macro.ts:1068–1073  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1066 }
1067
1068 copy(): Rule {
1069 return new ConditionalRule(
1070 this.rules.map(rule => rule.copy()),
1071 this.condition
1072 );
1073 }
1074
1075 getStaticClassName(): string {
1076 throw new Error('Conditional rules cannot be compiled to a static class name. This is a bug.');

Callers

nothing calls this directly

Calls 1

copyMethod · 0.65

Tested by

no test coverage detected