autorunImpl.ts ×5

Frontier kind: Code frontier

unlabeled · c_d57acb4781d9

430 tests · 6646 LOC · 59 files · introduces 0 tests · 17 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges17 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
985 ranges6646 lines · 59 files · Browse complete extent
All tests (intent)
430 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: 17 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/base/common/observableInternal/reactions/autorunImpl.ts 17 introduced LOC · 5 ranges

Open complete file

165 this._iteration++;
166 if (this._state !== AutorunState.upToDate) {
167 > this._run(); // Warning: indirect external call! autorunImpl.ts
168 > }
169 } while (this._state !== AutorunState.upToDate);
170 }
184
185 public handleChange<T, TChange>(observable: IObservableWithChange<T, TChange>, change: TChange): void {
186 > if (this._isDependency(observable)) { autorunImpl.ts
187 > getLogger()?.handleAutorunDependencyChanged(this, observable, change);
188 > try {
189 > // Warning: external call!
190 > const shouldReact = this._changeTracker ? this._changeTracker.handleChange({
191 changedObservable: observable,
192 change,
193 // eslint-disable-next-line local/code-no-any-casts
194 didChange: (o): this is any => o === observable as any,
195 > }, this._changeSummary!) : true; autorunImpl.ts
196 > if (shouldReact) {
197 > this._checkIterations();
198 > this._state = AutorunState.stale;
199 > }
200 > } catch (e) {
201 onBugIndicatingError(e);
202 }
203 > } autorunImpl.ts
204 > }
205
206 private _isDependency(observable: IObservableWithChange<any, any>): boolean {
207 > return this._dependencies.has(observable) && !this._dependenciesToBeRemoved.has(observable); autorunImpl.ts
208 > }
209
210 // IReader implementation