-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Concept for alias import added Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat: metamodel.json updated for alias imports Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * fix: concept ImportAliasTypes merged into ImportTypes Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(alias): variable renamed and test cases added Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(alias import): metamodelutil updated - Test cases added - metamodelfile.js updated for aliased imports Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(alias import): test cases updated Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(alias import): Pr changes Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(import alias): Code refactored & Test Coverage - metamodelutil.js code refactored - Test cases updated to increase coverage Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(alias): Test case fixed Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> * feat(alias):code refactored & comments added Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com> --------- Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
- Loading branch information
1 parent
2adebc2
commit 9eeb019
Showing
6 changed files
with
334 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.Models", | ||
"models": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.Model", | ||
"decorators": [], | ||
"namespace": "org.saluja", | ||
"imports": [], | ||
"declarations": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.ConceptDeclaration", | ||
"name": "doc", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.StringProperty", | ||
"name": "name", | ||
"isArray": false, | ||
"isOptional": false, | ||
"location": { | ||
"$class": "concerto.metamodel@1.0.0.Range", | ||
"start": { | ||
"offset": 35, | ||
"line": 4, | ||
"column": 2, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
}, | ||
"end": { | ||
"offset": 49, | ||
"line": 5, | ||
"column": 1, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
} | ||
} | ||
} | ||
], | ||
"location": { | ||
"$class": "concerto.metamodel@1.0.0.Range", | ||
"start": { | ||
"offset": 22, | ||
"line": 3, | ||
"column": 1, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
}, | ||
"end": { | ||
"offset": 50, | ||
"line": 5, | ||
"column": 2, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.Model", | ||
"decorators": [], | ||
"namespace": "org.test", | ||
"imports": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.ImportTypes", | ||
"namespace": "org.saluja", | ||
"types": [ | ||
"doc" | ||
], | ||
"aliasedTypes": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.AliasedType", | ||
"name": "doc", | ||
"aliasedName": "d" | ||
} | ||
] | ||
} | ||
], | ||
"declarations": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.ConceptDeclaration", | ||
"name": "file", | ||
"isAbstract": false, | ||
"properties": [], | ||
"location": { | ||
"$class": "concerto.metamodel@1.0.0.Range", | ||
"start": { | ||
"offset": 50, | ||
"line": 5, | ||
"column": 1, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
}, | ||
"end": { | ||
"offset": 75, | ||
"line": 6, | ||
"column": 2, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
} | ||
}, | ||
"superType": { | ||
"$class": "concerto.metamodel@1.0.0.TypeIdentifier", | ||
"name": "d" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.Models", | ||
"models": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.Model", | ||
"decorators": [], | ||
"namespace": "org.saluja", | ||
"imports": [], | ||
"declarations": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.ConceptDeclaration", | ||
"name": "doc", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.StringProperty", | ||
"name": "name", | ||
"isArray": false, | ||
"isOptional": false, | ||
"location": { | ||
"$class": "concerto.metamodel@1.0.0.Range", | ||
"start": { | ||
"offset": 35, | ||
"line": 4, | ||
"column": 2, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
}, | ||
"end": { | ||
"offset": 49, | ||
"line": 5, | ||
"column": 1, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
} | ||
} | ||
} | ||
], | ||
"location": { | ||
"$class": "concerto.metamodel@1.0.0.Range", | ||
"start": { | ||
"offset": 22, | ||
"line": 3, | ||
"column": 1, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
}, | ||
"end": { | ||
"offset": 50, | ||
"line": 5, | ||
"column": 2, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.Model", | ||
"decorators": [], | ||
"namespace": "org.test", | ||
"imports": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.ImportTypes", | ||
"namespace": "org.saluja", | ||
"types": [ | ||
"doc" | ||
], | ||
"aliasedTypes": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.AliasedType", | ||
"name": "doc", | ||
"aliasedName": "d" | ||
} | ||
] | ||
} | ||
], | ||
"declarations": [ | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.ConceptDeclaration", | ||
"name": "file", | ||
"isAbstract": false, | ||
"properties": [], | ||
"location": { | ||
"$class": "concerto.metamodel@1.0.0.Range", | ||
"start": { | ||
"offset": 50, | ||
"line": 5, | ||
"column": 1, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
}, | ||
"end": { | ||
"offset": 75, | ||
"line": 6, | ||
"column": 2, | ||
"$class": "concerto.metamodel@1.0.0.Position" | ||
} | ||
}, | ||
"superType": { | ||
"$class": "concerto.metamodel@1.0.0.TypeIdentifier", | ||
"name": "d", | ||
"namespace": "org.saluja" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters