@@ -2831,10 +2831,10 @@ namespace ts {
28312831 ES3 = 0 ,
28322832 ES5 = 1 ,
28332833 ES6 = 2 ,
2834- ES8 = 3 ,
28352834 ES2015 = ES6 ,
2836- ES2017 = ES8 ,
2837- Latest = ES8 ,
2835+ ES2016 = 3 ,
2836+ ES2017 = 4 ,
2837+ Latest = ES2017 ,
28382838 }
28392839
28402840 export const enum LanguageVariant {
@@ -3119,44 +3119,47 @@ namespace ts {
31193119 ContainsTypeScript = 1 << 1 ,
31203120 Jsx = 1 << 2 ,
31213121 ContainsJsx = 1 << 3 ,
3122- ES7 = 1 << 4 ,
3123- ContainsES7 = 1 << 5 ,
3124- ES6 = 1 << 6 ,
3125- ContainsES6 = 1 << 7 ,
3126- DestructuringAssignment = 1 << 8 ,
3127- Generator = 1 << 9 ,
3128- ContainsGenerator = 1 << 10 ,
3122+ ES2017 = 1 << 4 ,
3123+ ContainsES2017 = 1 << 5 ,
3124+ ES2016 = 1 << 6 ,
3125+ ContainsES2016 = 1 << 7 ,
3126+ ES6 = 1 << 8 ,
3127+ ContainsES6 = 1 << 9 ,
3128+ DestructuringAssignment = 1 << 10 ,
3129+ Generator = 1 << 11 ,
3130+ ContainsGenerator = 1 << 12 ,
31293131
31303132 // Markers
31313133 // - Flags used to indicate that a subtree contains a specific transformation.
3132- ContainsDecorators = 1 << 11 ,
3133- ContainsPropertyInitializer = 1 << 12 ,
3134- ContainsLexicalThis = 1 << 13 ,
3135- ContainsCapturedLexicalThis = 1 << 14 ,
3136- ContainsLexicalThisInComputedPropertyName = 1 << 15 ,
3137- ContainsDefaultValueAssignments = 1 << 16 ,
3138- ContainsParameterPropertyAssignments = 1 << 17 ,
3139- ContainsSpreadElementExpression = 1 << 18 ,
3140- ContainsComputedPropertyName = 1 << 19 ,
3141- ContainsBlockScopedBinding = 1 << 20 ,
3142- ContainsBindingPattern = 1 << 21 ,
3143- ContainsYield = 1 << 22 ,
3144- ContainsHoistedDeclarationOrCompletion = 1 << 23 ,
3134+ ContainsDecorators = 1 << 13 ,
3135+ ContainsPropertyInitializer = 1 << 14 ,
3136+ ContainsLexicalThis = 1 << 15 ,
3137+ ContainsCapturedLexicalThis = 1 << 16 ,
3138+ ContainsLexicalThisInComputedPropertyName = 1 << 17 ,
3139+ ContainsDefaultValueAssignments = 1 << 18 ,
3140+ ContainsParameterPropertyAssignments = 1 << 19 ,
3141+ ContainsSpreadElementExpression = 1 << 20 ,
3142+ ContainsComputedPropertyName = 1 << 21 ,
3143+ ContainsBlockScopedBinding = 1 << 22 ,
3144+ ContainsBindingPattern = 1 << 23 ,
3145+ ContainsYield = 1 << 24 ,
3146+ ContainsHoistedDeclarationOrCompletion = 1 << 25 ,
31453147
31463148 HasComputedFlags = 1 << 29 , // Transform flags have been computed.
31473149
31483150 // Assertions
31493151 // - Bitmasks that are used to assert facts about the syntax of a node and its subtree.
31503152 AssertTypeScript = TypeScript | ContainsTypeScript ,
31513153 AssertJsx = Jsx | ContainsJsx ,
3152- AssertES7 = ES7 | ContainsES7 ,
3154+ AssertES2017 = ES2017 | ContainsES2017 ,
3155+ AssertES2016 = ES2016 | ContainsES2016 ,
31533156 AssertES6 = ES6 | ContainsES6 ,
31543157 AssertGenerator = Generator | ContainsGenerator ,
31553158
31563159 // Scope Exclusions
31573160 // - Bitmasks that exclude flags from propagating out of a specific context
31583161 // into the subtree flags of their container.
3159- NodeExcludes = TypeScript | Jsx | ES7 | ES6 | DestructuringAssignment | Generator | HasComputedFlags ,
3162+ NodeExcludes = TypeScript | Jsx | ES2017 | ES2016 | ES6 | DestructuringAssignment | Generator | HasComputedFlags ,
31603163 ArrowFunctionExcludes = NodeExcludes | ContainsDecorators | ContainsDefaultValueAssignments | ContainsLexicalThis | ContainsParameterPropertyAssignments | ContainsBlockScopedBinding | ContainsYield | ContainsHoistedDeclarationOrCompletion ,
31613164 FunctionExcludes = NodeExcludes | ContainsDecorators | ContainsDefaultValueAssignments | ContainsCapturedLexicalThis | ContainsLexicalThis | ContainsParameterPropertyAssignments | ContainsBlockScopedBinding | ContainsYield | ContainsHoistedDeclarationOrCompletion ,
31623165 ConstructorExcludes = NodeExcludes | ContainsDefaultValueAssignments | ContainsLexicalThis | ContainsCapturedLexicalThis | ContainsBlockScopedBinding | ContainsYield | ContainsHoistedDeclarationOrCompletion ,
0 commit comments