@@ -388,34 +388,34 @@ namespace ts {
388
388
389
389
export const enum NodeFlags {
390
390
None = 0 ,
391
- Let = 1 << 0 , // Variable declaration
392
- Const = 1 << 1 , // Variable declaration
393
- NestedNamespace = 1 << 2 , // Namespace declaration
394
- Synthesized = 1 << 3 , // Node was synthesized during transformation
395
- Namespace = 1 << 12 , // Namespace declaration
396
- ExportContext = 1 << 13 , // Export context (initialized by binding)
397
- ContainsThis = 1 << 14 , // Interface contains references to "this"
398
- HasImplicitReturn = 1 << 15 , // If function implicitly returns on one of codepaths (initialized by binding)
399
- HasExplicitReturn = 1 << 16 , // If function has explicit reachable return on one of codepaths (initialized by binding)
400
- GlobalAugmentation = 1 << 17 , // Set if module declaration is an augmentation for the global scope
401
- HasClassExtends = 1 << 18 , // If the file has a non-ambient class with an extends clause in ES5 or lower (initialized by binding)
402
- HasDecorators = 1 << 19 , // If the file has decorators (initialized by binding)
403
- HasParamDecorators = 1 << 20 , // If the file has parameter decorators (initialized by binding)
404
- HasAsyncFunctions = 1 << 21 , // If the file has async functions (initialized by binding)
405
- DisallowInContext = 1 << 22 , // If node was parsed in a context where 'in-expressions' are not allowed
406
- YieldContext = 1 << 23 , // If node was parsed in the 'yield' context created when parsing a generator
407
- DecoratorContext = 1 << 24 , // If node was parsed as part of a decorator
408
- AwaitContext = 1 << 25 , // If node was parsed in the 'await' context created when parsing an async function
409
- ThisNodeHasError = 1 << 26 , // If the parser encountered an error when parsing the code that created this node
410
- JavaScriptFile = 1 << 27 , // If node was parsed in a JavaScript
411
- ThisNodeOrAnySubNodesHasError = 1 << 28 , // If this node or any of its children had an error
412
- HasAggregatedChildData = 1 << 29 , // If we've computed data from children and cached it in this node
413
- HasJsxSpreadAttribute = 1 << 30 ,
391
+ Let = 1 << 0 , // Variable declaration
392
+ Const = 1 << 1 , // Variable declaration
393
+ NestedNamespace = 1 << 2 , // Namespace declaration
394
+ Synthesized = 1 << 3 , // Node was synthesized during transformation
395
+ Namespace = 1 << 4 , // Namespace declaration
396
+ ExportContext = 1 << 5 , // Export context (initialized by binding)
397
+ ContainsThis = 1 << 6 , // Interface contains references to "this"
398
+ HasImplicitReturn = 1 << 7 , // If function implicitly returns on one of codepaths (initialized by binding)
399
+ HasExplicitReturn = 1 << 8 , // If function has explicit reachable return on one of codepaths (initialized by binding)
400
+ GlobalAugmentation = 1 << 9 , // Set if module declaration is an augmentation for the global scope
401
+ HasClassExtends = 1 << 10 , // If the file has a non-ambient class with an extends clause in ES5 or lower (initialized by binding)
402
+ HasDecorators = 1 << 11 , // If the file has decorators (initialized by binding)
403
+ HasParamDecorators = 1 << 12 , // If the file has parameter decorators (initialized by binding)
404
+ HasAsyncFunctions = 1 << 13 , // If the file has async functions (initialized by binding)
405
+ HasJsxSpreadAttributes = 1 << 14 , // If the file as JSX spread attributes (initialized by binding)
406
+ DisallowInContext = 1 << 15 , // If node was parsed in a context where 'in-expressions' are not allowed
407
+ YieldContext = 1 << 16 , // If node was parsed in the 'yield' context created when parsing a generator
408
+ DecoratorContext = 1 << 17 , // If node was parsed as part of a decorator
409
+ AwaitContext = 1 << 18 , // If node was parsed in the 'await' context created when parsing an async function
410
+ ThisNodeHasError = 1 << 19 , // If the parser encountered an error when parsing the code that created this node
411
+ JavaScriptFile = 1 << 20 , // If node was parsed in a JavaScript
412
+ ThisNodeOrAnySubNodesHasError = 1 << 21 , // If this node or any of its children had an error
413
+ HasAggregatedChildData = 1 << 22 , // If we've computed data from children and cached it in this node
414
414
415
415
BlockScoped = Let | Const ,
416
416
417
417
ReachabilityCheckFlags = HasImplicitReturn | HasExplicitReturn ,
418
- EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions | HasJsxSpreadAttribute ,
418
+ EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions | HasJsxSpreadAttributes ,
419
419
ReachabilityAndEmitFlags = ReachabilityCheckFlags | EmitHelperFlags ,
420
420
421
421
// Parsing context flags
0 commit comments