Commit 01c0828
committed
Fix duplicate import encoding.
This fixes a bug where a duplicate import might occur when an import with
dependencies on other interfaces is encoded and then later on an import for one
of those dependencies is also explicitly encoded.
It skips the import if it has already been imported and also ensures that the
full interface definition is provided when encoding at the root state (i.e. for
the composition itself and not an instance/component type).
As such, we don't need to process dependencies of implicit imports during
resolution.1 parent e02dc7f commit 01c0828
2 files changed
Lines changed: 8 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | 1771 | | |
1794 | 1772 | | |
1795 | 1773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
| |||
710 | 717 | | |
711 | 718 | | |
712 | 719 | | |
713 | | - | |
| 720 | + | |
714 | 721 | | |
715 | 722 | | |
716 | 723 | | |
| |||
0 commit comments