textModel.ts ×5

Frontier kind: Code frontier

unlabeled · c_3d6b406d28aa

442 tests · 40475 LOC · 238 files · introduces 0 tests · 15 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges15 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4890 ranges40475 lines · 238 files · Browse complete extent
All tests (intent)
442 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: 15 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/editor/common/model/textModel.ts 15 introduced LOC · 5 ranges

Open complete file

1080
1081 private _isValidRange(range: Range, validationType: StringOffsetValidationType): boolean {
1082 > const startLineNumber = range.startLineNumber; textModel.ts
1083 > const startColumn = range.startColumn;
1084 > const endLineNumber = range.endLineNumber;
1085 > const endColumn = range.endColumn;
1086 >
1087 > if (!this._isValidPosition(startLineNumber, startColumn, StringOffsetValidationType.Relaxed)) {
1088 return false;
1089 }
1106
1107 return true;
1108 > } textModel.ts
1109
1110 public validateRange(_range: IRange): Range {
1111 > const validationType = StringOffsetValidationType.SurrogatePairs; textModel.ts
1112 > this._assertNotDisposed();
1113 >
1114 > // Avoid object allocation and cover most likely case
1115 > if ((_range instanceof Range) && !(_range instanceof Selection)) {
1116 > if (this._isValidRange(_range, validationType)) {
1117 return _range;
1118 }
1119 > } textModel.ts
1120
1121 const start = this._validatePosition(_range.startLineNumber, _range.startColumn, StringOffsetValidationType.Relaxed);
1158
1159 return new Range(startLineNumber, startColumn, endLineNumber, endColumn);
1160 > } textModel.ts
1161
1162 public modifyPosition(rawPosition: IPosition, offset: number): Position {