We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1430a0b commit eb8150cCopy full SHA for eb8150c
1 file changed
src/services/formatting/tokenRange.ts
@@ -27,7 +27,7 @@ module ts.formatting {
27
28
constructor(from: SyntaxKind, to: SyntaxKind, except: SyntaxKind[]) {
29
this.tokens = [];
30
- for (var token = from; token <= to; token++) {
+ for (let token = from; token <= to; token++) {
31
if (except.indexOf(token) < 0) {
32
this.tokens.push(token);
33
}
@@ -74,8 +74,8 @@ module ts.formatting {
74
75
export class TokenAllAccess implements ITokenAccess {
76
public GetTokens(): SyntaxKind[] {
77
- var result: SyntaxKind[] = [];
78
- for (var token = SyntaxKind.FirstToken; token <= SyntaxKind.LastToken; token++) {
+ let result: SyntaxKind[] = [];
+ for (let token = SyntaxKind.FirstToken; token <= SyntaxKind.LastToken; token++) {
79
result.push(token);
80
81
return result;
0 commit comments