private _assertIndex(index: number, arr: number[]): void {
throw new Error(`Illegal index`);
}
public getElements(): Int32Array | number[] | string[] {
Frontier kind: Code frontier
unlabeled · c_4367d79f1941
59 tests · 8144 LOC · 43 files · introduces 0 tests · 49 LOC · 2 files
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.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
2 files ranked by introduced lines: 49 introduced LOC across 16 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
private _assertIndex(index: number, arr: number[]): void {
throw new Error(`Illegal index`);
}
public getElements(): Int32Array | number[] | string[] {
public getStartLineNumber(i: number): number {
// the start line number of the element after the last element
// is the end line number of the last element
return this.getEndLineNumber(i - 1);
}
return this._lineNumbers[i];
}
public getEndLineNumber(i: number): number {
// the end line number of the element before the first element
// is the start line number of the first element
return this.getStartLineNumber(i + 1);
}
if (this._charCodes[i] === CharCode.LineFeed) {
return this._lineNumbers[i] + 1;
}
}
public getStartColumn(i: number): number {
// the start column of the element after the last element
// is the end column of the last element
return this.getEndColumn(i - 1);
}
return this._columns[i];
}
public getEndColumn(i: number): number {
// the end column of the element before the first element
// is the start column of the first element
return this.getStartColumn(i + 1);
}
if (this._charCodes[i] === CharCode.LineFeed) {
return 1;
}
}
}
public static createFromDiffChange(diffChange: IDiffChange, originalCharSequence: CharSequence, modifiedCharSequence: CharSequence): CharChange {
const originalStartLineNumber = originalCharSequence.getStartLineNumber(diffChange.originalStart);
legacyLinesDiffComputer.ts
const originalStartColumn = originalCharSequence.getStartColumn(diffChange.originalStart);
const originalEndLineNumber = originalCharSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1);
const originalEndColumn = originalCharSequence.getEndColumn(diffChange.originalStart + diffChange.originalLength - 1);
const modifiedStartLineNumber = modifiedCharSequence.getStartLineNumber(diffChange.modifiedStart);
const modifiedStartColumn = modifiedCharSequence.getStartColumn(diffChange.modifiedStart);
const modifiedEndLineNumber = modifiedCharSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1);
const modifiedEndColumn = modifiedCharSequence.getEndColumn(diffChange.modifiedStart + diffChange.modifiedLength - 1);
return new CharChange(
originalStartLineNumber, originalStartColumn, originalEndLineNumber, originalEndColumn,
modifiedStartLineNumber, modifiedStartColumn, modifiedEndLineNumber, modifiedEndColumn,
);
}
}
if (originalCharSequence.getElements().length > 0 && modifiedCharSequence.getElements().length > 0) {
let rawChanges = computeDiff(originalCharSequence, modifiedCharSequence, continueCharDiff, true).changes;
legacyLinesDiffComputer.ts
if (shouldPostProcessCharChanges) {
rawChanges = postProcessCharChanges(rawChanges);
}
charChanges = [];
for (let i = 0, length = rawChanges.length; i < length; i++) {
charChanges.push(CharChange.createFromDiffChange(rawChanges[i], originalCharSequence, modifiedCharSequence));
}
}
}
return [[], elements, false];
}
return [[], new Int32Array(elements), false];
}