yaml.ts ×5

Frontier kind: Code frontier

unlabeled · c_39b059399f35

215 tests · 3786 LOC · 19 files · introduces 0 tests · 14 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges14 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
577 ranges3786 lines · 19 files · Browse complete extent
All tests (intent)
215 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: 14 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/common/yaml.ts 14 introduced LOC · 5 ranges

Open complete file

1023 */
1024 private currentIndent(): number {
1025 > if (this.currentToken().type === TokenType.Indent) { yaml.ts
1026 return this.currentToken().indent;
1027 }
1028 > return 0; yaml.ts
1029 > }
1030
1031 // -- Main parse entry for a value at a given indentation --------------
1042 return this.parseFlowSeq();
1043 }
1044 > yaml.ts
1045 > // Block-level: detect if this is a sequence or mapping
1046 > const indent = this.currentIndent();
1047 >
1048 > // Determine what the first meaningful token is at this indent
1049 > const firstContentToken = this.peekPastIndent();
1050 >
1051 > if (firstContentToken.type === TokenType.Dash) {
1052 return this.parseBlockSequence(indent);
1053 }
1068 /** Peek past an optional Indent token to see the first content token */
1069 private peekPastIndent(): Token {
1070 > if (this.currentToken().type === TokenType.Indent) { yaml.ts
1071 return this.peek(1);
1072 }
1073 > return this.currentToken(); yaml.ts
1074 > }
1075
1076 /** Check if tokens at current position look like a mapping entry (key: value) */