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

Function accumulateChanges

packages/core/ui/styling/css-selector.ts:201–211  ·  view source on GitHub ↗
(node: Node, map?: ChangeAccumulator)

Source from the content-addressed store, hash-verified

199
200export abstract class SimpleSelector extends SelectorCore {
201 public accumulateChanges(node: Node, map?: ChangeAccumulator): boolean {
202 if (!this.dynamic) {
203 return this.match(node);
204 } else if (this.mayMatch(node)) {
205 this.trackChanges(node, map);
206
207 return true;
208 }
209
210 return false;
211 }
212 public mayMatch(node: Node): boolean {
213 return this.match(node);
214 }

Callers

nothing calls this directly

Calls 3

matchMethod · 0.45
mayMatchMethod · 0.45
trackChangesMethod · 0.45

Tested by

no test coverage detected