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

Function summarizeNavEntry

packages/vite/hmr/client/index.ts:162–184  ·  view source on GitHub ↗
(entry: any)

Source from the content-addressed store, hash-verified

160
161// --- Diagnostics helpers ----------------------------------------------------
162function summarizeNavEntry(entry: any) {
163 try {
164 if (!entry) return { kind: 'empty' };
165 if (typeof entry === 'string') return { kind: 'string', moduleName: entry };
166 const hasCreate = typeof (entry as any).create === 'function';
167 const moduleName = (entry as any).moduleName;
168 const clearHistory = !!(entry as any).clearHistory;
169 const animated = (entry as any).animated;
170 const backstackVisible = (entry as any).backstackVisible;
171 const contextKeys = Object.keys((entry as any).context || {});
172 return {
173 kind: 'entry',
174 hasCreate,
175 moduleName,
176 clearHistory,
177 animated,
178 backstackVisible,
179 contextKeys,
180 };
181 } catch {
182 return { kind: 'unknown' };
183 }
184}
185
186function classifyResetArg(arg: any) {
187 try {

Callers 2

installDeepDiagnosticsFunction · 0.85
__nsNavigateUsingAppFunction · 0.85

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected