Skip to content

Commit 988bf1f

Browse files
committed
Rename TransformFlags.Experimental -> ESNext
1 parent 39b9163 commit 988bf1f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/compiler/binder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3160,8 +3160,8 @@ namespace ts {
31603160

31613161
if (subtreeFlags & TransformFlags.ContainsSpreadExpression) {
31623162
// If an ObjectLiteralExpression contains a spread element, then it
3163-
// is an ES experimental node.
3164-
transformFlags |= TransformFlags.AssertExperimental;
3163+
// is an ES next node.
3164+
transformFlags |= TransformFlags.AssertESNext;
31653165
}
31663166

31673167
break;

src/compiler/transformers/esnext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ namespace ts {
1111
}
1212

1313
function visitor(node: Node): VisitResult<Node> {
14-
if (node.transformFlags & TransformFlags.Experimental) {
14+
if (node.transformFlags & TransformFlags.ESNext) {
1515
return visitorWorker(node);
1616
}
17-
else if (node.transformFlags & TransformFlags.ContainsExperimental) {
17+
else if (node.transformFlags & TransformFlags.ContainsESNext) {
1818
return visitEachChild(node, visitor, context);
1919
}
2020
else {

src/compiler/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,8 +3463,8 @@ namespace ts {
34633463
ContainsTypeScript = 1 << 1,
34643464
Jsx = 1 << 2,
34653465
ContainsJsx = 1 << 3,
3466-
Experimental = 1 << 4,
3467-
ContainsExperimental = 1 << 5,
3466+
ESNext = 1 << 4,
3467+
ContainsESNext = 1 << 5,
34683468
ES2017 = 1 << 6,
34693469
ContainsES2017 = 1 << 7,
34703470
ES2016 = 1 << 8,
@@ -3498,7 +3498,7 @@ namespace ts {
34983498
// - Bitmasks that are used to assert facts about the syntax of a node and its subtree.
34993499
AssertTypeScript = TypeScript | ContainsTypeScript,
35003500
AssertJsx = Jsx | ContainsJsx,
3501-
AssertExperimental = Experimental | ContainsExperimental,
3501+
AssertESNext = ESNext | ContainsESNext,
35023502
AssertES2017 = ES2017 | ContainsES2017,
35033503
AssertES2016 = ES2016 | ContainsES2016,
35043504
AssertES2015 = ES2015 | ContainsES2015,
@@ -3508,7 +3508,7 @@ namespace ts {
35083508
// Scope Exclusions
35093509
// - Bitmasks that exclude flags from propagating out of a specific context
35103510
// into the subtree flags of their container.
3511-
NodeExcludes = TypeScript | Jsx | Experimental | ES2017 | ES2016 | ES2015 | DestructuringAssignment | Generator | HasComputedFlags,
3511+
NodeExcludes = TypeScript | Jsx | ESNext | ES2017 | ES2016 | ES2015 | DestructuringAssignment | Generator | HasComputedFlags,
35123512
ArrowFunctionExcludes = NodeExcludes | ContainsDecorators | ContainsDefaultValueAssignments | ContainsLexicalThis | ContainsParameterPropertyAssignments | ContainsBlockScopedBinding | ContainsYield | ContainsHoistedDeclarationOrCompletion,
35133513
FunctionExcludes = NodeExcludes | ContainsDecorators | ContainsDefaultValueAssignments | ContainsCapturedLexicalThis | ContainsLexicalThis | ContainsParameterPropertyAssignments | ContainsBlockScopedBinding | ContainsYield | ContainsHoistedDeclarationOrCompletion,
35143514
ConstructorExcludes = NodeExcludes | ContainsDefaultValueAssignments | ContainsLexicalThis | ContainsCapturedLexicalThis | ContainsBlockScopedBinding | ContainsYield | ContainsHoistedDeclarationOrCompletion,

0 commit comments

Comments
 (0)