8000 Update name of variable declaration member. · Nemo157/TypeScript@aaaa078 · GitHub
[go: up one dir, main page]

Skip to content

Commit aaaa078

Browse files
Update name of variable declaration member.
Conflicts: src/services/syntax/SyntaxGenerator.js.map
1 parent f68e006 commit aaaa078

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

src/services/syntax/SyntaxGenerator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/syntax/SyntaxGenerator.js.map

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/syntax/prettyPrinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ module TypeScript.PrettyPrinter {
364364
}
365365

366366
public visitVariableDeclaration(node: VariableDeclarationSyntax): void {
367-
this.appendToken(node.varKeyword);
367+
this.appendToken(node.varConstOrLetKeyword);
368368
this.ensureSpace();
369369
this.appendSeparatorSpaceList(node.variableDeclarators);
370370
}

src/services/syntax/syntaxInterfaces.generated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ module TypeScript {
542542
export interface AwaitExpressionConstructor { new (data: number, awaitKeyword: ISyntaxToken, expression: IExpressionSyntax): AwaitExpressionSyntax }
543543

544544
export interface VariableDeclarationSyntax extends ISyntaxNode {
545-
varKeyword: ISyntaxToken;
545+
varConstOrLetKeyword: ISyntaxToken;
546546
variableDeclarators: ISeparatedSyntaxList<VariableDeclaratorSyntax>;
547547
}
548-
export interface VariableDeclarationConstructor { new (data: number, varKeyword: ISyntaxToken, variableDeclarators: ISeparatedSyntaxList<VariableDeclaratorSyntax>): VariableDeclarationSyntax }
548+
export interface VariableDeclarationConstructor { new (data: number, varConstOrLetKeyword: ISyntaxToken, variableDeclarators: ISeparatedSyntaxList<VariableDeclaratorSyntax>): VariableDeclarationSyntax }
549549

550550
export interface VariableDeclaratorSyntax extends ISyntaxNode {
551551
propertyName: IPropertyNameSyntax;

src/services/syntax/syntaxNodes.concrete.generated.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,18 +1477,18 @@ module TypeScript {
14771477
}
14781478
}
14791479

1480-
export var VariableDeclarationSyntax: VariableDeclarationConstructor = <any>function(data: number, varKeyword: ISyntaxToken, variableDeclarators: ISeparatedSyntaxList<VariableDeclaratorSyntax>) {
1480+
export var VariableDeclarationSyntax: VariableDeclarationConstructor = <any>function(data: number, varConstOrLetKeyword: ISyntaxToken, variableDeclarators: ISeparatedSyntaxList<VariableDeclaratorSyntax>) {
14811481
if (data) { this.__data = data; }
1482-
this.varKeyword = varKeyword,
1482+
this.varConstOrLetKeyword = varConstOrLetKeyword,
14831483
this.variableDeclarators = variableDeclarators,
1484-
varKeyword.parent = this,
1484+
varConstOrLetKeyword.parent = this,
14851485
variableDeclarators.parent = this;
14861486
};
14871487
VariableDeclarationSyntax.prototype.kind = SyntaxKind.VariableDeclaration;
14881488
VariableDeclarationSyntax.prototype.childCount = 2;
14891489
VariableDeclarationSyntax.prototype.childAt = function(index: number): ISyntaxElement {
14901490
switch (index) {
1491-
case 0: return this.varKeyword;
1491+
case 0: return this.varConstOrLetKeyword;
14921492
case 1: return this.variableDeclarators;
14931493
}
14941494
}

src/services/syntax/syntaxTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ module TypeScript {
277277
}
278278

279279
public visitVariableDeclaration(node: VariableDeclarationSyntax): void {
280-
if (this.checkForAtLeastOneElement(node.variableDeclarators, node.varKeyword, getLocalizedText(DiagnosticCode.variable_declaration, undefined)) ||
280+
if (this.checkForAtLeastOneElement(node.variableDeclarators, node.varConstOrLetKeyword, getLocalizedText(DiagnosticCode.variable_declaration, undefined)) ||
281281
this.checkForTrailingComma(node.variableDeclarators)) {
282282
return;
283283
}
@@ -1473,7 +1473,7 @@ module TypeScript {
14731473
public visitVariableStatement(node: VariableStatementSyntax): void {
14741474
if (this.checkForDisallowedDeclareModifier(node.modifiers) ||
14751475
this.checkForDisallowedModifiers(node.modifiers) ||
1476-
this.checkForRequiredDeclareModifier(node, node.variableDeclaration.varKeyword, node.modifiers) ||
1476+
this.checkForRequiredDeclareModifier(node, node.variableDeclaration.varConstOrLetKeyword, node.modifiers) ||
14771477
this.checkModuleElementModifiers(node.modifiers) ||
14781478
this.checkForDisallowedAsyncModifier(node.modifiers)) {
14791479

src/services/syntax/syntaxWalker.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ module TypeScript {
489489
}
490490

491491
public visitVariableDeclaration(node: VariableDeclarationSyntax): void {
492-
this.visitToken(node.varKeyword);
492+
this.visitToken(node.varConstOrLetKeyword);
493493
this.visitList(node.variableDeclarators);
494494
}
495495

0 commit comments

Comments
 (0)
0