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

Function readValue

packages/@react-spectrum/style-macro-s1/src/runtime.ts:90–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 function readValue() {
91 if (s[i] === '-') {
92 // the beginning and end of arbitrary values are marked with -
93 while (i < s.length && s[i] !== ' ') {
94 i++;
95 if (s[i] === '-') {
96 i++;
97 break;
98 }
99 }
100 } else {
101 while (i < s.length) {
102 if (s[i] === '_') {
103 i++;
104 } else {
105 i++;
106 break;
107 }
108 }
109 }
110 }
111
112 return properties;
113}

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected