@ui5/builder 3.0.0-alpha.1 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,12 +175,11 @@ const EnrichedVisitorKeys = (function() {
175
175
 
176
176
  // merge with 'official' visitor keys
177
177
  Object.keys(VisitorKeys).forEach( (type) => {
178
- // Check if the visitor-key exists in the available Syntax because
179
- // the list of visitor-keys does not match the available Syntax.
180
- if (!Syntax[type]) {
181
- // Deprecated / removed:
182
- // ExperimentalRestProperty
183
- // ExperimentalSpreadProperty
178
+ // Ignore deprecated keys:
179
+ // - ExperimentalSpreadProperty => SpreadElement
180
+ // - ExperimentalRestProperty => RestElement
181
+ // They are about to be removed, see: https://github.com/eslint/eslint-visitor-keys/pull/36
182
+ if (type === "ExperimentalSpreadProperty" || type === "ExperimentalRestProperty") {
184
183
  return;
185
184
  }
186
185
  // Ignore JSX visitor-keys because they aren't used.
@@ -188,6 +187,15 @@ const EnrichedVisitorKeys = (function() {
188
187
  return;
189
188
  }
190
189
 
190
+ // Ignore new ES2022 syntax as we currently use ES2021 (see parseUtils.js)
191
+ if (
192
+ type === "PrivateIdentifier" ||
193
+ type === "PropertyDefinition" ||
194
+ type === "StaticBlock"
195
+ ) {
196
+ return;
197
+ }
198
+
191
199
  const visitorKeys = VisitorKeys[type];
192
200
  const condKeys = TempKeys[type];
193
201
  if ( condKeys === undefined ) {
@@ -231,9 +231,10 @@ class XMLTemplateAnalyzer {
231
231
  // looks like a UI5 library or package name
232
232
  const moduleName = ModuleName.fromUI5LegacyName( (namespace ? namespace + "." : "") + localName );
233
233
 
234
+ this._analyzeCoreRequire(node);
235
+
234
236
  // ignore FragmentDefinition (also skipped by runtime XMLTemplateProcessor)
235
237
  if ( FRAGMENTDEFINITION_MODULE !== moduleName ) {
236
- this._analyzeCoreRequire(node);
237
238
  this.promises.push(this._analyzeModuleDependency(node, moduleName, this.conditional));
238
239
  }
239
240
  }