json.ts ×9

Frontier kind: Code frontier

unlabeled · c_920a5b6d317f

314 tests · 3988 LOC · 19 files · introduces 0 tests · 17 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges17 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
562 ranges3988 lines · 19 files · Browse complete extent
All tests (intent)
314 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: 17 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/common/json.ts 17 introduced LOC · 9 ranges

Open complete file

1157 onLiteralValue(value);
1158 } else {
1159 > onObjectProperty(value); json.ts
1160 > }
1161 scanNext();
1162 return true;
1196
1197 function parseProperty(): boolean {
1198 > if (_scanner.getToken() !== SyntaxKind.StringLiteral) { json.ts
1199 handleError(ParseErrorCode.PropertyNameExpected, [], [SyntaxKind.CloseBraceToken, SyntaxKind.CommaToken]);
1200 return false;
1201 }
1202 > parseString(false); json.ts
1203 > if (_scanner.getToken() === SyntaxKind.ColonToken) {
1204 > onSeparator(':');
1205 > scanNext(); // consume colon
1206 >
1207 > if (!parseValue()) {
1208 handleError(ParseErrorCode.ValueExpected, [], [SyntaxKind.CloseBraceToken, SyntaxKind.CommaToken]);
1209 }
1210 > } else { json.ts
1211 handleError(ParseErrorCode.ColonExpected, [], [SyntaxKind.CloseBraceToken, SyntaxKind.CommaToken]);
1212 }
1213 > return true; json.ts
1214 > }
1215
1216 function parseObject(): boolean {
1220 let needsComma = false;
1221 while (_scanner.getToken() !== SyntaxKind.CloseBraceToken && _scanner.getToken() !== SyntaxKind.EOF) {
1222 > if (_scanner.getToken() === SyntaxKind.CommaToken) { json.ts
1223 if (!needsComma) {
1224 handleError(ParseErrorCode.ValueExpected, [], []);
1229 break;
1230 }
1231 > } else if (needsComma) { json.ts
1232 handleError(ParseErrorCode.CommaExpected, [], []);
1233 }
1234 > if (!parseProperty()) { json.ts
1235 handleError(ParseErrorCode.ValueExpected, [], [SyntaxKind.CloseBraceToken, SyntaxKind.CommaToken]);
1236 }
1237 > needsComma = true; json.ts
1238 > }
1239 onObjectEnd();
1240 if (_scanner.getToken() !== SyntaxKind.CloseBraceToken) {