yaml.ts ×10

Frontier kind: Code frontier

unlabeled · c_bd058b44fe26

243 tests · 3758 LOC · 19 files · introduces 0 tests · 25 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges25 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
568 ranges3758 lines · 19 files · Browse complete extent
All tests (intent)
243 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: 25 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/common/yaml.ts 25 introduced LOC · 10 ranges

Open complete file

305 return;
306 }
307 > yaml.ts
308 > // Skip directive lines (e.g., %YAML 1.2, %TAG) - consume rest of line
309 > if (this.peekChar() === '%') {
310 while (this.pos < this.input.length && this.input[this.pos] !== '\n' && this.input[this.pos] !== '\r') {
311 this.pos++;
314 return;
315 }
316 > yaml.ts
317 > // Scan the rest of the line for tokens
318 > this.scanLineContent();
319 > this.scanNewline();
320 }
321
322 private scanLineContent(): void {
323 while (this.pos < this.input.length && this.peekChar() !== '\n' && this.peekChar() !== '\r') {
324 > this.skipInlineWhitespace(); yaml.ts
325 > if (this.pos >= this.input.length || this.peekChar() === '\n' || this.peekChar() === '\r') {
326 break;
327 }
328 > yaml.ts
329 > const ch = this.peekChar();
330 >
331 > if (ch === '#') {
332 this.scanComment();
333 break; // comment consumes rest of line
334 > } else if (ch === '{') { yaml.ts
335 this.flowDepth++;
336 this.tokens.push(makeToken(TokenType.FlowMapStart, this.pos, this.pos + 1));
337 this.pos++;
338 > } else if (ch === '}' && this.flowDepth > 0) { yaml.ts
339 this.flowDepth--;
340 this.tokens.push(makeToken(TokenType.FlowMapEnd, this.pos, this.pos + 1));
341 this.pos++;
342 > } else if (ch === '[') { yaml.ts
343 this.flowDepth++;
344 this.tokens.push(makeToken(TokenType.FlowSeqStart, this.pos, this.pos + 1));
374 this.scanUnquotedScalar();
375 }
376 > } yaml.ts
377 }
378
916
917 private skipInlineWhitespace(): void {
918 > while (this.pos < this.input.length) { yaml.ts
919 > const ch = this.input[this.pos];
920 > if (ch === ' ' || ch === '\t') {
921 this.pos++;
922 > } else { yaml.ts
923 > break;
924 > }
925 > }
926 > }
927
928 /** Advance past a newline sequence (\r\n, \n, or \r). Returns true if a newline was consumed. */