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

Method query

packages/core/ui/styling/style-scope.ts:988–993  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

986 }
987
988 public query(node: Node): SelectorCore[] {
989 this.ensureSelectors();
990
991 const match = this.matchSelectors(node);
992 return match ? match.selectors : [];
993 }
994
995 getSelectorsVersion() {
996 // The counters can only go up. So we can return just appVersion + localVersion

Callers 5

matchSelectorsMethod · 0.45
getCursorMethod · 0.45
createRandomFunction · 0.45
findSelectorInScopeFunction · 0.45

Calls 2

ensureSelectorsMethod · 0.95
matchSelectorsMethod · 0.95

Tested by

no test coverage detected