Commit 4f48bf8
authored
Revised emit for computed property names, including with decorators (microsoft#19430)
* Revised emit for computed property names
* Fix downlevel name generation scopes
* Accept slightly more conservative baseline
* First feedback pass
* Reduce number of nonrequired variable declarations and assignments
* Remove side-effect-free identifier references
* skip partially emitted expressions
* Comments, move starsOnNewLine to emitNode
* Put expressions on newlines when inlined in class expressions for consistency
* Update new ref
* Fix typo in comment1 parent ddbd654 commit 4f48bf8Copy full SHA for 4f48bf8
29 files changed
+2,777-113Lines changed: 2777 additions & 113 deletions
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
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2963 | 2963 | |
2964 | 2964 | |
2965 | 2965 | |
| 2966 | + |
2966 | 2967 | |
2967 | 2968 | |
2968 | 2969 | |
| ||
2993 | 2994 | |
2994 | 2995 | |
2995 | 2996 | |
| 2997 | + |
2996 | 2998 | |
2997 | 2999 | |
2998 | 3000 | |
|
Collapse file
+32-32Lines changed: 32 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1733 | 1733 | |
1734 | 1734 | |
1735 | 1735 | |
1736 | | - |
1737 | | - |
1738 | | - |
1739 | | - |
1740 | | - |
1741 | | - |
1742 | | - |
1743 | | - |
| 1736 | + |
| 1737 | + |
| 1738 | + |
| 1739 | + |
1744 | 1740 | |
1745 | 1741 | |
1746 | | - |
1747 | | - |
1748 | | - |
1749 | | - |
1750 | | - |
1751 | | - |
1752 | | - |
1753 | | - |
1754 | | - |
| 1742 | + |
1755 | 1743 | |
| 1744 | + |
1756 | 1745 | |
1757 | 1746 | |
1758 | 1747 | |
| ||
1871 | 1860 | |
1872 | 1861 | |
1873 | 1862 | |
1874 | | - |
1875 | 1863 | |
1876 | 1864 | |
1877 | 1865 | |
1878 | | - |
1879 | 1866 | |
1880 | 1867 | |
1881 | 1868 | |
| ||
1909 | 1896 | |
1910 | 1897 | |
1911 | 1898 | |
1912 | | - |
1913 | 1899 | |
1914 | 1900 | |
1915 | 1901 | |
1916 | | - |
1917 | 1902 | |
1918 | 1903 | |
1919 | 1904 | |
| ||
1935 | 1920 | |
1936 | 1921 | |
1937 | 1922 | |
1938 | | - |
| 1923 | + |
1939 | 1924 | |
1940 | 1925 | |
1941 | 1926 | |
1942 | | - |
| 1927 | + |
1943 | 1928 | |
1944 | 1929 | |
1945 | 1930 | |
| ||
2284 | 2269 | |
2285 | 2270 | |
2286 | 2271 | |
2287 | | - |
| 2272 | + |
2288 | 2273 | |
2289 | 2274 | |
2290 | 2275 | |
2291 | | - |
| 2276 | + |
2292 | 2277 | |
2293 | 2278 | |
2294 | 2279 | |
| ||
2751 | 2736 | |
2752 | 2737 | |
2753 | 2738 | |
2754 | | - |
| 2739 | + |
2755 | 2740 | |
2756 | 2741 | |
2757 | 2742 | |
| ||
2782 | 2767 | |
2783 | 2768 | |
2784 | 2769 | |
2785 | | - |
| 2770 | + |
2786 | 2771 | |
2787 | 2772 | |
2788 | 2773 | |
| ||
2799 | 2784 | |
2800 | 2785 | |
2801 | 2786 | |
2802 | | - |
| 2787 | + |
2803 | 2788 | |
2804 | 2789 | |
2805 | 2790 | |
| ||
2858 | 2843 | |
2859 | 2844 | |
2860 | 2845 | |
2861 | | - |
| 2846 | + |
| 2847 | + |
| 2848 | + |
| 2849 | + |
2862 | 2850 | |
2863 | 2851 | |
2864 | 2852 | |
2865 | 2853 | |
2866 | 2854 | |
2867 | 2855 | |
2868 | 2856 | |
2869 | | - |
| 2857 | + |
| 2858 | + |
| 2859 | + |
| 2860 | + |
2870 | 2861 | |
2871 | 2862 | |
2872 | 2863 | |
| ||
2877 | 2868 | |
2878 | 2869 | |
2879 | 2870 | |
2880 | | - |
2881 | | - |
| 2871 | + |
| 2872 | + |
| 2873 | + |
| 2874 | + |
| 2875 | + |
| 2876 | + |
| 2877 | + |
| 2878 | + |
| 2879 | + |
| 2880 | + |
| 2881 | + |
2882 | 2882 | |
2883 | 2883 | |
2884 | 2884 | |
|
Collapse file
+30-11Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | | - |
18 | | - |
19 | 16 | |
20 | 17 | |
21 | 18 | |
| ||
168 | 165 | |
169 | 166 | |
170 | 167 | |
171 | | - |
| 168 | + |
| 169 | + |
| 170 | + |
172 | 171 | |
173 | 172 | |
174 | 173 | |
175 | 174 | |
| 175 | + |
176 | 176 | |
177 | 177 | |
178 | 178 | |
| ||
2683 | 2683 | |
2684 | 2684 | |
2685 | 2685 | |
| 2686 | + |
| 2687 | + |
| 2688 | + |
| 2689 | + |
| 2690 | + |
| 2691 | + |
| 2692 | + |
| 2693 | + |
| 2694 | + |
| 2695 | + |
| 2696 | + |
| 2697 | + |
| 2698 | + |
| 2699 | + |
| 2700 | + |
| 2701 | + |
| 2702 | + |
| 2703 | + |
2686 | 2704 | |
2687 | 2705 | |
2688 | 2706 | |
| ||
2841 | 2859 | |
2842 | 2860 | |
2843 | 2861 | |
2844 | | - |
| 2862 | + |
| 2863 | + |
2845 | 2864 | |
2846 | 2865 | |
2847 | 2866 | |
| ||
2853 | 2872 | |
2854 | 2873 | |
2855 | 2874 | |
| 2875 | + |
2856 | 2876 | |
2857 | 2877 | |
2858 | 2878 | |
| ||
3014 | 3034 | |
3015 | 3035 | |
3016 | 3036 | |
3017 | | - |
| 3037 | + |
3018 | 3038 | |
3019 | 3039 | |
3020 | 3040 | |
| ||
3045 | 3065 | |
3046 | 3066 | |
3047 | 3067 | |
3048 | | - |
| 3068 | + |
3049 | 3069 | |
3050 | 3070 | |
3051 | 3071 | |
| ||
3620 | 3640 | |
3621 | 3641 | |
3622 | 3642 | |
3623 | | - |
3624 | | - |
| 3643 | + |
| 3644 | + |
3625 | 3645 | |
3626 | 3646 | |
3627 | 3647 | |
| ||
4250 | 4270 | |
4251 | 4271 | |
4252 | 4272 | |
4253 | | - |
4254 | | - |
| 4273 | + |
4255 | 4274 | |
4256 | 4275 | |
4257 | 4276 | |
|
Collapse file
src/compiler/transformers/es2015.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/es2015.ts+8-9Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
787 | 787 | |
788 | 788 | |
789 | 789 | |
790 | | - |
791 | | - |
792 | | - |
| 790 | + |
793 | 791 | |
794 | 792 | |
795 | 793 | |
| ||
1327 | 1325 | |
1328 | 1326 | |
1329 | 1327 | |
1330 | | - |
| 1328 | + |
| 1329 | + |
1331 | 1330 | |
1332 | 1331 | |
1333 | 1332 | |
| ||
1683 | 1682 | |
1684 | 1683 | |
1685 | 1684 | |
1686 | | - |
| 1685 | + |
1687 | 1686 | |
1688 | 1687 | |
1689 | 1688 | |
| ||
2602 | 2601 | |
2603 | 2602 | |
2604 | 2603 | |
2605 | | - |
| 2604 | + |
2606 | 2605 | |
2607 | 2606 | |
2608 | 2607 | |
| ||
3083 | 3082 | |
3084 | 3083 | |
3085 | 3084 | |
3086 | | - |
| 3085 | + |
3087 | 3086 | |
3088 | 3087 | |
3089 | 3088 | |
| ||
3105 | 3104 | |
3106 | 3105 | |
3107 | 3106 | |
3108 | | - |
| 3107 | + |
3109 | 3108 | |
3110 | 3109 | |
3111 | 3110 | |
| ||
3128 | 3127 | |
3129 | 3128 | |
3130 | 3129 | |
3131 | | - |
| 3130 | + |
3132 | 3131 | |
3133 | 3132 | |
3134 | 3133 | |
|
Collapse file
src/compiler/transformers/generators.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/generators.ts+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1077 | 1077 | |
1078 | 1078 | |
1079 | 1079 | |
1080 | | - |
| 1080 | + |
1081 | 1081 | |
1082 | 1082 | |
1083 | 1083 | |
| ||
2683 | 2683 | |
2684 | 2684 | |
2685 | 2685 | |
2686 | | - |
2687 | | - |
| 2686 | + |
2688 | 2687 | |
2689 | 2688 | |
2690 | 2689 | |
|
0 commit comments