@@ -28,8 +28,8 @@ export class LineDecoration {
2828 }
2929
3030 public static equalsArr ( a : LineDecoration [ ] , b : LineDecoration [ ] ) : boolean {
31- let aLen = a . length ;
32- let bLen = b . length ;
31+ const aLen = a . length ;
32+ const bLen = b . length ;
3333 if ( aLen !== bLen ) {
3434 return false ;
3535 }
@@ -49,8 +49,8 @@ export class LineDecoration {
4949 let result : LineDecoration [ ] = [ ] , resultLen = 0 ;
5050
5151 for ( let i = 0 , len = lineDecorations . length ; i < len ; i ++ ) {
52- let d = lineDecorations [ i ] ;
53- let range = d . range ;
52+ const d = lineDecorations [ i ] ;
53+ const range = d . range ;
5454
5555 if ( range . endLineNumber < lineNumber || range . startLineNumber > lineNumber ) {
5656 // Ignore decorations that sit outside this line
@@ -62,8 +62,8 @@ export class LineDecoration {
6262 continue ;
6363 }
6464
65- let startColumn = ( range . startLineNumber === lineNumber ? range . startColumn : minLineColumn ) ;
66- let endColumn = ( range . endLineNumber === lineNumber ? range . endColumn : maxLineColumn ) ;
65+ const startColumn = ( range . startLineNumber === lineNumber ? range . startColumn : minLineColumn ) ;
66+ const endColumn = ( range . endLineNumber === lineNumber ? range . endColumn : maxLineColumn ) ;
6767
6868 result [ resultLen ++ ] = new LineDecoration ( startColumn , endColumn , d . inlineClassName , d . type ) ;
6969 }
@@ -170,14 +170,14 @@ export class LineDecorationsNormalizer {
170170
171171 let result : DecorationSegment [ ] = [ ] ;
172172
173- let stack = new Stack ( ) ;
173+ const stack = new Stack ( ) ;
174174 let nextStartOffset = 0 ;
175175
176176 for ( let i = 0 , len = lineDecorations . length ; i < len ; i ++ ) {
177- let d = lineDecorations [ i ] ;
177+ const d = lineDecorations [ i ] ;
178178 let startColumn = d . startColumn ;
179179 let endColumn = d . endColumn ;
180- let className = d . className ;
180+ const className = d . className ;
181181
182182 // If the position would end up in the middle of a high-low surrogate pair, we move it to before the pair
183183 if ( startColumn > 1 ) {
@@ -194,8 +194,8 @@ export class LineDecorationsNormalizer {
194194 }
195195 }
196196
197- let currentStartOffset = startColumn - 1 ;
198- let currentEndOffset = endColumn - 2 ;
197+ const currentStartOffset = startColumn - 1 ;
198+ const currentEndOffset = endColumn - 2 ;
199199
200200 nextStartOffset = stack . consumeLowerThan ( currentStartOffset , nextStartOffset , result ) ;
201201
0 commit comments