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

Function rules

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

* Parse ruleset.

()

Source from the content-addressed store, hash-verified

110 */
111
112 function rules() {
113 var node;
114 var rules = [];
115 whitespace();
116 comments(rules);
117 while (css.length && css.charAt(0) != '}' && (node = atrule() || rule())) {
118 if (node !== false) {
119 rules.push(node);
120 comments(rules);
121 }
122 }
123 return rules;
124 }
125
126 /**
127 * Match `re` and return captures.

Callers 5

stylesheetFunction · 0.85
atsupportsFunction · 0.85
athostFunction · 0.85
atmediaFunction · 0.85
atdocumentFunction · 0.85

Calls 5

whitespaceFunction · 0.85
commentsFunction · 0.85
atruleFunction · 0.85
ruleFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected