snapshot.ts ×7

Frontier kind: Code frontier

unlabeled · c_f84b3e1e771e

98 tests · 5651 LOC · 28 files · introduces 0 tests · 10 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges10 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
867 ranges5651 lines · 28 files · Browse complete extent
All tests (intent)
98 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 10 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/test/common/snapshot.ts 10 introduced LOC · 7 ranges

Open complete file

106 case 'symbol':
107 case 'undefined':
108 > return String(value); snapshot.ts
109 case 'string':
110 return level === 0 ? value : JSON.stringify(value);
112 return `[Function ${value.name}]`;
113 case 'object': {
114 > if (value === null) { snapshot.ts
115 return 'null';
116 }
117 > if (value instanceof RegExp) { snapshot.ts
118 return String(value);
119 }
120 > if (seen.includes(value)) { snapshot.ts
121 return '[Circular]';
122 }
123 > // eslint-disable-next-line local/code-no-any-casts snapshot.ts
124 > if (debugDescriptionSymbol in value && typeof (value as any)[debugDescriptionSymbol] === 'function') {
125 // eslint-disable-next-line local/code-no-any-casts
126 return (value as any)[debugDescriptionSymbol]();
127 }
128 > const oi = ' '.repeat(level); snapshot.ts
129 > const ci = ' '.repeat(level + 1);
130 > if (Array.isArray(value)) {
131 const children = value.map(v => formatValue(v, level + 1, [...seen, value]));
132 const multiline = children.some(c => c.includes('\n')) || children.join(', ').length > 80;
150 ? `{\n${ci}${lines.join(`,\n${ci}`)}\n${oi}}`
151 : `{ ${lines.join(',\n')} }`);
152 > } snapshot.ts
153 default:
154 throw new Error(`Unknown type ${value}`);