Fix lint warnings

This commit is contained in:
Ron Buckton
2016-11-18 10:46:24 -08:00
parent 1c0917abef
commit 2f6ac5816d
3 changed files with 5 additions and 5 deletions

View File

@@ -862,7 +862,7 @@ namespace ts {
* synthesized `super` call.
*/
function transformConstructorBody(constructor: ConstructorDeclaration | undefined, node: ClassDeclaration | ClassExpression, extendsClauseElement: ExpressionWithTypeArguments, hasSynthesizedSuper: boolean) {
let statements: Statement[] = [];
const statements: Statement[] = [];
resumeLexicalEnvironment();
let statementOffset = -1;

View File

@@ -80,7 +80,7 @@ namespace ts {
function transformCommonJSModule(node: SourceFile) {
startLexicalEnvironment();
let statements: Statement[] = [];
const statements: Statement[] = [];
const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor);
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, sourceElementVisitor, isStatement, /*optional*/ true));
addRange(statements, visitNodes(node.statements, sourceElementVisitor, isStatement, statementOffset));
@@ -255,7 +255,7 @@ namespace ts {
function transformAsynchronousModuleBody(node: SourceFile) {
startLexicalEnvironment();
let statements: Statement[] = [];
const statements: Statement[] = [];
const statementOffset = addPrologueDirectives(statements, node.statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, sourceElementVisitor);
// Visit each statement of the module body.

View File

@@ -2470,7 +2470,7 @@ namespace ts {
const savedCurrentNamespaceLocalName = currentNamespaceContainerName;
currentNamespaceContainerName = localName;
let statements: Statement[] = [];
const statements: Statement[] = [];
startLexicalEnvironment();
addRange(statements, map(node.members, transformEnumMember));
addRange(statements, endLexicalEnvironment());
@@ -2753,7 +2753,7 @@ namespace ts {
currentNamespace = node;
currentScopeFirstDeclarationsOfName = undefined;
let statements: Statement[] = [];
const statements: Statement[] = [];
startLexicalEnvironment();
let statementsLocation: TextRange;