Use 'let' in the services layer.

This commit is contained in:
Cyrus Najmabadi
2015-03-13 14:12:39 -07:00
parent 1430a0bace
commit eb8150cbe2

View File

@@ -27,7 +27,7 @@ module ts.formatting {
constructor(from: SyntaxKind, to: SyntaxKind, except: SyntaxKind[]) {
this.tokens = [];
for (var token = from; token <= to; token++) {
for (let token = from; token <= to; token++) {
if (except.indexOf(token) < 0) {
this.tokens.push(token);
}
@@ -74,8 +74,8 @@ module ts.formatting {
export class TokenAllAccess implements ITokenAccess {
public GetTokens(): SyntaxKind[] {
var result: SyntaxKind[] = [];
for (var token = SyntaxKind.FirstToken; token <= SyntaxKind.LastToken; token++) {
let result: SyntaxKind[] = [];
for (let token = SyntaxKind.FirstToken; token <= SyntaxKind.LastToken; token++) {
result.push(token);
}
return result;