Skip to content

Commit 2e16680

Browse files
Re-number enum.
1 parent 009c3ee commit 2e16680

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/compiler/types.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -367,25 +367,25 @@ namespace ts {
367367
None = 0,
368368

369369
// If this node was parsed in a context where 'in-expressions' are not allowed.
370-
DisallowIn = 1 << 1,
370+
DisallowIn = 1 << 0,
371371

372372
// If this node was parsed in the 'yield' context created when parsing a generator.
373-
Yield = 1 << 2,
373+
Yield = 1 << 1,
374374

375375
// If this node was parsed as part of a decorator
376-
Decorator = 1 << 4,
376+
Decorator = 1 << 2,
377377

378378
// If this node was parsed in the 'await' context created when parsing an async function.
379-
Await = 1 << 5,
379+
Await = 1 << 3,
380380

381381
// If the parser encountered an error when parsing the code that created this node. Note
382382
// the parser only sets this directly on the node it creates right after encountering the
383383
// error.
384-
ThisNodeHasError = 1 << 7,
384+
ThisNodeHasError = 1 << 4,
385385

386386
// This node was parsed in a JavaScript file and can be processed differently. For example
387387
// its type can be specified usign a JSDoc comment.
388-
JavaScriptFile = 1 << 8,
388+
JavaScriptFile = 1 << 5,
389389

390390
// Context flags set directly by the parser.
391391
ParserGeneratedFlags = DisallowIn | Yield | Decorator | ThisNodeHasError | Await,
@@ -397,13 +397,10 @@ namespace ts {
397397

398398
// Used during incremental parsing to determine if this node or any of its children had an
399399
// error. Computed only once and then cached.
400-
ThisNodeOrAnySubNodesHasError = 1 << 9,
401-
402-
// Used to know if we've computed whether any children of this node are or contain an 'await' or 'yield' expression.
403-
ThisNodeOrAnySubNodesHasAwaitOrYield = 1 << 10,
400+
ThisNodeOrAnySubNodesHasError = 1 << 6,
404401

405402
// Used to know if we've computed data from children and cached it in this node.
406-
HasAggregatedChildData = 1 << 11
403+
HasAggregatedChildData = 1 << 7
407404
}
408405

409406
/* @internal */

0 commit comments

Comments
 (0)