yaml.ts ×8

Frontier kind: Code frontier

unlabeled · c_aaf9eeeb91a8

255 tests · 3711 LOC · 19 files · introduces 0 tests · 12 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges12 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

src/vs/base/common/yaml.ts 12 introduced LOC · 8 ranges

Open complete file

228 scan(maxDocuments = 1): Token[] {
229 while (this.pos < this.input.length) {
230 > this.scanLine(); yaml.ts
231 > if (this.seenDocumentStart > maxDocuments) {
232 break;
233 }
234 > } yaml.ts
235 this.tokens.push(makeToken(TokenType.EOF, this.pos, this.pos));
236 return this.tokens;
239 // Scan a single logical line (up to and including the newline character)
240 private scanLine(): void {
241 > this.seenBlockColon = false; yaml.ts
242 > // Handle blank lines / lines that are only whitespace
243 > if (this.peekChar() === '\n') {
244 this.tokens.push(makeToken(TokenType.Newline, this.pos, this.pos + 1));
245 this.pos++;
256 const indentStart = this.pos;
257 let indent = 0;
258 > while (this.pos < this.input.length && (this.input[this.pos] === ' ' || this.input[this.pos] === '\t')) { yaml.ts
259 indent++;
260 this.pos++;
265
266 // If line is now empty (only whitespace before newline/EOF), emit newline
267 > if (this.pos >= this.input.length || this.peekChar() === '\n' || this.peekChar() === '\r') { yaml.ts
268 if (this.pos < this.input.length) {
269 const nlStart = this.pos;
276
277 // Check for document markers (--- / ...) at column 0
278 > if (indent === 0 && this.input.length - this.pos >= 3) { yaml.ts
279 const c0 = this.input[this.pos];
280 const c1 = this.input[this.pos + 1];
318 this.scanLineContent();
319 this.scanNewline();
320 > } yaml.ts
321
322 private scanLineContent(): void {
941
942 private peekChar(): string {
943 > return this.input[this.pos]; yaml.ts
944 > }
945 }
946