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

Function SourceErrorFormat

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

Source from the content-addressed store, hash-verified

375 }
376
377 export function SourceErrorFormat(uri): ErrorFormatter {
378 return (e: Error, p: xml.Position) => {
379 console.error(uri);
380 const source = p ? new Source(uri, p.line, p.column) : new Source(uri, -1, -1);
381 e = new SourceError(e, source, 'Building UI from XML.');
382
383 return e;
384 };
385 }
386
387 interface SourceTracker {
388 (component: any, p: xml.Position): void;

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected