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

Function athost

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

* Parse host.

()

Source from the content-addressed store, hash-verified

347 */
348
349 function athost() {
350 var pos = position();
351 var m = match(/^@host\s*/);
352
353 if (!m) return;
354
355 if (!open()) return error("@host missing '{'");
356
357 var style = comments().concat(rules());
358
359 if (!close()) return error("@host missing '}'");
360
361 return pos({
362 type: 'host',
363 rules: style,
364 });
365 }
366
367 /**
368 * Parse media.

Callers 1

atruleFunction · 0.85

Calls 8

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