uri.ts ×6

Frontier kind: Code frontier

unlabeled · c_fd88596e4bfb

82 tests · 3453 LOC · 18 files · introduces 0 tests · 23 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges23 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

src/vs/base/common/uri.ts 23 introduced LOC · 6 ranges

Open complete file

478
479 override toJSON(): UriComponents {
480 > // eslint-disable-next-line local/code-no-dangerous-type-assertions uri.ts
481 > const res = <UriState>{
482 > $mid: MarshalledId.Uri
483 > };
484 > // cached state
485 > if (this._fsPath) {
486 res.fsPath = this._fsPath;
487 res._sep = _pathSepMarker;
488 }
489 > if (this._formatted) { uri.ts
490 res.external = this._formatted;
491 }
492 > //--- uri components uri.ts
493 > if (this.path) {
494 > res.path = this.path;
495 > }
496 > // TODO
497 > // this isn't correct and can violate the UriComponents contract but
498 > // this is part of the vscode.Uri API and we shouldn't change how that
499 > // works anymore
500 > if (this.scheme) {
501 > res.scheme = this.scheme;
502 > }
503 > if (this.authority) {
504 res.authority = this.authority;
505 }
506 > if (this.query) { uri.ts
507 res.query = this.query;
508 }
509 > if (this.fragment) { uri.ts
510 res.fragment = this.fragment;
511 }
512 > return res; uri.ts
513 > }
514 }
515