We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f555d8 commit 91a6bfdCopy full SHA for 91a6bfd
packages/synth-wasm-js/src/types.ts
@@ -86,7 +86,16 @@ export enum NodeKind {
86
/**
87
* Flags for AST nodes
88
*/
89
-export const NodeFlags = {
+export const NodeFlags: {
90
+ readonly CONST: number
91
+ readonly LET: number
92
+ readonly ASYNC: number
93
+ readonly GENERATOR: number
94
+ readonly COMPUTED: number
95
+ readonly SHORTHAND: number
96
+ readonly STATIC: number
97
+ readonly EXPORT_DEFAULT: number
98
+} = {
99
CONST: 1 << 0,
100
LET: 1 << 1,
101
ASYNC: 1 << 2,
@@ -95,7 +104,7 @@ export const NodeFlags = {
104
SHORTHAND: 1 << 5,
105
STATIC: 1 << 6,
106
EXPORT_DEFAULT: 1 << 7,
-} as const
107
+}
108
109
110
* Compact AST node (16 bytes in binary format)
0 commit comments