MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / atsupports

Function atsupports

packages/core/css/lib/parse/index.ts:325–343  ·  view source on GitHub ↗

* Parse supports.

()

Source from the content-addressed store, hash-verified

323 */
324
325 function atsupports() {
326 var pos = position();
327 var m = match(/^@supports *([^{]+)/);
328
329 if (!m) return;
330 var supports = trim(m[1]);
331
332 if (!open()) return error("@supports missing '{'");
333
334 var style = comments().concat(rules());
335
336 if (!close()) return error("@supports missing '}'");
337
338 return pos({
339 type: 'supports',
340 supports: supports,
341 rules: style,
342 });
343 }
344
345 /**
346 * Parse host.

Callers 1

atruleFunction · 0.85

Calls 9

trimFunction · 0.85
openFunction · 0.85
commentsFunction · 0.85
rulesFunction · 0.85
closeFunction · 0.85
concatMethod · 0.80
positionFunction · 0.70
matchFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected