Skip to content

Commit

Permalink
Starlasu marker interfaces in Lionweb
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiostalla committed Jul 8, 2024
1 parent 8ae0347 commit b1e0107
Show file tree
Hide file tree
Showing 16 changed files with 10,645 additions and 3,033 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
"reflect-metadata": "^0.1.13"
},
"peerDependencies": {
"@lionweb/core": "^0.6.5",
"@lionweb/utilities": "^0.6.5",
"@lionweb/core": "^0.6.7",
"@lionweb/utilities": "^0.6.7",
"antlr4ng": "^3.0.4",
"cmd-ts": "^0.13.0",
"ecore": "^0.12.0"
Expand Down Expand Up @@ -121,8 +121,8 @@
"publish-lib": "yarn dist && yarn publish --access public && yarn --use-yarnrc .yarnrc-github-packages publish"
},
"devDependencies": {
"@lionweb/core": "^0.6.5",
"@lionweb/utilities": "^0.6.5",
"@lionweb/core": "^0.6.7",
"@lionweb/utilities": "^0.6.7",
"@tsconfig/recommended": "^1.0.3",
"@types/chai": "^4.3.11",
"@types/ecore": "^0.12.5",
Expand Down
6 changes: 6 additions & 0 deletions src/interop/ecore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,12 @@ export class ECoreNode extends NodeAdapter implements PossiblyNamed {
.filter((c) => c.eContainingFeature.get("name") != "destination");
}

isOfKnownType(name: string) {
const intf = THE_NODE_ECLASS_V2.eContainer.get("eClassifiers").find((c: ECore.EClassifier) =>
c.get("interface") && c.get("name") == name);
return intf && this.eo.isKindOf(intf);
}

isDeclaration(): boolean {
return this.eo.isKindOf(THE_ENTITY_DECLARATION_INTERFACE);
}
Expand Down
Loading

0 comments on commit b1e0107

Please sign in to comment.