Commit da98889
authored
(svelte2tsx) Allow documenting components with a tagged HTML comment (#285)
* Generate a named default export in svelte2tsx components
* Move TSX default export class name formatting to a util
* Format default export class name in svelte2tsx in PascalCase
* Implement finding @component comment and outputting it
* Keep indentation in @component documentation comments
* Remove additional extensions in classNameFromFilename
* Add documentation about the new supported HTML comments1 parent 6f30321 commit da98889
File tree
68 files changed
+289
-65
lines changed- docs
- packages
- language-server
- src/plugins/typescript
- test/plugins/typescript/features
- svelte2tsx
- src
- test/svelte2tsx
- samples
- array-binding-export
- ast-offset-none
- ast-offset-some
- await-with-$store
- binding-group-store
- circle-drawer-example
- component-default-slot
- component-multiple-slots
- component-slot-crazy-attributes
- component-with-documentation
- component-with-indented-multiline-documentation
- component-with-multiline-documentation
- export-arrow-function
- export-const
- export-has-type
- export-interface
- export-js-strictMode
- export-list
- export-references-local
- export-ts-strictMode
- export-with-default-multi
- import-single-quote
- imports
- module-script-and-script-in-line2
- module-script-and-script-in-line
- module-script-and-script2
- module-script-and-script
- multiple-export
- nested-$-variables-script
- nested-$-variables-template
- object-binding-export
- reactive-block
- reactive-declare-object
- reactive-declare
- renamed-exports
- script-and-module-script
- script-inside-head-after-toplevel-script
- script-on-bottom
- script-style-like-component
- self-closing-component
- single-element
- single-export
- stores-mustache
- style-attribute-bare
- style-attribute
- style
- typed-export-with-default
- uses-$$props-script
- uses-$$props-ts-strictMode
- uses-$$props
- uses-$$restProps-script
- uses-$$restProps
- uses-$store-in-event-binding
- uses-$store-with-assignment-operators
- uses-$store-with-exclamation-mark
- uses-$store-with-increments
- uses-$store
- uses-svelte-components
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
68 files changed
+289
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 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 | + | |
48 | 77 | | |
49 | 78 | | |
50 | 79 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
| 73 | + | |
| 74 | + | |
62 | 75 | | |
63 | 76 | | |
64 | 77 | | |
| |||
167 | 180 | | |
168 | 181 | | |
169 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
170 | 195 | | |
171 | 196 | | |
172 | 197 | | |
| |||
259 | 284 | | |
260 | 285 | | |
261 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
262 | 290 | | |
263 | 291 | | |
264 | 292 | | |
| |||
326 | 354 | | |
327 | 355 | | |
328 | 356 | | |
| 357 | + | |
329 | 358 | | |
330 | 359 | | |
331 | 360 | | |
| |||
765 | 794 | | |
766 | 795 | | |
767 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
768 | 811 | | |
769 | 812 | | |
770 | 813 | | |
771 | 814 | | |
772 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
773 | 819 | | |
774 | 820 | | |
775 | 821 | | |
| |||
780 | 826 | | |
781 | 827 | | |
782 | 828 | | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
787 | 853 | | |
788 | 854 | | |
789 | 855 | | |
| |||
900 | 966 | | |
901 | 967 | | |
902 | 968 | | |
903 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
904 | 977 | | |
905 | 978 | | |
906 | 979 | | |
| |||
950 | 1023 | | |
951 | 1024 | | |
952 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
953 | 1028 | | |
954 | 1029 | | |
955 | 1030 | | |
956 | 1031 | | |
957 | 1032 | | |
| 1033 | + | |
| 1034 | + | |
958 | 1035 | | |
959 | 1036 | | |
960 | 1037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
0 commit comments