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

Method updateMatch

packages/core/ui/styling/style-scope.ts:588–598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

586
587 @profile
588 private updateMatch() {
589 const view = this.viewRef.get();
590 if (view && view._styleScope) {
591 this._match = view._styleScope.matchSelectors(view) ?? CssState.emptyMatch;
592 this._appliedSelectorsVersion = view._styleScope.getSelectorsVersion();
593 } else {
594 this._match = CssState.emptyMatch;
595 }
596
597 this._matchInvalid = false;
598 }
599
600 @profile
601 private updateDynamicState(): void {

Callers 2

onChangeMethod · 0.95
onLoadedMethod · 0.95

Calls 3

matchSelectorsMethod · 0.80
getSelectorsVersionMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected