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

Function _compileAtrule

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

* Parse non-block at-rules

(name)

Source from the content-addressed store, hash-verified

510 */
511
512 function _compileAtrule(name) {
513 var re = new RegExp('^@' + name + '\\s*([^;]+);');
514 return function () {
515 var pos = position();
516 var m = match(re);
517 if (!m) return;
518 var ret = { type: name };
519 ret[name] = m[1].trim();
520 return pos(ret);
521 };
522 }
523
524 /**
525 * Parse at rule.

Callers 1

parseFunction · 0.85

Calls 2

positionFunction · 0.70
matchFunction · 0.70

Tested by

no test coverage detected