mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Remove type hints
This commit is contained in:
@@ -25,9 +25,6 @@ export class DOMLineBreaksComputerFactory implements ILineBreaksComputerFactory
|
||||
}
|
||||
|
||||
public createLineBreaksComputer(fontInfo: FontInfo, tabSize: number, wrappingColumn: number, wrappingIndent: WrappingIndent): ILineBreaksComputer {
|
||||
tabSize = tabSize | 0; //@perf
|
||||
wrappingColumn = +wrappingColumn; //@perf
|
||||
|
||||
let requests: string[] = [];
|
||||
let injectedTexts: (LineInjectedText[] | null)[] = [];
|
||||
return {
|
||||
|
||||
@@ -331,13 +331,11 @@ export class ViewLine implements IVisibleLine {
|
||||
if (!this._renderedViewLine) {
|
||||
return null;
|
||||
}
|
||||
startColumn = startColumn | 0; // @perf
|
||||
endColumn = endColumn | 0; // @perf
|
||||
|
||||
startColumn = Math.min(this._renderedViewLine.input.lineContent.length + 1, Math.max(1, startColumn));
|
||||
endColumn = Math.min(this._renderedViewLine.input.lineContent.length + 1, Math.max(1, endColumn));
|
||||
|
||||
const stopRenderingLineAfter = this._renderedViewLine.input.stopRenderingLineAfter | 0; // @perf
|
||||
const stopRenderingLineAfter = this._renderedViewLine.input.stopRenderingLineAfter;
|
||||
let outsideRenderedLine = false;
|
||||
|
||||
if (stopRenderingLineAfter !== -1 && startColumn > stopRenderingLineAfter + 1 && endColumn > stopRenderingLineAfter + 1) {
|
||||
|
||||
@@ -13,7 +13,7 @@ export class Token {
|
||||
public readonly language: string;
|
||||
|
||||
constructor(offset: number, type: string, language: string) {
|
||||
this.offset = offset | 0;// @perf
|
||||
this.offset = offset;
|
||||
this.type = type;
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
@@ -175,9 +175,9 @@ export class OverviewZoneManager {
|
||||
|
||||
public resolveColorZones(): ColorZone[] {
|
||||
const colorZonesInvalid = this._colorZonesInvalid;
|
||||
const lineHeight = Math.floor(this._lineHeight); // @perf
|
||||
const totalHeight = Math.floor(this.getCanvasHeight()); // @perf
|
||||
const outerHeight = Math.floor(this._outerHeight); // @perf
|
||||
const lineHeight = Math.floor(this._lineHeight);
|
||||
const totalHeight = Math.floor(this.getCanvasHeight());
|
||||
const outerHeight = Math.floor(this._outerHeight);
|
||||
const heightRatio = totalHeight / outerHeight;
|
||||
const halfMinimumHeight = Math.floor(Constants.MINIMUM_HEIGHT * this._pixelRatio / 2);
|
||||
|
||||
|
||||
@@ -27,9 +27,6 @@ export class MonospaceLineBreaksComputerFactory implements ILineBreaksComputerFa
|
||||
}
|
||||
|
||||
public createLineBreaksComputer(fontInfo: FontInfo, tabSize: number, wrappingColumn: number, wrappingIndent: WrappingIndent): ILineBreaksComputer {
|
||||
tabSize = tabSize | 0; //@perf
|
||||
wrappingColumn = +wrappingColumn; //@perf
|
||||
|
||||
const requests: string[] = [];
|
||||
const injectedTexts: (LineInjectedText[] | null)[] = [];
|
||||
const previousBreakingData: (ModelLineProjectionData | null)[] = [];
|
||||
@@ -40,7 +37,7 @@ export class MonospaceLineBreaksComputerFactory implements ILineBreaksComputerFa
|
||||
previousBreakingData.push(previousLineBreakData);
|
||||
},
|
||||
finalize: () => {
|
||||
const columnsForFullWidthChar = fontInfo.typicalFullwidthCharacterWidth / fontInfo.typicalHalfwidthCharacterWidth; //@perf
|
||||
const columnsForFullWidthChar = fontInfo.typicalFullwidthCharacterWidth / fontInfo.typicalHalfwidthCharacterWidth;
|
||||
let result: (ModelLineProjectionData | null)[] = [];
|
||||
for (let i = 0, len = requests.length; i < len; i++) {
|
||||
const injectedText = injectedTexts[i];
|
||||
|
||||
@@ -151,7 +151,7 @@ export class PrefixSumComputer {
|
||||
}
|
||||
|
||||
public getIndexOf(sum: number): PrefixSumIndexOfResult {
|
||||
sum = Math.floor(sum); //@perf
|
||||
sum = Math.floor(sum);
|
||||
|
||||
// Compute all sums (to get a fully valid prefixSum)
|
||||
this.getTotalSum();
|
||||
|
||||
Reference in New Issue
Block a user