@@ -1172,7 +1172,7 @@ var ts;
11721172(function (ts) {
11731173 /** The version of the TypeScript compiler release */
11741174 ts.version = "2.1.5";
1175- ts.version_plus = "2.1.19 ";
1175+ ts.version_plus = "2.1.20 ";
11761176})(ts || (ts = {}));
11771177/* @internal */
11781178(function (ts) {
@@ -57990,18 +57990,17 @@ var ts;
5799057990 }
5799157991 }
5799257992 function visitFile(sourceFile) {
57993- var hasDecorators = !!(sourceFile.transformFlags & 4096 /* ContainsDecorators */);
5799457993 var statements = sourceFile.statements;
5799557994 var length = statements.length;
5799657995 for (var i = 0; i < length; i++) {
5799757996 var statement = statements[i];
5799857997 if (ts.hasModifier(statement, 2 /* Ambient */)) {
5799957998 continue;
5800057999 }
58001- visitStatement(statements[i], hasDecorators );
58000+ visitStatement(statements[i]);
5800258001 }
5800358002 }
58004- function visitStatement(statement, hasDecorators ) {
58003+ function visitStatement(statement) {
5800558004 if (!statement) {
5800658005 return;
5800758006 }
@@ -58013,7 +58012,7 @@ var ts;
5801358012 case 226 /* ClassDeclaration */:
5801458013 checkInheriting(statement);
5801558014 visitStaticMember(statement);
58016- if (hasDecorators ) {
58015+ if (statement.transformFlags & 4096 /* ContainsDecorators */ ) {
5801758016 visitClassDecorators(statement);
5801858017 }
5801958018 break;
@@ -58025,7 +58024,7 @@ var ts;
5802558024 checkDependencyAtLocation(importDeclaration.moduleReference);
5802658025 break;
5802758026 case 230 /* ModuleDeclaration */:
58028- visitModule(statement, hasDecorators );
58027+ visitModule(statement);
5802958028 break;
5803058029 case 204 /* Block */:
5803158030 visitBlock(statement);
@@ -58100,7 +58099,7 @@ var ts;
5810058099 break;
5810158100 }
5810258101 }
58103- function visitModule(node, hasDecorators ) {
58102+ function visitModule(node) {
5810458103 if (node.body.kind === 230 /* ModuleDeclaration */) {
5810558104 visitModule(node.body);
5810658105 return;
@@ -58111,7 +58110,7 @@ var ts;
5811158110 if (ts.hasModifier(statement, 2 /* Ambient */)) {
5811258111 continue;
5811358112 }
58114- visitStatement(statement, hasDecorators );
58113+ visitStatement(statement);
5811558114 }
5811658115 }
5811758116 }
0 commit comments