Skip to content

Commit b1e0107

Browse files
committed
Starlasu marker interfaces in Lionweb
1 parent 8ae0347 commit b1e0107

16 files changed

+10645
-3033
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
"reflect-metadata": "^0.1.13"
8989
},
9090
"peerDependencies": {
91-
"@lionweb/core": "^0.6.5",
92-
"@lionweb/utilities": "^0.6.5",
91+
"@lionweb/core": "^0.6.7",
92+
"@lionweb/utilities": "^0.6.7",
9393
"antlr4ng": "^3.0.4",
9494
"cmd-ts": "^0.13.0",
9595
"ecore": "^0.12.0"
@@ -121,8 +121,8 @@
121121
"publish-lib": "yarn dist && yarn publish --access public && yarn --use-yarnrc .yarnrc-github-packages publish"
122122
},
123123
"devDependencies": {
124-
"@lionweb/core": "^0.6.5",
125-
"@lionweb/utilities": "^0.6.5",
124+
"@lionweb/core": "^0.6.7",
125+
"@lionweb/utilities": "^0.6.7",
126126
"@tsconfig/recommended": "^1.0.3",
127127
"@types/chai": "^4.3.11",
128128
"@types/ecore": "^0.12.5",

src/interop/ecore.ts

+6
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,12 @@ export class ECoreNode extends NodeAdapter implements PossiblyNamed {
977977
.filter((c) => c.eContainingFeature.get("name") != "destination");
978978
}
979979

980+
isOfKnownType(name: string) {
981+
const intf = THE_NODE_ECLASS_V2.eContainer.get("eClassifiers").find((c: ECore.EClassifier) =>
982+
c.get("interface") && c.get("name") == name);
983+
return intf && this.eo.isKindOf(intf);
984+
}
985+
980986
isDeclaration(): boolean {
981987
return this.eo.isKindOf(THE_ENTITY_DECLARATION_INTERFACE);
982988
}

0 commit comments

Comments
 (0)