Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9d3ad54

Browse filesBrowse files
committed
Reverted unintentional formatting changes
1 parent a143963 commit 9d3ad54
Copy full SHA for 9d3ad54

1 file changed

+57-57Lines changed: 57 additions & 57 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/types.ts‎

Copy file name to clipboardExpand all lines: src/compiler/types.ts
+57-57Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ namespace ts {
4444

4545
/* @internal */
4646
export const enum Comparison {
47-
LessThan = -1,
48-
EqualTo = 0,
47+
LessThan = -1,
48+
EqualTo = 0,
4949
GreaterThan = 1
5050
}
5151

@@ -469,24 +469,24 @@ namespace ts {
469469
}
470470

471471
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)
482482
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
490490
ThisNodeOrAnySubNodesHasError = 1 << 17, // If this node or any of its children had an error
491491
HasAggregatedChildData = 1 << 18, // If we've computed data from children and cached it in this node
492492

@@ -500,10 +500,10 @@ namespace ts {
500500
// we guarantee that users won't have to pay the price of walking the tree if a dynamic import isn't used.
501501
/* @internal */
502502
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.
505505
/* @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
507507

508508
BlockScoped = Let | Const,
509509

@@ -518,19 +518,19 @@ namespace ts {
518518
}
519519

520520
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
534534

535535
AccessibilityModifier = Public | Private | Protected,
536536
// Accessibility modifiers and 'readonly' can be attached to a parameter in a constructor to make it a property.
@@ -1057,16 +1057,16 @@ namespace ts {
10571057

10581058
export interface KeywordTypeNode extends TypeNode {
10591059
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;
10701070
}
10711071

10721072
export interface ImportTypeNode extends NodeWithTypeArguments {
@@ -2402,19 +2402,19 @@ namespace ts {
24022402
}
24032403

24042404
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
24112411
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
24182418
Label = BranchLabel | LoopLabel,
24192419
Condition = TrueCondition | FalseCondition
24202420
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.