Commit 8d7dfd6
Vatroslav Vrbanic
(feat) Add accessors autocomplete (#893)
If the component option `accessors` is present / present and set to `true`, add getters and setters to the generated Svelte2TsxComponent class for each exported `let` prop. This way we get autocomplete / intellisense for accessors.
#8821 parent f33173f commit 8d7dfd6
File tree
124 files changed
+272
-124
lines changed- packages/svelte2tsx
- src/svelte2tsx
- nodes
- test
- sourcemaps
- svelte2tsx/samples
- $store-assign
- $store-index
- array-binding-export
- ast-offset-none
- ast-offset-some
- await-with-$store
- binding-group-store
- circle-drawer-example
- commented-out-script
- component-default-slot
- component-events-interface-constant
- component-events-interface-string-literals
- component-events-interface
- component-multiple-slots
- component-slot-crazy-attributes
- component-slot-inside-await
- component-slot-inside-each
- component-slot-let-forward-named-slot
- component-slot-let-forward
- component-slot-nest-scope
- component-slot-no-space
- component-slot-object-key
- component-slot-var-shadowing
- component-with-documentation
- component-with-indented-multiline-documentation
- component-with-multiline-documentation
- debug-block
- editing-mustache
- event-bubble-component-multi
- event-bubble-component
- event-bubble-element
- event-bubble-svelte-element
- event-dispatcher-events-alias
- event-dispatcher-events
- export-class
- export-doc
- export-js-strictMode
- export-list
- export-references-local
- export-with-default-multi
- filename-is-invalid-identifiers-only
- filename-is-invalid-identifier
- import-single-quote
- imports
- module-script-and-script-in-line2
- module-script-and-script-in-line
- module-script-and-script2
- module-script-and-script
- nested-$-variables-script
- nested-$-variables-template
- object-binding-export
- reactive-$store-destructuring
- reactive-block
- reactive-break-$
- reactive-declare-object
- reactive-declare-same-name-as-import
- reactive-declare
- reactive-store-set
- 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
- slot-bind-this
- store-destructuring
- store-from-module
- store-from-reactive-assignment
- store-import
- store-property-access
- stores-mustache
- style-after-selfclosing-iframe
- style-attribute-bare
- style-attribute
- style
- ts-event-dispatcher-typed
- ts-export-arrow-function
- ts-export-boolean
- ts-export-const
- ts-export-doc-typedef
- ts-export-doc
- ts-export-has-initializer
- ts-export-has-type
- ts-export-interface
- ts-export-strictMode
- ts-multiple-export
- ts-style-and-script
- ts-type-assertion
- ts-typed-export-with-default
- ts-uses-$$props-strictMode
- ts-uses-$$props
- uses-$$props-script
- uses-$$props
- uses-$$restProps-script
- uses-$$restProps
- uses-$$slots-script
- uses-$$slots
- uses-$property
- uses-$store-in-event-binding
- uses-$store-multiple-variable-declaration
- uses-$store-with-assignment-operators
- uses-$store-with-exclamation-mark
- uses-$store-with-increments
- uses-$store
- uses-accessors-attr-not-present
- uses-accessors-attr-present
- uses-accessors-mustachetag-false
- uses-accessors-mustachetag-true
- uses-accessors-no-svelte-options
- uses-svelte-components-let-forward
- 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.
124 files changed
+272
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
93 | 116 | | |
94 | 117 | | |
95 | 118 | | |
| |||
177 | 200 | | |
178 | 201 | | |
179 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
180 | 206 | | |
181 | 207 | | |
182 | 208 | | |
| |||
278 | 304 | | |
279 | 305 | | |
280 | 306 | | |
281 | | - | |
| 307 | + | |
| 308 | + | |
282 | 309 | | |
283 | 310 | | |
284 | 311 | | |
| |||
289 | 316 | | |
290 | 317 | | |
291 | 318 | | |
| 319 | + | |
292 | 320 | | |
293 | 321 | | |
294 | 322 | | |
| |||
301 | 329 | | |
302 | 330 | | |
303 | 331 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 332 | + | |
| 333 | + | |
307 | 334 | | |
308 | 335 | | |
309 | 336 | | |
310 | 337 | | |
311 | 338 | | |
312 | | - | |
313 | | - | |
| 339 | + | |
314 | 340 | | |
315 | | - | |
316 | | - | |
| 341 | + | |
317 | 342 | | |
318 | 343 | | |
319 | 344 | | |
| |||
353 | 378 | | |
354 | 379 | | |
355 | 380 | | |
| 381 | + | |
356 | 382 | | |
357 | 383 | | |
358 | 384 | | |
| |||
410 | 436 | | |
411 | 437 | | |
412 | 438 | | |
| 439 | + | |
413 | 440 | | |
414 | 441 | | |
415 | 442 | | |
| |||
440 | 467 | | |
441 | 468 | | |
442 | 469 | | |
443 | | - | |
| 470 | + | |
| 471 | + | |
444 | 472 | | |
445 | 473 | | |
446 | 474 | | |
| |||
467 | 495 | | |
468 | 496 | | |
469 | 497 | | |
| 498 | + | |
470 | 499 | | |
471 | 500 | | |
472 | 501 | | |
473 | 502 | | |
474 | 503 | | |
475 | | - | |
| 504 | + | |
476 | 505 | | |
477 | 506 | | |
478 | 507 | | |
479 | 508 | | |
480 | | - | |
| 509 | + | |
481 | 510 | | |
482 | 511 | | |
483 | 512 | | |
| |||
488 | 517 | | |
489 | 518 | | |
490 | 519 | | |
| 520 | + | |
491 | 521 | | |
492 | 522 | | |
493 | 523 | | |
| |||
511 | 541 | | |
512 | 542 | | |
513 | 543 | | |
| 544 | + | |
514 | 545 | | |
515 | 546 | | |
516 | 547 | | |
| |||
Lines changed: 12 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 | + | |
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| |||
499 | 507 | | |
500 | 508 | | |
501 | 509 | | |
502 | | - | |
| 510 | + | |
| 511 | + | |
503 | 512 | | |
504 | 513 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
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 | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
0 commit comments