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

Function rule

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

* Parse rule.

()

Source from the content-addressed store, hash-verified

536 */
537
538 function rule() {
539 var pos = position();
540 var sel = selector();
541
542 if (!sel) return error('selector missing');
543 comments();
544
545 return pos({
546 type: 'rule',
547 selectors: sel,
548 declarations: declarations(),
549 });
550 }
551
552 return addParent(stylesheet());
553}

Callers 1

rulesFunction · 0.85

Calls 5

selectorFunction · 0.85
commentsFunction · 0.85
declarationsFunction · 0.85
positionFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected