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

Method constructor

packages/core/ui/styling/css-selector.ts:790–794  ·  view source on GitHub ↗
(selectors: SelectorCore[], declarations: Declaration[])

Source from the content-addressed store, hash-verified

788 public scopedTag?: string;
789
790 constructor(selectors: SelectorCore[], declarations: Declaration[]) {
791 this.selectors = selectors;
792 this.declarations = declarations;
793 this.selectors.forEach((sel) => (sel.ruleset = this));
794 }
795 public toString(): string {
796 let desc = `${this.selectors.join(', ')} {${this.declarations.map((d, i) => `${i === 0 ? ' ' : ''}${d.property}: ${d.value}`).join('; ')} }`;
797 if (this.mediaQueryString) {

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected