contextkey.ts ×10

Frontier kind: Code frontier

unlabeled · c_ececea5ce151

527 tests · 6292 LOC · 29 files · introduces 0 tests · 24 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges24 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

src/vs/platform/contextkey/common/contextkey.ts 24 introduced LOC · 10 ranges

Open complete file

853 return this.type - other.type;
854 }
855 > return cmp2(this.key, this.value, other.key, other.value); contextkey.ts
856 }
857
891
892 public negate(): ContextKeyExpression {
893 > if (!this.negated) { contextkey.ts
894 > this.negated = ContextKeyNotEqualsExpr.create(this.key, this.value, this);
895 > }
896 > return this.negated;
897 > }
898 }
899
1451 return this.type - other.type;
1452 }
1453 > if (this.key < other.key) { contextkey.ts
1454 return -1;
1455 }
1456 > if (this.key > other.key) { contextkey.ts
1457 return 1;
1458 }
1469
1470 public equals(other: ContextKeyExpression): boolean {
1471 > if (other.type === this.type) { contextkey.ts
1472 > const thisSource = this.regexp ? this.regexp.source : '';
1473 > const otherSource = other.regexp ? other.regexp.source : '';
1474 > return (this.key === other.key && thisSource === otherSource);
1475 > }
1476 return false;
1477 > } contextkey.ts
1478
1479 public substituteConstants(): ContextKeyExpression | undefined {
1502
1503 public negate(): ContextKeyExpression {
1504 > if (!this.negated) { contextkey.ts
1505 > this.negated = ContextKeyNotRegexExpr.create(this);
1506 > }
1507 > return this.negated;
1508 > }
1509 }
1510
1518
1519 private constructor(private readonly _actual: ContextKeyRegexExpr) {
1520 > // contextkey.ts
1521 > }
1522
1523 public cmp(other: ContextKeyExpression): number {
1529
1530 public equals(other: ContextKeyExpression): boolean {
1531 > if (other.type === this.type) { contextkey.ts
1532 return this._actual.equals(other._actual);
1533 }
1534 > return false; contextkey.ts
1535 > }
1536
1537 public substituteConstants(): ContextKeyExpression | undefined {