MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / parseAtRule

Method parseAtRule

packages/core/css/CSSNativeScript.ts:30–43  ·  view source on GitHub ↗
(rule: AtRule)

Source from the content-addressed store, hash-verified

28 }
29
30 private parseAtRule(rule: AtRule): any {
31 if (rule.name === 'import') {
32 // TODO: We have used an "@import { url('path somewhere'); }" at few places.
33 return {
34 import: rule.prelude
35 .map((m) => (typeof m === 'string' ? m : m.text))
36 .join('')
37 .trim(),
38 type: 'import',
39 };
40 }
41
42 return;
43 }
44
45 private parseQualifiedRule(rule: QualifiedRule): any {
46 return {

Callers 1

parseRuleMethod · 0.95

Calls 2

joinMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected