yaml.ts ×7

Frontier kind: Code frontier

unlabeled · c_1d93fa0506dd

239 tests · 3717 LOC · 19 files · introduces 0 tests · 18 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges18 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

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

Open complete file

951
952 constructor(
953 > private readonly tokens: Token[], yaml.ts
954 > private readonly input: string,
955 > private readonly errors: YamlParseError[],
956 > private readonly options: ParseOptions,
957 > ) { }
958
959 parse(): YamlNode | undefined {
960 > this.skipNewlinesAndComments(); yaml.ts
961 > // Skip document start marker (---) if present
962 > if (this.currentToken().type === TokenType.DocumentStart) {
963 this.advance();
964 this.skipNewlinesAndComments();
965 }
966 > if (this.currentToken().type === TokenType.EOF || this.currentToken().type === TokenType.DocumentEnd) { yaml.ts
967 return undefined;
968 }
969 const result = this.parseValue(-1);
970 return result;
971 > } yaml.ts
972
973 // -- helpers ----------------------------------------------------------
974
975 private currentToken(): Token {
976 > return this.tokens[this.pos]; yaml.ts
977 > }
978
979 private peek(offset = 0): Token {
1002
1003 private skipNewlinesAndComments(): void {
1004 > while ( yaml.ts
1005 > this.currentToken().type === TokenType.Newline ||
1006 > this.currentToken().type === TokenType.Comment ||
1007 > (this.currentToken().type === TokenType.Indent && this.isFollowedByNewlineOrComment())
1008 > ) {
1009 this.advance();
1010 }
1011 > } yaml.ts
1012
1013 /** Returns true if the current Indent token is followed immediately by Newline/Comment/EOF */