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

Function ComponentSourceTracker

packages/core/ui/builder/index.ts:391–398  ·  view source on GitHub ↗
(uri)

Source from the content-addressed store, hash-verified

389 }
390
391 export function ComponentSourceTracker(uri): SourceTracker {
392 return (component: any, p: xml.Position) => {
393 if (!Source.get(component)) {
394 const source = p ? new Source(uri, p.line, p.column) : new Source(uri, -1, -1);
395 Source.set(component, source);
396 }
397 };
398 }
399
400 export class PlatformFilter extends XmlProducerBase implements XmlProducer, XmlConsumer {
401 private currentPlatformContext: string;

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected