@@ -98,110 +98,110 @@ const (
98
98
99
99
var StringToJSFeature = map [string ]JSFeature {
100
100
"arbitrary-module-namespace-names" : ArbitraryModuleNamespaceNames ,
101
- "array-spread" : ArraySpread ,
102
- "arrow" : Arrow ,
103
- "async-await" : AsyncAwait ,
104
- "async-generator" : AsyncGenerator ,
105
- "bigint" : Bigint ,
106
- "class" : Class ,
107
- "class-field" : ClassField ,
108
- "class-private-accessor" : ClassPrivateAccessor ,
109
- "class-private-brand-check" : ClassPrivateBrandCheck ,
110
- "class-private-field" : ClassPrivateField ,
111
- "class-private-method" : ClassPrivateMethod ,
112
- "class-private-static-accessor" : ClassPrivateStaticAccessor ,
113
- "class-private-static-field" : ClassPrivateStaticField ,
114
- "class-private-static-method" : ClassPrivateStaticMethod ,
115
- "class-static-blocks" : ClassStaticBlocks ,
116
- "class-static-field" : ClassStaticField ,
117
- "const-and-let" : ConstAndLet ,
118
- "default-argument" : DefaultArgument ,
119
- "destructuring" : Destructuring ,
120
- "dynamic-import" : DynamicImport ,
121
- "exponent-operator" : ExponentOperator ,
122
- "export-star-as" : ExportStarAs ,
123
- "for-await" : ForAwait ,
124
- "for-of" : ForOf ,
125
- "generator" : Generator ,
126
- "hashbang" : Hashbang ,
127
- "import-assertions" : ImportAssertions ,
128
- "import-meta" : ImportMeta ,
129
- "logical-assignment" : LogicalAssignment ,
130
- "nested-rest-binding" : NestedRestBinding ,
131
- "new-target" : NewTarget ,
132
- "node-colon-prefix-import" : NodeColonPrefixImport ,
133
- "node-colon-prefix-require" : NodeColonPrefixRequire ,
134
- "nullish-coalescing" : NullishCoalescing ,
135
- "object-accessors" : ObjectAccessors ,
136
- "object-extensions" : ObjectExtensions ,
137
- "object-rest-spread" : ObjectRestSpread ,
138
- "optional-catch-binding" : OptionalCatchBinding ,
139
- "optional-chain" : OptionalChain ,
140
- "regexp-dot-all-flag" : RegexpDotAllFlag ,
141
- "regexp-lookbehind-assertions" : RegexpLookbehindAssertions ,
142
- "regexp-match-indices" : RegexpMatchIndices ,
143
- "regexp-named-capture-groups" : RegexpNamedCaptureGroups ,
144
- "regexp-sticky-and-unicode-flags" : RegexpStickyAndUnicodeFlags ,
145
- "regexp-unicode-property-escapes" : RegexpUnicodePropertyEscapes ,
146
- "rest-argument" : RestArgument ,
147
- "template-literal" : TemplateLiteral ,
148
- "top-level-await" : TopLevelAwait ,
149
- "typeof-exotic-object-is-object" : TypeofExoticObjectIsObject ,
150
- "unicode-escapes" : UnicodeEscapes ,
101
+ "array-spread" : ArraySpread ,
102
+ "arrow" : Arrow ,
103
+ "async-await" : AsyncAwait ,
104
+ "async-generator" : AsyncGenerator ,
105
+ "bigint" : Bigint ,
106
+ "class" : Class ,
107
+ "class-field" : ClassField ,
108
+ "class-private-accessor" : ClassPrivateAccessor ,
109
+ "class-private-brand-check" : ClassPrivateBrandCheck ,
110
+ "class-private-field" : ClassPrivateField ,
111
+ "class-private-method" : ClassPrivateMethod ,
112
+ "class-private-static-accessor" : ClassPrivateStaticAccessor ,
113
+ "class-private-static-field" : ClassPrivateStaticField ,
114
+ "class-private-static-method" : ClassPrivateStaticMethod ,
115
+ "class-static-blocks" : ClassStaticBlocks ,
116
+ "class-static-field" : ClassStaticField ,
117
+ "const-and-let" : ConstAndLet ,
118
+ "default-argument" : DefaultArgument ,
119
+ "destructuring" : Destructuring ,
120
+ "dynamic-import" : DynamicImport ,
121
+ "exponent-operator" : ExponentOperator ,
122
+ "export-star-as" : ExportStarAs ,
123
+ "for-await" : ForAwait ,
124
+ "for-of" : ForOf ,
125
+ "generator" : Generator ,
126
+ "hashbang" : Hashbang ,
127
+ "import-assertions" : ImportAssertions ,
128
+ "import-meta" : ImportMeta ,
129
+ "logical-assignment" : LogicalAssignment ,
130
+ "nested-rest-binding" : NestedRestBinding ,
131
+ "new-target" : NewTarget ,
132
+ "node-colon-prefix-import" : NodeColonPrefixImport ,
133
+ "node-colon-prefix-require" : NodeColonPrefixRequire ,
134
+ "nullish-coalescing" : NullishCoalescing ,
135
+ "object-accessors" : ObjectAccessors ,
136
+ "object-extensions" : ObjectExtensions ,
137
+ "object-rest-spread" : ObjectRestSpread ,
138
+ "optional-catch-binding" : OptionalCatchBinding ,
139
+ "optional-chain" : OptionalChain ,
140
+ "regexp-dot-all-flag" : RegexpDotAllFlag ,
141
+ "regexp-lookbehind-assertions" : RegexpLookbehindAssertions ,
142
+ "regexp-match-indices" : RegexpMatchIndices ,
143
+ "regexp-named-capture-groups" : RegexpNamedCaptureGroups ,
144
+ "regexp-sticky-and-unicode-flags" : RegexpStickyAndUnicodeFlags ,
145
+ "regexp-unicode-property-escapes" : RegexpUnicodePropertyEscapes ,
146
+ "rest-argument" : RestArgument ,
147
+ "template-literal" : TemplateLiteral ,
148
+ "top-level-await" : TopLevelAwait ,
149
+ "typeof-exotic-object-is-object" : TypeofExoticObjectIsObject ,
150
+ "unicode-escapes" : UnicodeEscapes ,
151
151
}
152
152
153
153
var JSFeatureToString = map [JSFeature ]string {
154
154
ArbitraryModuleNamespaceNames : "arbitrary-module-namespace-names" ,
155
- ArraySpread : "array-spread" ,
156
- Arrow : "arrow" ,
157
- AsyncAwait : "async-await" ,
158
- AsyncGenerator : "async-generator" ,
159
- Bigint : "bigint" ,
160
- Class : "class" ,
161
- ClassField : "class-field" ,
162
- ClassPrivateAccessor : "class-private-accessor" ,
163
- ClassPrivateBrandCheck : "class-private-brand-check" ,
164
- ClassPrivateField : "class-private-field" ,
165
- ClassPrivateMethod : "class-private-method" ,
166
- ClassPrivateStaticAccessor : "class-private-static-accessor" ,
167
- ClassPrivateStaticField : "class-private-static-field" ,
168
- ClassPrivateStaticMethod : "class-private-static-method" ,
169
- ClassStaticBlocks : "class-static-blocks" ,
170
- ClassStaticField : "class-static-field" ,
171
- ConstAndLet : "const-and-let" ,
172
- DefaultArgument : "default-argument" ,
173
- Destructuring : "destructuring" ,
174
- DynamicImport : "dynamic-import" ,
175
- ExponentOperator : "exponent-operator" ,
176
- ExportStarAs : "export-star-as" ,
177
- ForAwait : "for-await" ,
178
- ForOf : "for-of" ,
179
- Generator : "generator" ,
180
- Hashbang : "hashbang" ,
181
- ImportAssertions : "import-assertions" ,
182
- ImportMeta : "import-meta" ,
183
- LogicalAssignment : "logical-assignment" ,
184
- NestedRestBinding : "nested-rest-binding" ,
185
- NewTarget : "new-target" ,
186
- NodeColonPrefixImport : "node-colon-prefix-import" ,
187
- NodeColonPrefixRequire : "node-colon-prefix-require" ,
188
- NullishCoalescing : "nullish-coalescing" ,
189
- ObjectAccessors : "object-accessors" ,
190
- ObjectExtensions : "object-extensions" ,
191
- ObjectRestSpread : "object-rest-spread" ,
192
- OptionalCatchBinding : "optional-catch-binding" ,
193
- OptionalChain : "optional-chain" ,
194
- RegexpDotAllFlag : "regexp-dot-all-flag" ,
195
- RegexpLookbehindAssertions : "regexp-lookbehind-assertions" ,
196
- RegexpMatchIndices : "regexp-match-indices" ,
197
- RegexpNamedCaptureGroups : "regexp-named-capture-groups" ,
198
- RegexpStickyAndUnicodeFlags : "regexp-sticky-and-unicode-flags" ,
199
- RegexpUnicodePropertyEscapes : "regexp-unicode-property-escapes" ,
200
- RestArgument : "rest-argument" ,
201
- TemplateLiteral : "template-literal" ,
202
- TopLevelAwait : "top-level-await" ,
203
- TypeofExoticObjectIsObject : "typeof-exotic-object-is-object" ,
204
- UnicodeEscapes : "unicode-escapes" ,
155
+ ArraySpread : "array-spread" ,
156
+ Arrow : "arrow" ,
157
+ AsyncAwait : "async-await" ,
158
+ AsyncGenerator : "async-generator" ,
159
+ Bigint : "bigint" ,
160
+ Class : "class" ,
161
+ ClassField : "class-field" ,
162
+ ClassPrivateAccessor : "class-private-accessor" ,
163
+ ClassPrivateBrandCheck : "class-private-brand-check" ,
164
+ ClassPrivateField : "class-private-field" ,
165
+ ClassPrivateMethod : "class-private-method" ,
166
+ ClassPrivateStaticAccessor : "class-private-static-accessor" ,
167
+ ClassPrivateStaticField : "class-private-static-field" ,
168
+ ClassPrivateStaticMethod : "class-private-static-method" ,
169
+ ClassStaticBlocks : "class-static-blocks" ,
170
+ ClassStaticField : "class-static-field" ,
171
+ ConstAndLet : "const-and-let" ,
172
+ DefaultArgument : "default-argument" ,
173
+ Destructuring : "destructuring" ,
174
+ DynamicImport : "dynamic-import" ,
175
+ ExponentOperator : "exponent-operator" ,
176
+ ExportStarAs : "export-star-as" ,
177
+ ForAwait : "for-await" ,
178
+ ForOf : "for-of" ,
179
+ Generator : "generator" ,
180
+ Hashbang : "hashbang" ,
181
+ ImportAssertions : "import-assertions" ,
182
+ ImportMeta : "import-meta" ,
183
+ LogicalAssignment : "logical-assignment" ,
184
+ NestedRestBinding : "nested-rest-binding" ,
185
+ NewTarget : "new-target" ,
186
+ NodeColonPrefixImport : "node-colon-prefix-import" ,
187
+ NodeColonPrefixRequire : "node-colon-prefix-require" ,
188
+ NullishCoalescing : "nullish-coalescing" ,
189
+ ObjectAccessors : "object-accessors" ,
190
+ ObjectExtensions : "object-extensions" ,
191
+ ObjectRestSpread : "object-rest-spread" ,
192
+ OptionalCatchBinding : "optional-catch-binding" ,
193
+ OptionalChain : "optional-chain" ,
194
+ RegexpDotAllFlag : "regexp-dot-all-flag" ,
195
+ RegexpLookbehindAssertions : "regexp-lookbehind-assertions" ,
196
+ RegexpMatchIndices : "regexp-match-indices" ,
197
+ RegexpNamedCaptureGroups : "regexp-named-capture-groups" ,
198
+ RegexpStickyAndUnicodeFlags : "regexp-sticky-and-unicode-flags" ,
199
+ RegexpUnicodePropertyEscapes : "regexp-unicode-property-escapes" ,
200
+ RestArgument : "rest-argument" ,
201
+ TemplateLiteral : "template-literal" ,
202
+ TopLevelAwait : "top-level-await" ,
203
+ TypeofExoticObjectIsObject : "typeof-exotic-object-is-object" ,
204
+ UnicodeEscapes : "unicode-escapes" ,
205
205
}
206
206
207
207
func (features JSFeature ) Has (feature JSFeature ) bool {
0 commit comments