abstractSyntaxTokenBackend.ts ×3

Frontier kind: Code frontier

unlabeled · c_67a4999559c8

51 tests · 41211 LOC · 239 files · introduces 0 tests · 23 LOC · 5 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges23 lines · 5 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5118 ranges41211 lines · 239 files · Browse complete extent
All tests (intent)
51 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.

5 files ranked by introduced lines: 23 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.ts 10 introduced LOC · 3 ranges

Open complete file

45
46 public attachView(): IAttachedView {
47 > const view = new AttachedViewImpl((state) => { abstractSyntaxTokenBackend.ts
48 this._onDidChangeVisibleRanges.fire({ view, state });
50 > this._views.add(view);
51 > this._viewsChanged.trigger(undefined);
52 > return view;
53 > }
54
55 public detachView(view: IAttachedView): void {
92
93 constructor(
94 > private readonly handleStateChange: (state: AttachedViewState) => void abstractSyntaxTokenBackend.ts
95 > ) {
96 > this._state = observableValueOpts<AttachedViewState | undefined>({ owner: this, equalsFn: equalsIfDefinedC((a, b) => a.equals(b)) }, undefined);
97 > }
98
99 setVisibleLines(visibleLines: { startLineNumber: number; endLineNumber: number }[], stabilized: boolean): void {
src/vs/editor/common/model/textModel.ts 7 introduced LOC · 1 range

Open complete file

606
607 public onBeforeAttached(): model.IAttachedView {
608 > this._attachedEditorCount++; textModel.ts
609 > if (this._attachedEditorCount === 1) {
610 > this._tokenizationTextModelPart.handleDidChangeAttached();
611 > this._onDidChangeAttached.fire(undefined);
612 > }
613 > return this._attachedViews.attachView();
614 > }
615
616 public onBeforeDetached(view: model.IAttachedView): void {
src/vs/base/common/equals.ts 2 introduced LOC · 2 ranges

Open complete file

173 */
174 export function equalsIfDefinedC<T>(equals: EqualityComparer<T>): EqualityComparer<T | undefined | null> {
175 > return (v1, v2) => { equals.ts
176 if (v1 === undefined || v1 === null || v2 === undefined || v2 === null) {
177 return v2 === v1;
179 return equals(v1, v2);
180 };
181 > } equals.ts
182
183 /**
src/vs/editor/common/model/tokens/tokenizationTextModelPart.ts 2 introduced LOC · 1 range

Open complete file

152
153 public handleDidChangeAttached(): void {
154 > this.tokens.get().handleDidChangeAttached(); tokenizationTextModelPart.ts
155 > }
156
157 /**
src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.ts 2 introduced LOC · 1 range

Open complete file

184
185 public handleDidChangeAttached() {
186 > this._defaultBackgroundTokenizer?.handleChanges(); tokenizerSyntaxTokenBackend.ts
187 > }
188
189 public handleDidChangeContent(e: IModelContentChangedEvent): void {