@@ -44,8 +44,8 @@ namespace ts {
44
44
45
45
/* @internal */
46
46
export const enum Comparison {
47
- LessThan = - 1 ,
48
- EqualTo = 0 ,
47
+ LessThan = - 1 ,
48
+ EqualTo = 0 ,
49
49
GreaterThan = 1
50
50
}
51
51
@@ -469,24 +469,24 @@ namespace ts {
469
469
}
470
470
471
471
export const enum NodeFlags {
472
- None = 0 ,
473
- Let = 1 << 0 , // Variable declaration
474
- Const = 1 << 1 , // Variable declaration
475
- NestedNamespace = 1 << 2 , // Namespace declaration
476
- Synthesized = 1 << 3 , // Node was synthesized during transformation
477
- Namespace = 1 << 4 , // Namespace declaration
478
- ExportContext = 1 << 5 , // Export context (initialized by binding)
479
- ContainsThis = 1 << 6 , // Interface contains references to "this"
480
- HasImplicitReturn = 1 << 7 , // If function implicitly returns on one of codepaths (initialized by binding)
481
- HasExplicitReturn = 1 << 8 , // If function has explicit reachable return on one of codepaths (initialized by binding)
472
+ None = 0 ,
473
+ Let = 1 << 0 , // Variable declaration
474
+ Const = 1 << 1 , // Variable declaration
475
+ NestedNamespace = 1 << 2 , // Namespace declaration
476
+ Synthesized = 1 << 3 , // Node was synthesized during transformation
477
+ Namespace = 1 << 4 , // Namespace declaration
478
+ ExportContext = 1 << 5 , // Export context (initialized by binding)
479
+ ContainsThis = 1 << 6 , // Interface contains references to "this"
480
+ HasImplicitReturn = 1 << 7 , // If function implicitly returns on one of codepaths (initialized by binding)
481
+ HasExplicitReturn = 1 << 8 , // If function has explicit reachable return on one of codepaths (initialized by binding)
482
482
GlobalAugmentation = 1 << 9 , // Set if module declaration is an augmentation for the global scope
483
- HasAsyncFunctions = 1 << 10 , // If the file has async functions (initialized by binding)
484
- DisallowInContext = 1 << 11 , // If node was parsed in a context where 'in-expressions' are not allowed
485
- YieldContext = 1 << 12 , // If node was parsed in the 'yield' context created when parsing a generator
486
- DecoratorContext = 1 << 13 , // If node was parsed as part of a decorator
487
- AwaitContext = 1 << 14 , // If node was parsed in the 'await' context created when parsing an async function
488
- ThisNodeHasError = 1 << 15 , // If the parser encountered an error when parsing the code that created this node
489
- JavaScriptFile = 1 << 16 , // If node was parsed in a JavaScript
483
+ HasAsyncFunctions = 1 << 10 , // If the file has async functions (initialized by binding)
484
+ DisallowInContext = 1 << 11 , // If node was parsed in a context where 'in-expressions' are not allowed
485
+ YieldContext = 1 << 12 , // If node was parsed in the 'yield' context created when parsing a generator
486
+ DecoratorContext = 1 << 13 , // If node was parsed as part of a decorator
487
+ AwaitContext = 1 << 14 , // If node was parsed in the 'await' context created when parsing an async function
488
+ ThisNodeHasError = 1 << 15 , // If the parser encountered an error when parsing the code that created this node
489
+ JavaScriptFile = 1 << 16 , // If node was parsed in a JavaScript
490
490
ThisNodeOrAnySubNodesHasError = 1 << 17 , // If this node or any of its children had an error
491
491
HasAggregatedChildData = 1 << 18 , // If we've computed data from children and cached it in this node
492
492
@@ -500,10 +500,10 @@ namespace ts {
500
500
// we guarantee that users won't have to pay the price of walking the tree if a dynamic import isn't used.
501
501
/* @internal */
502
502
PossiblyContainsDynamicImport = 1 << 19 ,
503
- JSDoc = 1 << 20 , // If node was parsed inside jsdoc
504
- /* @internal */ Ambient = 1 << 21 , // If node was inside an ambient context -- a declaration file, or inside something with the `declare` modifier.
503
+ JSDoc = 1 << 20 , // If node was parsed inside jsdoc
504
+ /* @internal */ Ambient = 1 << 21 , // If node was inside an ambient context -- a declaration file, or inside something with the `declare` modifier.
505
505
/* @internal */ InWithStatement = 1 << 22 , // If any ancestor of node was the `statement` of a WithStatement (not the `expression`)
506
- JsonFile = 1 << 23 , // If node was parsed in a Json
506
+ JsonFile = 1 << 23 , // If node was parsed in a Json
507
507
508
508
BlockScoped = Let | Const ,
509
509
@@ -518,19 +518,19 @@ namespace ts {
518
518
}
519
519
520
520
export const enum ModifierFlags {
521
- None = 0 ,
522
- Export = 1 << 0 , // Declarations
523
- Ambient = 1 << 1 , // Declarations
524
- Public = 1 << 2 , // Property/Method
525
- Private = 1 << 3 , // Property/Method
526
- Protected = 1 << 4 , // Property/Method
527
- Static = 1 << 5 , // Property/Method
528
- Readonly = 1 << 6 , // Property/Method
529
- Abstract = 1 << 7 , // Class/Method/ConstructSignature
530
- Async = 1 << 8 , // Property/Method/Function
531
- Default = 1 << 9 , // Function/Class (export default declaration)
532
- Const = 1 << 11 , // Variable declaration
533
- HasComputedFlags = 1 << 29 , // Modifier flags have been computed
521
+ None = 0 ,
522
+ Export = 1 << 0 , // Declarations
523
+ Ambient = 1 << 1 , // Declarations
524
+ Public = 1 << 2 , // Property/Method
525
+ Private = 1 << 3 , // Property/Method
526
+ Protected = 1 << 4 , // Property/Method
527
+ Static = 1 << 5 , // Property/Method
528
+ Readonly = 1 << 6 , // Property/Method
529
+ Abstract = 1 << 7 , // Class/Method/ConstructSignature
530
+ Async = 1 << 8 , // Property/Method/Function
531
+ Default = 1 << 9 , // Function/Class (export default declaration)
532
+ Const = 1 << 11 , // Variable declaration
533
+ HasComputedFlags = 1 << 29 , // Modifier flags have been computed
534
534
535
535
AccessibilityModifier = Public | Private | Protected ,
536
536
// Accessibility modifiers and 'readonly' can be attached to a parameter in a constructor to make it a property.
@@ -1057,16 +1057,16 @@ namespace ts {
1057
1057
1058
1058
export interface KeywordTypeNode extends TypeNode {
1059
1059
kind : SyntaxKind . AnyKeyword
1060
- | SyntaxKind . NumberKeyword
1061
- | SyntaxKind . ObjectKeyword
1062
- | SyntaxKind . BooleanKeyword
1063
- | SyntaxKind . StringKeyword
1064
- | SyntaxKind . SymbolKeyword
1065
- | SyntaxKind . ThisKeyword
1066
- | SyntaxKind . VoidKeyword
1067
- | SyntaxKind . UndefinedKeyword
1068
- | SyntaxKind . NullKeyword
1069
- | SyntaxKind . NeverKeyword ;
1060
+ | SyntaxKind . NumberKeyword
1061
+ | SyntaxKind . ObjectKeyword
1062
+ | SyntaxKind . BooleanKeyword
1063
+ | SyntaxKind . StringKeyword
1064
+ | SyntaxKind . SymbolKeyword
1065
+ | SyntaxKind . ThisKeyword
1066
+ | SyntaxKind . VoidKeyword
1067
+ | SyntaxKind . UndefinedKeyword
1068
+ | SyntaxKind . NullKeyword
1069
+ | SyntaxKind . NeverKeyword ;
1070
1070
}
1071
1071
1072
1072
export interface ImportTypeNode extends NodeWithTypeArguments {
@@ -2402,19 +2402,19 @@ namespace ts {
2402
2402
}
2403
2403
2404
2404
export const enum FlowFlags {
2405
- Unreachable = 1 << 0 , // Unreachable code
2406
- Start = 1 << 1 , // Start of flow graph
2407
- BranchLabel = 1 << 2 , // Non-looping junction
2408
- LoopLabel = 1 << 3 , // Looping junction
2409
- Assignment = 1 << 4 , // Assignment
2410
- TrueCondition = 1 << 5 , // Condition known to be true
2405
+ Unreachable = 1 << 0 , // Unreachable code
2406
+ Start = 1 << 1 , // Start of flow graph
2407
+ BranchLabel = 1 << 2 , // Non-looping junction
2408
+ LoopLabel = 1 << 3 , // Looping junction
2409
+ Assignment = 1 << 4 , // Assignment
2410
+ TrueCondition = 1 << 5 , // Condition known to be true
2411
2411
FalseCondition = 1 << 6 , // Condition known to be false
2412
- SwitchClause = 1 << 7 , // Switch statement clause
2413
- ArrayMutation = 1 << 8 , // Potential array mutation
2414
- Referenced = 1 << 9 , // Referenced as antecedent once
2415
- Shared = 1 << 10 , // Referenced as antecedent more than once
2416
- PreFinally = 1 << 11 , // Injected edge that links pre-finally label and pre-try flow
2417
- AfterFinally = 1 << 12 , // Injected edge that links post-finally flow with the rest of the graph
2412
+ SwitchClause = 1 << 7 , // Switch statement clause
2413
+ ArrayMutation = 1 << 8 , // Potential array mutation
2414
+ Referenced = 1 << 9 , // Referenced as antecedent once
2415
+ Shared = 1 << 10 , // Referenced as antecedent more than once
2416
+ PreFinally = 1 << 11 , // Injected edge that links pre-finally label and pre-try flow
2417
+ AfterFinally = 1 << 12 , // Injected edge that links post-finally flow with the rest of the graph
2418
2418
Label = BranchLabel | LoopLabel ,
2419
2419
Condition = TrueCondition | FalseCondition
2420
2420
}
0 commit comments