@typemf/generator 0.8.1 → 0.9.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typemf/generator",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -30,9 +30,9 @@
30
30
  "provenance": true
31
31
  },
32
32
  "dependencies": {
33
- "@typemf/core": "0.8.1",
34
- "@typemf/node": "0.8.1",
35
- "@typemf/xmi": "0.8.1",
33
+ "@typemf/core": "0.9.0",
34
+ "@typemf/node": "0.9.0",
35
+ "@typemf/xmi": "0.9.0",
36
36
  "nunjucks": "^3.2.4",
37
37
  "prettier": "^3.9.8"
38
38
  },
@@ -122,9 +122,9 @@ export interface {{ pkgClass }} extends {{ useImport("EPackage", "types", {found
122
122
  call is correct and necessary there, and the bypass is correct and
123
123
  necessary here - never both from the same call site.
124
124
  #}
125
- {#- The expression for classifier `c`: its field for a classifier of this package, Ecore's own accessor otherwise. #}
125
+ {#- The expression for classifier `c`: its field for a classifier of this package, its package's accessor otherwise. #}
126
126
  {% macro classifierExpr(c) -%}
127
- {%- if c.getEPackage() == package -%}this._{{ c.getName() }}{%- else -%}{{ useImport("EcorePackageImpl", "impl", {foundational: true}) }}.eINSTANCE.get{{ c.getName() }}(){%- endif -%}
127
+ {%- if c.getEPackage() == package -%}this._{{ c.getName() }}{%- else -%}{{ otherPackageClassifierExpr(c) }}{%- endif -%}
128
128
  {%- endmacro %}
129
129
  {% macro bootstrapSet(targetExpr, beanSetterName, idsExpr, valueExpr) %}
130
130
  {% if options['generate-ecore'] %}