Commit 141ee01
authored
Retain imports in declaration emit if they augment an export of the importing file (microsoft#37820)
* Retain imports in declaration emit if they augment an export of the importing file
* (sp)
* Check that a merge occurs, just because1 parent a8e1ad4 commit 141ee01Copy full SHA for 141ee01
8 files changed
+203-1Lines changed: 203 additions & 1 deletion
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
- transformers
- tests
- baselines/reference
- cases/compiler
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+23-1Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36118 | 36118 | |
36119 | 36119 | |
36120 | 36120 | |
36121 | | - |
| 36121 | + |
| 36122 | + |
36122 | 36123 | |
36123 | 36124 | |
| 36125 | + |
| 36126 | + |
| 36127 | + |
| 36128 | + |
| 36129 | + |
| 36130 | + |
| 36131 | + |
| 36132 | + |
| 36133 | + |
| 36134 | + |
| 36135 | + |
| 36136 | + |
| 36137 | + |
| 36138 | + |
| 36139 | + |
| 36140 | + |
| 36141 | + |
| 36142 | + |
| 36143 | + |
| 36144 | + |
| 36145 | + |
36124 | 36146 | |
36125 | 36147 | |
36126 | 36148 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
664 | 664 | |
665 | 665 | |
666 | 666 | |
| 667 | + |
667 | 668 | |
668 | 669 | |
669 | 670 | |
|
Collapse file
src/compiler/transformers/declarations.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/declarations.ts+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
717 | 717 | |
718 | 718 | |
719 | 719 | |
| 720 | + |
| 721 | + |
| 722 | + |
| 723 | + |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
720 | 730 | |
721 | 731 | |
722 | 732 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4004 | 4004 | |
4005 | 4005 | |
4006 | 4006 | |
| 4007 | + |
4007 | 4008 | |
4008 | 4009 | |
4009 | 4010 | |
|
Collapse file
tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.js
Copy file name to clipboard+56Lines changed: 56 additions & 0 deletions
| 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 | + |
Collapse file
tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.symbols
Copy file name to clipboard+46Lines changed: 46 additions & 0 deletions
| 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 | + |
Collapse file
tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.types
Copy file name to clipboard+46Lines changed: 46 additions & 0 deletions
| 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 | + |
Collapse file
tests/cases/compiler/declarationEmitForModuleImportingModuleAugmentationRetainsImport.ts
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
| 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 | + |
0 commit comments