Commit 032bd75
authored
feat: alias Import rules added (#855)
* feat: Alias Import rules added
* Rules for AliasedIdentifier and Types added.
* aliasedTypes filtered in callback of ImportTypes
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat: Grammar rules updated
- as token defined for aliasing types in the import statements
- as is defined local reserved word
- AST made backward compatible
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat: Printer updated
- Printer now handles the aliased types.
- Test case added for parser and printer.
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias import): Printer and parser test cases
- Test case added containing alias import
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias import): test cases for updated grammar
- test cases added for both parser and printer
- bad test cases added as well for the parser
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias import): PR changes
- renamed the Types rule to IdentifierTypeExpression
- Indentation fixed
- Extra white spaces removed
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias): Minor fixes
- Code changes made on suggestion.
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias): disabled aliasing to primitive types
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias): handle pr comments
- Test cases added
- pr comments handled
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias): variables renamed and code cleaned
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias import): printer code refactored
- printer code refactored
- coverage 100% tested locally
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias import): Updated concerto-metamodel version
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias import): Pr suggestion : code refactor
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias):package-lock.json fixed
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
* feat(alias): fixing pr
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>
---------
Signed-off-by: Jaskeerat Singh Saluja <[email protected]>1 parent 731b2f1 commit 032bd75
File tree
8 files changed
+858
-559
lines changed- packages/concerto-cto
- lib
- test
- cto
- bad
8 files changed
+858
-559
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
419 | 423 | | |
420 | 424 | | |
421 | 425 | | |
| 426 | + | |
422 | 427 | | |
423 | 428 | | |
424 | 429 | | |
| |||
1711 | 1716 | | |
1712 | 1717 | | |
1713 | 1718 | | |
1714 | | - | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
1715 | 1729 | | |
1716 | 1730 | | |
1717 | 1731 | | |
1718 | | - | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
1719 | 1735 | | |
1720 | 1736 | | |
1721 | 1737 | | |
1722 | 1738 | | |
1723 | 1739 | | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
1729 | 1751 | | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1730 | 1759 | | |
1731 | 1760 | | |
1732 | 1761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
391 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
392 | 407 | | |
| 408 | + | |
393 | 409 | | |
394 | 410 | | |
395 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
84 | 109 | | |
85 | 110 | | |
86 | 111 | | |
| |||
0 commit comments