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

Method toJS

packages/@react-spectrum/s2/style/style-macro.ts:1071–1076  ·  view source on GitHub ↗
(allowedOverridesSet: Set<string>, indent = '')

Source from the content-addressed store, hash-verified

1069 }
1070
1071 toJS(allowedOverridesSet: Set<string>, indent = ''): string {
1072 conditionStack.push(this.condition);
1073 let res = `${indent}if (props.${this.condition}) {\n${super.toJS(allowedOverridesSet, indent + ' ')}\n${indent}}`;
1074 conditionStack.pop();
1075 return res;
1076 }
1077}
1078
1079/**

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
toJSMethod · 0.65

Tested by

no test coverage detected