yaml.ts ×7

Frontier kind: Code frontier

unlabeled · c_7adc882ee8fc

120 tests · 3845 LOC · 19 files · introduces 0 tests · 29 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges29 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

src/vs/base/common/yaml.ts 29 introduced LOC · 7 ranges

Open complete file

367 this.pos++;
368 } else if (ch === '\'' || ch === '"') {
369 > this.scanQuotedScalar(ch); yaml.ts
370 } else if ((ch === '|' || ch === '>') && this.flowDepth === 0 && this.isBlockScalarStart()) {
371 this.scanBlockScalar(ch as '|' | '>');
411
412 private scanQuotedScalar(quote: '\'' | '"'): void {
413 > const start = this.pos; yaml.ts
414 > this.pos++; // skip opening quote
415 > let value = '';
416 > // Track trailing literal whitespace count so flow folding only trims
417 > // source-level whitespace, not whitespace produced by escape sequences
418 > let trailingLiteralWs = 0;
419 >
420 > while (this.pos < this.input.length) {
421 > const ch = this.input[this.pos];
422 > if (ch === quote) {
423 // In single-quoted strings, '' is an escaped single quote
424 if (quote === '\'' && this.input[this.pos + 1] === '\'') {
437 return;
438 }
439 > yaml.ts
440 > // Handle escape sequences in double-quoted strings
441 > if (quote === '"' && ch === '\\') {
442 const next = this.input[this.pos + 1];
443 // Escaped line break: \ + newline → join lines without inserting a space
513 continue;
514 }
515 > yaml.ts
516 > // Flow folding: handle newlines inside quoted scalars (both single and double)
517 > if (ch === '\n' || ch === '\r') {
518 // Trim trailing literal whitespace (not escape-produced whitespace)
519 if (trailingLiteralWs > 0) {
548 continue;
549 }
550 > yaml.ts
551 > // Track literal whitespace for folding purposes
552 > if (ch === ' ' || ch === '\t') {
553 trailingLiteralWs++;
554 > } else { yaml.ts
555 > trailingLiteralWs = 0;
556 > }
557 > value += ch;
558 > this.pos++;
559 > }
560
561 // Unterminated string - emit what we have
564 rawValue,
565 value,
566 > format: quote === '\'' ? 'single' : 'double', yaml.ts
567 > }));
568 > }
569
570 private scanUnquotedScalar(): void {