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

Function addToMap

packages/core/ui/styling/css-selector.ts:1009–1015  ·  view source on GitHub ↗
(map: SelectorMap, head: string, sel: SelectorCore)

Source from the content-addressed store, hash-verified

1007 }
1008
1009 private addToMap(map: SelectorMap, head: string, sel: SelectorCore): void {
1010 if (!map[head]) {
1011 map[head] = [];
1012 }
1013
1014 map[head].push(this.makeDocSelector(sel));
1015 }
1016
1017 private makeDocSelector(sel: SelectorCore): SelectorCore {
1018 sel.pos = this.position++;

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected