mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Renumbering NodeFlags to start at 1 << 0
This commit is contained in:
@@ -371,32 +371,32 @@ namespace ts {
|
||||
|
||||
export const enum NodeFlags {
|
||||
None = 0,
|
||||
Export = 1 << 1, // Declarations
|
||||
Ambient = 1 << 2, // Declarations
|
||||
Public = 1 << 3, // Property/Method
|
||||
Private = 1 << 4, // Property/Method
|
||||
Protected = 1 << 5, // Property/Method
|
||||
Static = 1 << 6, // Property/Method
|
||||
Readonly = 1 << 7, // Property/Method
|
||||
Abstract = 1 << 8, // Class/Method/ConstructSignature
|
||||
Async = 1 << 9, // Property/Method/Function
|
||||
Default = 1 << 10, // Function/Class (export default declaration)
|
||||
MultiLine = 1 << 11, // Multi-line array or object literal
|
||||
Synthetic = 1 << 12, // Synthetic node (for full fidelity)
|
||||
DeclarationFile = 1 << 13, // Node is a .d.ts file
|
||||
Let = 1 << 14, // Variable declaration
|
||||
Const = 1 << 15, // Variable declaration
|
||||
OctalLiteral = 1 << 16, // Octal numeric literal
|
||||
Namespace = 1 << 17, // Namespace declaration
|
||||
ExportContext = 1 << 18, // Export context (initialized by binding)
|
||||
ContainsThis = 1 << 19, // Interface contains references to "this"
|
||||
HasImplicitReturn = 1 << 20, // If function implicitly returns on one of codepaths (initialized by binding)
|
||||
HasExplicitReturn = 1 << 21, // If function has explicit reachable return on one of codepaths (initialized by binding)
|
||||
GlobalAugmentation = 1 << 22, // Set if module declaration is an augmentation for the global scope
|
||||
HasClassExtends = 1 << 23, // If the file has a non-ambient class with an extends clause in ES5 or lower (initialized by binding)
|
||||
HasDecorators = 1 << 24, // If the file has decorators (initialized by binding)
|
||||
HasParamDecorators = 1 << 25, // If the file has parameter decorators (initialized by binding)
|
||||
HasAsyncFunctions = 1 << 26, // If the file has async functions (initialized by binding)
|
||||
Export = 1 << 0, // Declarations
|
||||
Ambient = 1 << 1, // Declarations
|
||||
Public = 1 << 2, // Property/Method
|
||||
Private = 1 << 3, // Property/Method
|
||||
Protected = 1 << 4, // Property/Method
|
||||
Static = 1 << 5, // Property/Method
|
||||
Readonly = 1 << 6, // Property/Method
|
||||
Abstract = 1 << 7, // Class/Method/ConstructSignature
|
||||
Async = 1 << 8, // Property/Method/Function
|
||||
Default = 1 << 9, // Function/Class (export default declaration)
|
||||
MultiLine = 1 << 10, // Multi-line array or object literal
|
||||
Synthetic = 1 << 11, // Synthetic node (for full fidelity)
|
||||
DeclarationFile = 1 << 12, // Node is a .d.ts file
|
||||
Let = 1 << 13, // Variable declaration
|
||||
Const = 1 << 14, // Variable declaration
|
||||
OctalLiteral = 1 << 15, // Octal numeric literal
|
||||
Namespace = 1 << 16, // Namespace declaration
|
||||
ExportContext = 1 << 17, // Export context (initialized by binding)
|
||||
ContainsThis = 1 << 18, // Interface contains references to "this"
|
||||
HasImplicitReturn = 1 << 19, // If function implicitly returns on one of codepaths (initialized by binding)
|
||||
HasExplicitReturn = 1 << 20, // If function has explicit reachable return on one of codepaths (initialized by binding)
|
||||
GlobalAugmentation = 1 << 21, // Set if module declaration is an augmentation for the global scope
|
||||
HasClassExtends = 1 << 22, // If the file has a non-ambient class with an extends clause in ES5 or lower (initialized by binding)
|
||||
HasDecorators = 1 << 23, // If the file has decorators (initialized by binding)
|
||||
HasParamDecorators = 1 << 24, // If the file has parameter decorators (initialized by binding)
|
||||
HasAsyncFunctions = 1 << 25, // If the file has async functions (initialized by binding)
|
||||
|
||||
Modifier = Export | Ambient | Public | Private | Protected | Static | Abstract | Default | Async,
|
||||
AccessibilityModifier = Public | Private | Protected,
|
||||
|
||||
Reference in New Issue
Block a user