@reapit/elements 5.0.0-beta.83 → 5.0.0-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/codemods/apply-textarea-field-sizing/transform.js +742 -709
- package/dist/codemods/at-a-glance-article-card/transform.js +791 -756
- package/dist/codemods/bin.js +1913 -2910
- package/dist/codemods/replace-deprecated-label/transform.js +1127 -850
- package/dist/codemods/replace-deprecated-pagination/transform.js +903 -822
- package/dist/codemods/replace-deprecated-use-click-outside/transform.js +764 -712
- package/dist/codemods/replace-lab-mobile-nav-item/transform.js +776 -745
- package/dist/codemods/replace-lab-radio/transform.js +1103 -877
- package/dist/codemods/replace-lab-radio-group/transform.js +1116 -866
- package/dist/codemods/replace-lab-search-input/transform.js +1188 -889
- package/dist/codemods/replace-lab-table/transform.js +760 -733
- package/dist/codemods/rewrite-combobox-imports/transform.js +719 -697
- package/dist/codemods/rewrite-text-font-imports/transform.js +722 -700
- package/dist/codemods/rewrite-v4-imports/transform.js +731 -701
- package/dist/codemods/rewrite-v5-imports/transform.js +1034 -708
- package/dist/codemods/upgrade-deprecated-badge/transform.js +1233 -878
- package/dist/codemods/upgrade-deprecated-button/transform.js +852 -830
- package/dist/codemods/upgrade-deprecated-button-group/transform.js +1220 -883
- package/dist/codemods/upgrade-deprecated-icon/transform.js +760 -734
- package/dist/codemods/upgrade-deprecated-split-button/transform.js +799 -770
- package/dist/codemods/upgrade-deprecated-tag/transform.js +884 -825
- package/dist/codemods/upgrade-deprecated-use-media-query/transform.js +737 -712
- package/dist/js/{accordion-BeA_kgW0.js → accordion-Dhvt8Fkd.js} +9 -9
- package/dist/js/{combobox-KaqLoE4E.js → combobox-BMv0P3Ap.js} +6 -5
- package/dist/js/{compact-select-CXm-gNFr.js → compact-select-o1dGwi-f.js} +1 -1
- package/dist/js/core/accordion-group.js +18 -0
- package/dist/js/core/accordion.js +2 -4
- package/dist/js/core/alert-banner.js +0 -1
- package/dist/js/core/app-switcher.js +0 -13
- package/dist/js/core/at-a-glance.js +0 -5
- package/dist/js/core/autocomplete-control.js +0 -14
- package/dist/js/core/autocomplete.js +1 -13
- package/dist/js/core/badge.js +0 -2
- package/dist/js/core/bottom-bar.js +0 -5
- package/dist/js/core/breadcrumbs.js +0 -1
- package/dist/js/core/checkbox-control.js +0 -4
- package/dist/js/core/checkbox-group-control.js +0 -4
- package/dist/js/core/checkbox-input.js +0 -1
- package/dist/js/core/checkbox.js +0 -4
- package/dist/js/core/chip-group.js +0 -2
- package/dist/js/core/chip.js +0 -1
- package/dist/js/core/compact-select-native.js +0 -1
- package/dist/js/core/compact-select.js +1 -16
- package/dist/js/core/date-time-control.js +0 -5
- package/dist/js/core/date-time-input.js +0 -5
- package/dist/js/core/dialog.js +0 -4
- package/dist/js/core/drawer.js +0 -2
- package/dist/js/core/empty-data.js +0 -1
- package/dist/js/core/features.js +0 -3
- package/dist/js/core/menu.js +0 -2
- package/dist/js/core/office-switcher.js +2 -13
- package/dist/js/core/pagination.js +0 -4
- package/dist/js/core/radio-group-control.js +0 -3
- package/dist/js/core/radio-input.js +0 -1
- package/dist/js/core/search-input.js +0 -5
- package/dist/js/core/section-message.js +0 -2
- package/dist/js/core/select-control.js +0 -14
- package/dist/js/core/select-native-control.js +0 -2
- package/dist/js/core/select-native.js +0 -1
- package/dist/js/core/select.js +1 -14
- package/dist/js/core/side-bar.js +0 -4
- package/dist/js/core/split-button.js +0 -6
- package/dist/js/core/table.js +2 -11
- package/dist/js/core/tooltip.js +0 -1
- package/dist/js/core/top-bar.js +0 -10
- package/dist/js/deprecated/accordion.js +0 -1
- package/dist/js/deprecated/breadcrumb.js +0 -2
- package/dist/js/deprecated/drawer.js +0 -1
- package/dist/js/deprecated/file-input.js +0 -5
- package/dist/js/deprecated/input-group.js +0 -1
- package/dist/js/deprecated/key-value-list.js +48 -5
- package/dist/js/deprecated/mobile-controls.js +0 -1
- package/dist/js/deprecated/multi-select.js +0 -1
- package/dist/js/deprecated/nav.js +0 -2
- package/dist/js/deprecated/page-header.js +0 -4
- package/dist/js/deprecated/persistent-notification.js +0 -1
- package/dist/js/deprecated/searchable-dropdown.js +0 -11
- package/dist/js/deprecated/snack.js +0 -1
- package/dist/js/deprecated/styles.js +9 -0
- package/dist/js/deprecated/table.js +0 -2
- package/dist/js/deprecated/use-drawer.js +0 -3
- package/dist/js/deprecated/use-modal.js +0 -1
- package/dist/js/deprecated/use-snack.js +0 -3
- package/dist/js/deprecated-typography-D-LvJPh5.js +4 -0
- package/dist/js/icons/add.js +0 -1
- package/dist/js/icons/announcement.js +0 -1
- package/dist/js/icons/app-switcher.js +0 -1
- package/dist/js/icons/archive.js +0 -1
- package/dist/js/icons/arrow-down.js +0 -1
- package/dist/js/icons/arrow-left.js +0 -1
- package/dist/js/icons/arrow-right.js +0 -1
- package/dist/js/icons/arrow-up.js +0 -1
- package/dist/js/icons/asterisk.js +0 -1
- package/dist/js/icons/attachment.js +0 -1
- package/dist/js/icons/automation.js +0 -1
- package/dist/js/icons/bath.js +0 -1
- package/dist/js/icons/bed.js +0 -1
- package/dist/js/icons/bill-bulk.js +0 -1
- package/dist/js/icons/bill.js +0 -1
- package/dist/js/icons/bookmark-bulk.js +0 -1
- package/dist/js/icons/bookmark.js +0 -1
- package/dist/js/icons/buy.js +0 -1
- package/dist/js/icons/calculator.js +0 -1
- package/dist/js/icons/calendar-user.js +0 -1
- package/dist/js/icons/calendar.js +0 -1
- package/dist/js/icons/camera.js +0 -1
- package/dist/js/icons/car.js +0 -1
- package/dist/js/icons/change-log.js +0 -1
- package/dist/js/icons/check-outline.js +0 -1
- package/dist/js/icons/check.js +0 -1
- package/dist/js/icons/checkbox-disabled.js +0 -1
- package/dist/js/icons/checkbox-indeterminate.js +0 -1
- package/dist/js/icons/checkbox-selected.js +0 -1
- package/dist/js/icons/checkbox.js +0 -1
- package/dist/js/icons/chevron-down.js +0 -1
- package/dist/js/icons/chevron-left.js +0 -1
- package/dist/js/icons/chevron-right.js +0 -1
- package/dist/js/icons/chevron-up.js +0 -1
- package/dist/js/icons/circular-add-solid.js +0 -1
- package/dist/js/icons/circular-add.js +0 -1
- package/dist/js/icons/circular-remove-solid.js +0 -1
- package/dist/js/icons/circular-remove.js +0 -1
- package/dist/js/icons/clear.js +0 -1
- package/dist/js/icons/close.js +0 -1
- package/dist/js/icons/cloud.js +0 -1
- package/dist/js/icons/compliance.js +0 -1
- package/dist/js/icons/consolidate.js +0 -1
- package/dist/js/icons/contact.js +0 -1
- package/dist/js/icons/contacts-alt.js +0 -1
- package/dist/js/icons/contacts.js +0 -1
- package/dist/js/icons/copy.js +0 -1
- package/dist/js/icons/dashboard.js +0 -1
- package/dist/js/icons/drag-indicator-alt.js +0 -1
- package/dist/js/icons/drag-indicator.js +0 -1
- package/dist/js/icons/edit.js +0 -1
- package/dist/js/icons/email-disabled.js +0 -1
- package/dist/js/icons/email-fill.js +0 -1
- package/dist/js/icons/email.js +0 -1
- package/dist/js/icons/error.js +0 -1
- package/dist/js/icons/euro.js +0 -1
- package/dist/js/icons/exit.js +0 -1
- package/dist/js/icons/expand.js +0 -1
- package/dist/js/icons/export.js +0 -1
- package/dist/js/icons/favourite.js +0 -1
- package/dist/js/icons/feather.js +0 -1
- package/dist/js/icons/feed.js +0 -1
- package/dist/js/icons/file-attached.js +0 -1
- package/dist/js/icons/file-audio.js +0 -1
- package/dist/js/icons/file-document.js +0 -1
- package/dist/js/icons/file-download.js +0 -1
- package/dist/js/icons/file-excel.js +0 -1
- package/dist/js/icons/file-image.js +0 -1
- package/dist/js/icons/file-pdf.js +0 -1
- package/dist/js/icons/file-powerpoint.js +0 -1
- package/dist/js/icons/file-spreadsheet.js +0 -1
- package/dist/js/icons/file-upload.js +0 -1
- package/dist/js/icons/file-video.js +0 -1
- package/dist/js/icons/file-word.js +0 -1
- package/dist/js/icons/file-zip.js +0 -1
- package/dist/js/icons/file.js +0 -1
- package/dist/js/icons/filter.js +0 -1
- package/dist/js/icons/folder.js +0 -1
- package/dist/js/icons/forward.js +0 -1
- package/dist/js/icons/fullscreen-exit.js +0 -1
- package/dist/js/icons/fullscreen.js +0 -1
- package/dist/js/icons/help.js +0 -1
- package/dist/js/icons/info-outline.js +0 -1
- package/dist/js/icons/info.js +0 -1
- package/dist/js/icons/insights.js +0 -1
- package/dist/js/icons/inspection-template.js +0 -1
- package/dist/js/icons/inspection.js +0 -1
- package/dist/js/icons/insurance.js +0 -1
- package/dist/js/icons/key.js +0 -1
- package/dist/js/icons/keyboard.js +0 -1
- package/dist/js/icons/land-size.js +0 -1
- package/dist/js/icons/laptop.js +0 -1
- package/dist/js/icons/link.js +0 -1
- package/dist/js/icons/location-alt.js +0 -1
- package/dist/js/icons/location-disabled.js +0 -1
- package/dist/js/icons/location-outline.js +0 -1
- package/dist/js/icons/location.js +0 -1
- package/dist/js/icons/lock-outline.js +0 -1
- package/dist/js/icons/lock.js +0 -1
- package/dist/js/icons/maintenance-alt.js +0 -1
- package/dist/js/icons/maintenance.js +0 -1
- package/dist/js/icons/marketplace.js +0 -1
- package/dist/js/icons/menu-alt.js +0 -1
- package/dist/js/icons/menu-collapse.js +0 -1
- package/dist/js/icons/menu-expand.js +0 -1
- package/dist/js/icons/menu.js +0 -1
- package/dist/js/icons/message-alt.js +0 -1
- package/dist/js/icons/message-disabled.js +0 -1
- package/dist/js/icons/message-typing.js +0 -1
- package/dist/js/icons/message.js +0 -1
- package/dist/js/icons/mic-off.js +0 -1
- package/dist/js/icons/mic-on.js +0 -1
- package/dist/js/icons/minus.js +0 -1
- package/dist/js/icons/mobile.js +0 -1
- package/dist/js/icons/money.js +0 -1
- package/dist/js/icons/monitor.js +0 -1
- package/dist/js/icons/mood-happy.js +0 -1
- package/dist/js/icons/mood-neutral.js +0 -1
- package/dist/js/icons/mood-unhappy.js +0 -1
- package/dist/js/icons/more-vert.js +0 -1
- package/dist/js/icons/more.js +0 -1
- package/dist/js/icons/note.js +0 -1
- package/dist/js/icons/notification.js +0 -1
- package/dist/js/icons/payment.js +0 -1
- package/dist/js/icons/people-alt.js +0 -1
- package/dist/js/icons/phone-disabled.js +0 -1
- package/dist/js/icons/phone.js +0 -1
- package/dist/js/icons/photo.js +0 -1
- package/dist/js/icons/pin.js +0 -1
- package/dist/js/icons/pound.js +0 -1
- package/dist/js/icons/power-on.js +0 -1
- package/dist/js/icons/printer.js +0 -1
- package/dist/js/icons/priority-high.js +0 -1
- package/dist/js/icons/priority-low.js +0 -1
- package/dist/js/icons/priority-medium.js +0 -1
- package/dist/js/icons/property-checked.js +0 -1
- package/dist/js/icons/property.js +0 -1
- package/dist/js/icons/radio-disabled.js +0 -1
- package/dist/js/icons/radio-selected.js +0 -1
- package/dist/js/icons/radio.js +0 -1
- package/dist/js/icons/refresh.js +0 -1
- package/dist/js/icons/rent.js +0 -1
- package/dist/js/icons/repeat.js +0 -1
- package/dist/js/icons/reply-all.js +0 -1
- package/dist/js/icons/reply.js +0 -1
- package/dist/js/icons/report.js +0 -1
- package/dist/js/icons/restore.js +0 -1
- package/dist/js/icons/sale.js +0 -1
- package/dist/js/icons/search.js +0 -1
- package/dist/js/icons/send.js +0 -1
- package/dist/js/icons/separator-dot.js +0 -1
- package/dist/js/icons/separator-line.js +0 -1
- package/dist/js/icons/settings-alt.js +0 -1
- package/dist/js/icons/settings.js +0 -1
- package/dist/js/icons/share.js +0 -1
- package/dist/js/icons/skip.js +0 -1
- package/dist/js/icons/social-facebook.js +0 -1
- package/dist/js/icons/social-instagram.js +0 -1
- package/dist/js/icons/social-linkedin.js +0 -1
- package/dist/js/icons/social-x.js +0 -1
- package/dist/js/icons/social-youtube.js +0 -1
- package/dist/js/icons/sort-ascend.js +0 -1
- package/dist/js/icons/sort-descend.js +0 -1
- package/dist/js/icons/sort.js +0 -1
- package/dist/js/icons/sprout.js +0 -1
- package/dist/js/icons/star.js +0 -1
- package/dist/js/icons/status-bad.js +0 -1
- package/dist/js/icons/status-good.js +0 -1
- package/dist/js/icons/status-paused.js +0 -1
- package/dist/js/icons/status-unknown.js +0 -1
- package/dist/js/icons/status.js +0 -1
- package/dist/js/icons/tag.js +0 -1
- package/dist/js/icons/task.js +0 -1
- package/dist/js/icons/time.js +0 -1
- package/dist/js/icons/trash.js +0 -1
- package/dist/js/icons/unarchive.js +0 -1
- package/dist/js/icons/user-outline.js +0 -1
- package/dist/js/icons/user.js +0 -1
- package/dist/js/icons/video.js +0 -1
- package/dist/js/icons/view-disabled.js +0 -1
- package/dist/js/icons/view.js +0 -1
- package/dist/js/icons/w3w.js +0 -1
- package/dist/js/icons/walking.js +0 -1
- package/dist/js/icons/wand.js +0 -1
- package/dist/js/icons/warning-outline.js +0 -1
- package/dist/js/icons/warning.js +0 -1
- package/dist/js/icons/web.js +0 -1
- package/dist/js/icons/workflow.js +0 -1
- package/dist/js/image-B8BoeAah.js +266 -0
- package/dist/js/index.js +283 -284
- package/dist/js/lab/table.js +0 -4
- package/dist/js/style.css +1 -1
- package/dist/js/{table-DOaobKax.js → table-BuT1Vhgh.js} +80 -80
- package/dist/js/utils/combobox.js +1 -14
- package/dist/js/utils/image.js +2 -191
- package/dist/js/utils/line-clamp.js +0 -2
- package/dist/js/utils/media-fallback.js +23 -0
- package/dist/js/utils/video.js +68 -0
- package/dist/types/core/accordion/summary/styles.d.ts +1 -1
- package/dist/types/core/accordion/summary/summary.d.ts +8 -3
- package/dist/types/core/accordion/summary/summary.d.ts.map +1 -1
- package/dist/types/core/accordion/summary/summary.figma.d.ts +2 -0
- package/dist/types/core/accordion/summary/summary.figma.d.ts.map +1 -0
- package/dist/types/core/accordion/summary/summary.stories.d.ts +5 -3
- package/dist/types/core/accordion/summary/summary.stories.d.ts.map +1 -1
- package/dist/types/core/accordion-group/__tests__/accordion-group.test.d.ts +2 -0
- package/dist/types/core/accordion-group/__tests__/accordion-group.test.d.ts.map +1 -0
- package/dist/types/core/accordion-group/accordion-group.d.ts +14 -0
- package/dist/types/core/accordion-group/accordion-group.d.ts.map +1 -0
- package/dist/types/core/accordion-group/accordion-group.figma.d.ts +2 -0
- package/dist/types/core/accordion-group/accordion-group.figma.d.ts.map +1 -0
- package/dist/types/core/accordion-group/accordion-group.stories.d.ts +15 -0
- package/dist/types/core/accordion-group/accordion-group.stories.d.ts.map +1 -0
- package/dist/types/core/accordion-group/index.d.ts +3 -0
- package/dist/types/core/accordion-group/index.d.ts.map +1 -0
- package/dist/types/core/accordion-group/styles.d.ts +2 -0
- package/dist/types/core/accordion-group/styles.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/article-card/article-card.figma.d.ts +2 -0
- package/dist/types/core/at-a-glance/article-card/article-card.figma.d.ts.map +1 -0
- package/dist/types/core/at-a-glance/carousel/styles.d.ts.map +1 -1
- package/dist/types/core/autocomplete/autocomplete.stories.d.ts +7 -0
- package/dist/types/core/autocomplete/autocomplete.stories.d.ts.map +1 -1
- package/dist/types/core/focused-layout/product-logo/product-logo.figma.d.ts +2 -0
- package/dist/types/core/focused-layout/product-logo/product-logo.figma.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/__tests__/dialog.test.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/__tests__/dialog.test.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/content/__tests__/content.test.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/content/__tests__/content.test.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/content/content.d.ts +15 -0
- package/dist/types/core/gallery-viewer/dialog/content/content.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/content/content.stories.d.ts +293 -0
- package/dist/types/core/gallery-viewer/dialog/content/content.stories.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/content/index.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/content/index.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/content/styles.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/content/styles.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/context.d.ts +19 -0
- package/dist/types/core/gallery-viewer/dialog/context.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/dialog.d.ts +63 -0
- package/dist/types/core/gallery-viewer/dialog/dialog.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/dialog.stories.d.ts +34 -0
- package/dist/types/core/gallery-viewer/dialog/dialog.stories.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/header/__tests__/header.test.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/header/__tests__/header.test.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/header/close-button.d.ts +13 -0
- package/dist/types/core/gallery-viewer/dialog/header/close-button.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/header/header.d.ts +15 -0
- package/dist/types/core/gallery-viewer/dialog/header/header.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/header/header.stories.d.ts +302 -0
- package/dist/types/core/gallery-viewer/dialog/header/header.stories.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/header/index.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/header/index.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/header/styles.d.ts +4 -0
- package/dist/types/core/gallery-viewer/dialog/header/styles.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/index.d.ts +6 -0
- package/dist/types/core/gallery-viewer/dialog/index.d.ts.map +1 -0
- package/dist/types/core/gallery-viewer/dialog/styles.d.ts +2 -0
- package/dist/types/core/gallery-viewer/dialog/styles.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/select/select.stories.d.ts +7 -0
- package/dist/types/core/select/select.stories.d.ts.map +1 -1
- package/dist/types/core/supplementary-info/supplementary-info-item.stories.d.ts +2 -3
- package/dist/types/core/supplementary-info/supplementary-info-item.stories.d.ts.map +1 -1
- package/dist/types/core/table/body-row/styles.d.ts.map +1 -1
- package/dist/types/core/table/checkbox/styles.d.ts.map +1 -1
- package/dist/types/core/table/index.d.ts +0 -1
- package/dist/types/core/table/index.d.ts.map +1 -1
- package/dist/types/core/table/more-actions/styles.d.ts.map +1 -1
- package/dist/types/core/table/primary-action/styles.d.ts.map +1 -1
- package/dist/types/core/theme-provider/index.d.ts +1 -0
- package/dist/types/core/theme-provider/index.d.ts.map +1 -1
- package/dist/types/deprecated/index.d.ts +1 -1
- package/dist/types/deprecated/index.d.ts.map +1 -1
- package/dist/types/deprecated/styles/index.d.ts +11 -0
- package/dist/types/deprecated/styles/index.d.ts.map +1 -0
- package/dist/types/lab/index.d.ts +0 -1
- package/dist/types/lab/index.d.ts.map +1 -1
- package/dist/types/utils/combobox/button/button.d.ts +4 -1
- package/dist/types/utils/combobox/button/button.d.ts.map +1 -1
- package/dist/types/utils/combobox/button/button.stories.d.ts +8 -0
- package/dist/types/utils/combobox/button/button.stories.d.ts.map +1 -1
- package/dist/types/utils/combobox/button/styles.d.ts.map +1 -1
- package/dist/types/utils/image/image.d.ts +2 -2
- package/dist/types/utils/image/image.d.ts.map +1 -1
- package/dist/types/utils/image/index.d.ts +0 -1
- package/dist/types/utils/image/index.d.ts.map +1 -1
- package/dist/types/utils/image/styles.d.ts +0 -4
- package/dist/types/utils/image/styles.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/media-fallback/__tests__/media-fallback.test.d.ts +2 -0
- package/dist/types/utils/media-fallback/__tests__/media-fallback.test.d.ts.map +1 -0
- package/dist/types/utils/media-fallback/index.d.ts +3 -0
- package/dist/types/utils/media-fallback/index.d.ts.map +1 -0
- package/dist/types/utils/{image/image-fallback.d.ts → media-fallback/media-fallback.d.ts} +5 -5
- package/dist/types/utils/media-fallback/media-fallback.d.ts.map +1 -0
- package/dist/types/utils/media-fallback/styles.d.ts +5 -0
- package/dist/types/utils/media-fallback/styles.d.ts.map +1 -0
- package/dist/types/utils/video/__tests__/video.test.d.ts +2 -0
- package/dist/types/utils/video/__tests__/video.test.d.ts.map +1 -0
- package/dist/types/utils/video/index.d.ts +4 -0
- package/dist/types/utils/video/index.d.ts.map +1 -0
- package/dist/types/utils/video/styles.d.ts +3 -0
- package/dist/types/utils/video/styles.d.ts.map +1 -0
- package/dist/types/utils/video/use-video.d.ts +19 -0
- package/dist/types/utils/video/use-video.d.ts.map +1 -0
- package/dist/types/utils/video/video.d.ts +25 -0
- package/dist/types/utils/video/video.d.ts.map +1 -0
- package/dist/types/utils/video/video.stories.d.ts +48 -0
- package/dist/types/utils/video/video.stories.d.ts.map +1 -0
- package/package.json +14 -19
- package/dist/js/image-DnCb83Fu.js +0 -95
- package/dist/js/key-value-list-zoqFOL6c.js +0 -47
- package/dist/js/lab/search-input.js +0 -50
- package/dist/js/lab/select-custom.js +0 -259
- package/dist/types/core/at-a-glance/card/card.figma.d.ts +0 -2
- package/dist/types/core/at-a-glance/card/card.figma.d.ts.map +0 -1
- package/dist/types/core/table/constants.d.ts +0 -9
- package/dist/types/core/table/constants.d.ts.map +0 -1
- package/dist/types/lab/search-input/__tests__/search-input.test.d.ts +0 -2
- package/dist/types/lab/search-input/__tests__/search-input.test.d.ts.map +0 -1
- package/dist/types/lab/search-input/index.d.ts +0 -3
- package/dist/types/lab/search-input/index.d.ts.map +0 -1
- package/dist/types/lab/search-input/search-input.d.ts +0 -32
- package/dist/types/lab/search-input/search-input.d.ts.map +0 -1
- package/dist/types/lab/search-input/search-input.stories.d.ts +0 -34
- package/dist/types/lab/search-input/search-input.stories.d.ts.map +0 -1
- package/dist/types/lab/search-input/styles.d.ts +0 -3
- package/dist/types/lab/search-input/styles.d.ts.map +0 -1
- package/dist/types/lab/select-custom/__tests__/helper.test.d.ts +0 -2
- package/dist/types/lab/select-custom/__tests__/helper.test.d.ts.map +0 -1
- package/dist/types/lab/select-custom/__tests__/select-custom.test.d.ts +0 -2
- package/dist/types/lab/select-custom/__tests__/select-custom.test.d.ts.map +0 -1
- package/dist/types/lab/select-custom/context.d.ts +0 -29
- package/dist/types/lab/select-custom/context.d.ts.map +0 -1
- package/dist/types/lab/select-custom/group/__tests__/group.test.d.ts +0 -2
- package/dist/types/lab/select-custom/group/__tests__/group.test.d.ts.map +0 -1
- package/dist/types/lab/select-custom/group/group.d.ts +0 -7
- package/dist/types/lab/select-custom/group/group.d.ts.map +0 -1
- package/dist/types/lab/select-custom/group/group.stories.d.ts +0 -24
- package/dist/types/lab/select-custom/group/group.stories.d.ts.map +0 -1
- package/dist/types/lab/select-custom/group/index.d.ts +0 -2
- package/dist/types/lab/select-custom/group/index.d.ts.map +0 -1
- package/dist/types/lab/select-custom/helper.d.ts +0 -22
- package/dist/types/lab/select-custom/helper.d.ts.map +0 -1
- package/dist/types/lab/select-custom/index.d.ts +0 -6
- package/dist/types/lab/select-custom/index.d.ts.map +0 -1
- package/dist/types/lab/select-custom/option/__tests__/option.test.d.ts +0 -2
- package/dist/types/lab/select-custom/option/__tests__/option.test.d.ts.map +0 -1
- package/dist/types/lab/select-custom/option/index.d.ts +0 -2
- package/dist/types/lab/select-custom/option/index.d.ts.map +0 -1
- package/dist/types/lab/select-custom/option/option.d.ts +0 -11
- package/dist/types/lab/select-custom/option/option.d.ts.map +0 -1
- package/dist/types/lab/select-custom/option/option.stories.d.ts +0 -55
- package/dist/types/lab/select-custom/option/option.stories.d.ts.map +0 -1
- package/dist/types/lab/select-custom/select-custom.d.ts +0 -41
- package/dist/types/lab/select-custom/select-custom.d.ts.map +0 -1
- package/dist/types/lab/select-custom/select-custom.stories.d.ts +0 -26
- package/dist/types/lab/select-custom/select-custom.stories.d.ts.map +0 -1
- package/dist/types/lab/select-custom/styles.d.ts +0 -16
- package/dist/types/lab/select-custom/styles.d.ts.map +0 -1
- package/dist/types/lab/select-custom/use-select-keyboard-navigation.d.ts +0 -2
- package/dist/types/lab/select-custom/use-select-keyboard-navigation.d.ts.map +0 -1
- package/dist/types/utils/image/__tests__/image-fallback.test.d.ts +0 -2
- package/dist/types/utils/image/__tests__/image-fallback.test.d.ts.map +0 -1
- package/dist/types/utils/image/image-fallback.d.ts.map +0 -1
|
@@ -200,7 +200,7 @@ var require_typescript = __commonJS({
|
|
|
200
200
|
SymbolDisplayPartKind: /* @__PURE__ */ __name(() => SymbolDisplayPartKind, "SymbolDisplayPartKind"),
|
|
201
201
|
SymbolFlags: /* @__PURE__ */ __name(() => SymbolFlags, "SymbolFlags"),
|
|
202
202
|
SymbolFormatFlags: /* @__PURE__ */ __name(() => SymbolFormatFlags, "SymbolFormatFlags"),
|
|
203
|
-
SyntaxKind: /* @__PURE__ */ __name(() =>
|
|
203
|
+
SyntaxKind: /* @__PURE__ */ __name(() => SyntaxKind7, "SyntaxKind"),
|
|
204
204
|
Ternary: /* @__PURE__ */ __name(() => Ternary, "Ternary"),
|
|
205
205
|
ThrottledCancellationToken: /* @__PURE__ */ __name(() => ThrottledCancellationToken, "ThrottledCancellationToken"),
|
|
206
206
|
TokenClass: /* @__PURE__ */ __name(() => TokenClass, "TokenClass"),
|
|
@@ -2202,7 +2202,7 @@ var require_typescript = __commonJS({
|
|
|
2202
2202
|
tracing: /* @__PURE__ */ __name(() => tracing, "tracing"),
|
|
2203
2203
|
tracingEnabled: /* @__PURE__ */ __name(() => tracingEnabled, "tracingEnabled"),
|
|
2204
2204
|
transferSourceFileChildren: /* @__PURE__ */ __name(() => transferSourceFileChildren, "transferSourceFileChildren"),
|
|
2205
|
-
transform: /* @__PURE__ */ __name(() =>
|
|
2205
|
+
transform: /* @__PURE__ */ __name(() => transform, "transform"),
|
|
2206
2206
|
transformClassFields: /* @__PURE__ */ __name(() => transformClassFields, "transformClassFields"),
|
|
2207
2207
|
transformDeclarations: /* @__PURE__ */ __name(() => transformDeclarations, "transformDeclarations"),
|
|
2208
2208
|
transformECMAScriptModule: /* @__PURE__ */ __name(() => transformECMAScriptModule, "transformECMAScriptModule"),
|
|
@@ -4286,7 +4286,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
4286
4286
|
function formatSyntaxKind(kind) {
|
|
4287
4287
|
return formatEnum(
|
|
4288
4288
|
kind,
|
|
4289
|
-
|
|
4289
|
+
SyntaxKind7,
|
|
4290
4290
|
/*isFlags*/
|
|
4291
4291
|
false
|
|
4292
4292
|
);
|
|
@@ -5835,513 +5835,513 @@ ${lanes.join("\n")}
|
|
|
5835
5835
|
})(tracingEnabled || (tracingEnabled = {}));
|
|
5836
5836
|
var startTracing = tracingEnabled.startTracing;
|
|
5837
5837
|
var dumpTracingLegend = tracingEnabled.dumpLegend;
|
|
5838
|
-
var
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
5838
|
+
var SyntaxKind7 = /* @__PURE__ */ ((SyntaxKind52) => {
|
|
5839
|
+
SyntaxKind52[SyntaxKind52["Unknown"] = 0] = "Unknown";
|
|
5840
|
+
SyntaxKind52[SyntaxKind52["EndOfFileToken"] = 1] = "EndOfFileToken";
|
|
5841
|
+
SyntaxKind52[SyntaxKind52["SingleLineCommentTrivia"] = 2] = "SingleLineCommentTrivia";
|
|
5842
|
+
SyntaxKind52[SyntaxKind52["MultiLineCommentTrivia"] = 3] = "MultiLineCommentTrivia";
|
|
5843
|
+
SyntaxKind52[SyntaxKind52["NewLineTrivia"] = 4] = "NewLineTrivia";
|
|
5844
|
+
SyntaxKind52[SyntaxKind52["WhitespaceTrivia"] = 5] = "WhitespaceTrivia";
|
|
5845
|
+
SyntaxKind52[SyntaxKind52["ShebangTrivia"] = 6] = "ShebangTrivia";
|
|
5846
|
+
SyntaxKind52[SyntaxKind52["ConflictMarkerTrivia"] = 7] = "ConflictMarkerTrivia";
|
|
5847
|
+
SyntaxKind52[SyntaxKind52["NonTextFileMarkerTrivia"] = 8] = "NonTextFileMarkerTrivia";
|
|
5848
|
+
SyntaxKind52[SyntaxKind52["NumericLiteral"] = 9] = "NumericLiteral";
|
|
5849
|
+
SyntaxKind52[SyntaxKind52["BigIntLiteral"] = 10] = "BigIntLiteral";
|
|
5850
|
+
SyntaxKind52[SyntaxKind52["StringLiteral"] = 11] = "StringLiteral";
|
|
5851
|
+
SyntaxKind52[SyntaxKind52["JsxText"] = 12] = "JsxText";
|
|
5852
|
+
SyntaxKind52[SyntaxKind52["JsxTextAllWhiteSpaces"] = 13] = "JsxTextAllWhiteSpaces";
|
|
5853
|
+
SyntaxKind52[SyntaxKind52["RegularExpressionLiteral"] = 14] = "RegularExpressionLiteral";
|
|
5854
|
+
SyntaxKind52[SyntaxKind52["NoSubstitutionTemplateLiteral"] = 15] = "NoSubstitutionTemplateLiteral";
|
|
5855
|
+
SyntaxKind52[SyntaxKind52["TemplateHead"] = 16] = "TemplateHead";
|
|
5856
|
+
SyntaxKind52[SyntaxKind52["TemplateMiddle"] = 17] = "TemplateMiddle";
|
|
5857
|
+
SyntaxKind52[SyntaxKind52["TemplateTail"] = 18] = "TemplateTail";
|
|
5858
|
+
SyntaxKind52[SyntaxKind52["OpenBraceToken"] = 19] = "OpenBraceToken";
|
|
5859
|
+
SyntaxKind52[SyntaxKind52["CloseBraceToken"] = 20] = "CloseBraceToken";
|
|
5860
|
+
SyntaxKind52[SyntaxKind52["OpenParenToken"] = 21] = "OpenParenToken";
|
|
5861
|
+
SyntaxKind52[SyntaxKind52["CloseParenToken"] = 22] = "CloseParenToken";
|
|
5862
|
+
SyntaxKind52[SyntaxKind52["OpenBracketToken"] = 23] = "OpenBracketToken";
|
|
5863
|
+
SyntaxKind52[SyntaxKind52["CloseBracketToken"] = 24] = "CloseBracketToken";
|
|
5864
|
+
SyntaxKind52[SyntaxKind52["DotToken"] = 25] = "DotToken";
|
|
5865
|
+
SyntaxKind52[SyntaxKind52["DotDotDotToken"] = 26] = "DotDotDotToken";
|
|
5866
|
+
SyntaxKind52[SyntaxKind52["SemicolonToken"] = 27] = "SemicolonToken";
|
|
5867
|
+
SyntaxKind52[SyntaxKind52["CommaToken"] = 28] = "CommaToken";
|
|
5868
|
+
SyntaxKind52[SyntaxKind52["QuestionDotToken"] = 29] = "QuestionDotToken";
|
|
5869
|
+
SyntaxKind52[SyntaxKind52["LessThanToken"] = 30] = "LessThanToken";
|
|
5870
|
+
SyntaxKind52[SyntaxKind52["LessThanSlashToken"] = 31] = "LessThanSlashToken";
|
|
5871
|
+
SyntaxKind52[SyntaxKind52["GreaterThanToken"] = 32] = "GreaterThanToken";
|
|
5872
|
+
SyntaxKind52[SyntaxKind52["LessThanEqualsToken"] = 33] = "LessThanEqualsToken";
|
|
5873
|
+
SyntaxKind52[SyntaxKind52["GreaterThanEqualsToken"] = 34] = "GreaterThanEqualsToken";
|
|
5874
|
+
SyntaxKind52[SyntaxKind52["EqualsEqualsToken"] = 35] = "EqualsEqualsToken";
|
|
5875
|
+
SyntaxKind52[SyntaxKind52["ExclamationEqualsToken"] = 36] = "ExclamationEqualsToken";
|
|
5876
|
+
SyntaxKind52[SyntaxKind52["EqualsEqualsEqualsToken"] = 37] = "EqualsEqualsEqualsToken";
|
|
5877
|
+
SyntaxKind52[SyntaxKind52["ExclamationEqualsEqualsToken"] = 38] = "ExclamationEqualsEqualsToken";
|
|
5878
|
+
SyntaxKind52[SyntaxKind52["EqualsGreaterThanToken"] = 39] = "EqualsGreaterThanToken";
|
|
5879
|
+
SyntaxKind52[SyntaxKind52["PlusToken"] = 40] = "PlusToken";
|
|
5880
|
+
SyntaxKind52[SyntaxKind52["MinusToken"] = 41] = "MinusToken";
|
|
5881
|
+
SyntaxKind52[SyntaxKind52["AsteriskToken"] = 42] = "AsteriskToken";
|
|
5882
|
+
SyntaxKind52[SyntaxKind52["AsteriskAsteriskToken"] = 43] = "AsteriskAsteriskToken";
|
|
5883
|
+
SyntaxKind52[SyntaxKind52["SlashToken"] = 44] = "SlashToken";
|
|
5884
|
+
SyntaxKind52[SyntaxKind52["PercentToken"] = 45] = "PercentToken";
|
|
5885
|
+
SyntaxKind52[SyntaxKind52["PlusPlusToken"] = 46] = "PlusPlusToken";
|
|
5886
|
+
SyntaxKind52[SyntaxKind52["MinusMinusToken"] = 47] = "MinusMinusToken";
|
|
5887
|
+
SyntaxKind52[SyntaxKind52["LessThanLessThanToken"] = 48] = "LessThanLessThanToken";
|
|
5888
|
+
SyntaxKind52[SyntaxKind52["GreaterThanGreaterThanToken"] = 49] = "GreaterThanGreaterThanToken";
|
|
5889
|
+
SyntaxKind52[SyntaxKind52["GreaterThanGreaterThanGreaterThanToken"] = 50] = "GreaterThanGreaterThanGreaterThanToken";
|
|
5890
|
+
SyntaxKind52[SyntaxKind52["AmpersandToken"] = 51] = "AmpersandToken";
|
|
5891
|
+
SyntaxKind52[SyntaxKind52["BarToken"] = 52] = "BarToken";
|
|
5892
|
+
SyntaxKind52[SyntaxKind52["CaretToken"] = 53] = "CaretToken";
|
|
5893
|
+
SyntaxKind52[SyntaxKind52["ExclamationToken"] = 54] = "ExclamationToken";
|
|
5894
|
+
SyntaxKind52[SyntaxKind52["TildeToken"] = 55] = "TildeToken";
|
|
5895
|
+
SyntaxKind52[SyntaxKind52["AmpersandAmpersandToken"] = 56] = "AmpersandAmpersandToken";
|
|
5896
|
+
SyntaxKind52[SyntaxKind52["BarBarToken"] = 57] = "BarBarToken";
|
|
5897
|
+
SyntaxKind52[SyntaxKind52["QuestionToken"] = 58] = "QuestionToken";
|
|
5898
|
+
SyntaxKind52[SyntaxKind52["ColonToken"] = 59] = "ColonToken";
|
|
5899
|
+
SyntaxKind52[SyntaxKind52["AtToken"] = 60] = "AtToken";
|
|
5900
|
+
SyntaxKind52[SyntaxKind52["QuestionQuestionToken"] = 61] = "QuestionQuestionToken";
|
|
5901
|
+
SyntaxKind52[SyntaxKind52["BacktickToken"] = 62] = "BacktickToken";
|
|
5902
|
+
SyntaxKind52[SyntaxKind52["HashToken"] = 63] = "HashToken";
|
|
5903
|
+
SyntaxKind52[SyntaxKind52["EqualsToken"] = 64] = "EqualsToken";
|
|
5904
|
+
SyntaxKind52[SyntaxKind52["PlusEqualsToken"] = 65] = "PlusEqualsToken";
|
|
5905
|
+
SyntaxKind52[SyntaxKind52["MinusEqualsToken"] = 66] = "MinusEqualsToken";
|
|
5906
|
+
SyntaxKind52[SyntaxKind52["AsteriskEqualsToken"] = 67] = "AsteriskEqualsToken";
|
|
5907
|
+
SyntaxKind52[SyntaxKind52["AsteriskAsteriskEqualsToken"] = 68] = "AsteriskAsteriskEqualsToken";
|
|
5908
|
+
SyntaxKind52[SyntaxKind52["SlashEqualsToken"] = 69] = "SlashEqualsToken";
|
|
5909
|
+
SyntaxKind52[SyntaxKind52["PercentEqualsToken"] = 70] = "PercentEqualsToken";
|
|
5910
|
+
SyntaxKind52[SyntaxKind52["LessThanLessThanEqualsToken"] = 71] = "LessThanLessThanEqualsToken";
|
|
5911
|
+
SyntaxKind52[SyntaxKind52["GreaterThanGreaterThanEqualsToken"] = 72] = "GreaterThanGreaterThanEqualsToken";
|
|
5912
|
+
SyntaxKind52[SyntaxKind52["GreaterThanGreaterThanGreaterThanEqualsToken"] = 73] = "GreaterThanGreaterThanGreaterThanEqualsToken";
|
|
5913
|
+
SyntaxKind52[SyntaxKind52["AmpersandEqualsToken"] = 74] = "AmpersandEqualsToken";
|
|
5914
|
+
SyntaxKind52[SyntaxKind52["BarEqualsToken"] = 75] = "BarEqualsToken";
|
|
5915
|
+
SyntaxKind52[SyntaxKind52["BarBarEqualsToken"] = 76] = "BarBarEqualsToken";
|
|
5916
|
+
SyntaxKind52[SyntaxKind52["AmpersandAmpersandEqualsToken"] = 77] = "AmpersandAmpersandEqualsToken";
|
|
5917
|
+
SyntaxKind52[SyntaxKind52["QuestionQuestionEqualsToken"] = 78] = "QuestionQuestionEqualsToken";
|
|
5918
|
+
SyntaxKind52[SyntaxKind52["CaretEqualsToken"] = 79] = "CaretEqualsToken";
|
|
5919
|
+
SyntaxKind52[SyntaxKind52["Identifier"] = 80] = "Identifier";
|
|
5920
|
+
SyntaxKind52[SyntaxKind52["PrivateIdentifier"] = 81] = "PrivateIdentifier";
|
|
5921
|
+
SyntaxKind52[SyntaxKind52["JSDocCommentTextToken"] = 82] = "JSDocCommentTextToken";
|
|
5922
|
+
SyntaxKind52[SyntaxKind52["BreakKeyword"] = 83] = "BreakKeyword";
|
|
5923
|
+
SyntaxKind52[SyntaxKind52["CaseKeyword"] = 84] = "CaseKeyword";
|
|
5924
|
+
SyntaxKind52[SyntaxKind52["CatchKeyword"] = 85] = "CatchKeyword";
|
|
5925
|
+
SyntaxKind52[SyntaxKind52["ClassKeyword"] = 86] = "ClassKeyword";
|
|
5926
|
+
SyntaxKind52[SyntaxKind52["ConstKeyword"] = 87] = "ConstKeyword";
|
|
5927
|
+
SyntaxKind52[SyntaxKind52["ContinueKeyword"] = 88] = "ContinueKeyword";
|
|
5928
|
+
SyntaxKind52[SyntaxKind52["DebuggerKeyword"] = 89] = "DebuggerKeyword";
|
|
5929
|
+
SyntaxKind52[SyntaxKind52["DefaultKeyword"] = 90] = "DefaultKeyword";
|
|
5930
|
+
SyntaxKind52[SyntaxKind52["DeleteKeyword"] = 91] = "DeleteKeyword";
|
|
5931
|
+
SyntaxKind52[SyntaxKind52["DoKeyword"] = 92] = "DoKeyword";
|
|
5932
|
+
SyntaxKind52[SyntaxKind52["ElseKeyword"] = 93] = "ElseKeyword";
|
|
5933
|
+
SyntaxKind52[SyntaxKind52["EnumKeyword"] = 94] = "EnumKeyword";
|
|
5934
|
+
SyntaxKind52[SyntaxKind52["ExportKeyword"] = 95] = "ExportKeyword";
|
|
5935
|
+
SyntaxKind52[SyntaxKind52["ExtendsKeyword"] = 96] = "ExtendsKeyword";
|
|
5936
|
+
SyntaxKind52[SyntaxKind52["FalseKeyword"] = 97] = "FalseKeyword";
|
|
5937
|
+
SyntaxKind52[SyntaxKind52["FinallyKeyword"] = 98] = "FinallyKeyword";
|
|
5938
|
+
SyntaxKind52[SyntaxKind52["ForKeyword"] = 99] = "ForKeyword";
|
|
5939
|
+
SyntaxKind52[SyntaxKind52["FunctionKeyword"] = 100] = "FunctionKeyword";
|
|
5940
|
+
SyntaxKind52[SyntaxKind52["IfKeyword"] = 101] = "IfKeyword";
|
|
5941
|
+
SyntaxKind52[SyntaxKind52["ImportKeyword"] = 102] = "ImportKeyword";
|
|
5942
|
+
SyntaxKind52[SyntaxKind52["InKeyword"] = 103] = "InKeyword";
|
|
5943
|
+
SyntaxKind52[SyntaxKind52["InstanceOfKeyword"] = 104] = "InstanceOfKeyword";
|
|
5944
|
+
SyntaxKind52[SyntaxKind52["NewKeyword"] = 105] = "NewKeyword";
|
|
5945
|
+
SyntaxKind52[SyntaxKind52["NullKeyword"] = 106] = "NullKeyword";
|
|
5946
|
+
SyntaxKind52[SyntaxKind52["ReturnKeyword"] = 107] = "ReturnKeyword";
|
|
5947
|
+
SyntaxKind52[SyntaxKind52["SuperKeyword"] = 108] = "SuperKeyword";
|
|
5948
|
+
SyntaxKind52[SyntaxKind52["SwitchKeyword"] = 109] = "SwitchKeyword";
|
|
5949
|
+
SyntaxKind52[SyntaxKind52["ThisKeyword"] = 110] = "ThisKeyword";
|
|
5950
|
+
SyntaxKind52[SyntaxKind52["ThrowKeyword"] = 111] = "ThrowKeyword";
|
|
5951
|
+
SyntaxKind52[SyntaxKind52["TrueKeyword"] = 112] = "TrueKeyword";
|
|
5952
|
+
SyntaxKind52[SyntaxKind52["TryKeyword"] = 113] = "TryKeyword";
|
|
5953
|
+
SyntaxKind52[SyntaxKind52["TypeOfKeyword"] = 114] = "TypeOfKeyword";
|
|
5954
|
+
SyntaxKind52[SyntaxKind52["VarKeyword"] = 115] = "VarKeyword";
|
|
5955
|
+
SyntaxKind52[SyntaxKind52["VoidKeyword"] = 116] = "VoidKeyword";
|
|
5956
|
+
SyntaxKind52[SyntaxKind52["WhileKeyword"] = 117] = "WhileKeyword";
|
|
5957
|
+
SyntaxKind52[SyntaxKind52["WithKeyword"] = 118] = "WithKeyword";
|
|
5958
|
+
SyntaxKind52[SyntaxKind52["ImplementsKeyword"] = 119] = "ImplementsKeyword";
|
|
5959
|
+
SyntaxKind52[SyntaxKind52["InterfaceKeyword"] = 120] = "InterfaceKeyword";
|
|
5960
|
+
SyntaxKind52[SyntaxKind52["LetKeyword"] = 121] = "LetKeyword";
|
|
5961
|
+
SyntaxKind52[SyntaxKind52["PackageKeyword"] = 122] = "PackageKeyword";
|
|
5962
|
+
SyntaxKind52[SyntaxKind52["PrivateKeyword"] = 123] = "PrivateKeyword";
|
|
5963
|
+
SyntaxKind52[SyntaxKind52["ProtectedKeyword"] = 124] = "ProtectedKeyword";
|
|
5964
|
+
SyntaxKind52[SyntaxKind52["PublicKeyword"] = 125] = "PublicKeyword";
|
|
5965
|
+
SyntaxKind52[SyntaxKind52["StaticKeyword"] = 126] = "StaticKeyword";
|
|
5966
|
+
SyntaxKind52[SyntaxKind52["YieldKeyword"] = 127] = "YieldKeyword";
|
|
5967
|
+
SyntaxKind52[SyntaxKind52["AbstractKeyword"] = 128] = "AbstractKeyword";
|
|
5968
|
+
SyntaxKind52[SyntaxKind52["AccessorKeyword"] = 129] = "AccessorKeyword";
|
|
5969
|
+
SyntaxKind52[SyntaxKind52["AsKeyword"] = 130] = "AsKeyword";
|
|
5970
|
+
SyntaxKind52[SyntaxKind52["AssertsKeyword"] = 131] = "AssertsKeyword";
|
|
5971
|
+
SyntaxKind52[SyntaxKind52["AssertKeyword"] = 132] = "AssertKeyword";
|
|
5972
|
+
SyntaxKind52[SyntaxKind52["AnyKeyword"] = 133] = "AnyKeyword";
|
|
5973
|
+
SyntaxKind52[SyntaxKind52["AsyncKeyword"] = 134] = "AsyncKeyword";
|
|
5974
|
+
SyntaxKind52[SyntaxKind52["AwaitKeyword"] = 135] = "AwaitKeyword";
|
|
5975
|
+
SyntaxKind52[SyntaxKind52["BooleanKeyword"] = 136] = "BooleanKeyword";
|
|
5976
|
+
SyntaxKind52[SyntaxKind52["ConstructorKeyword"] = 137] = "ConstructorKeyword";
|
|
5977
|
+
SyntaxKind52[SyntaxKind52["DeclareKeyword"] = 138] = "DeclareKeyword";
|
|
5978
|
+
SyntaxKind52[SyntaxKind52["GetKeyword"] = 139] = "GetKeyword";
|
|
5979
|
+
SyntaxKind52[SyntaxKind52["InferKeyword"] = 140] = "InferKeyword";
|
|
5980
|
+
SyntaxKind52[SyntaxKind52["IntrinsicKeyword"] = 141] = "IntrinsicKeyword";
|
|
5981
|
+
SyntaxKind52[SyntaxKind52["IsKeyword"] = 142] = "IsKeyword";
|
|
5982
|
+
SyntaxKind52[SyntaxKind52["KeyOfKeyword"] = 143] = "KeyOfKeyword";
|
|
5983
|
+
SyntaxKind52[SyntaxKind52["ModuleKeyword"] = 144] = "ModuleKeyword";
|
|
5984
|
+
SyntaxKind52[SyntaxKind52["NamespaceKeyword"] = 145] = "NamespaceKeyword";
|
|
5985
|
+
SyntaxKind52[SyntaxKind52["NeverKeyword"] = 146] = "NeverKeyword";
|
|
5986
|
+
SyntaxKind52[SyntaxKind52["OutKeyword"] = 147] = "OutKeyword";
|
|
5987
|
+
SyntaxKind52[SyntaxKind52["ReadonlyKeyword"] = 148] = "ReadonlyKeyword";
|
|
5988
|
+
SyntaxKind52[SyntaxKind52["RequireKeyword"] = 149] = "RequireKeyword";
|
|
5989
|
+
SyntaxKind52[SyntaxKind52["NumberKeyword"] = 150] = "NumberKeyword";
|
|
5990
|
+
SyntaxKind52[SyntaxKind52["ObjectKeyword"] = 151] = "ObjectKeyword";
|
|
5991
|
+
SyntaxKind52[SyntaxKind52["SatisfiesKeyword"] = 152] = "SatisfiesKeyword";
|
|
5992
|
+
SyntaxKind52[SyntaxKind52["SetKeyword"] = 153] = "SetKeyword";
|
|
5993
|
+
SyntaxKind52[SyntaxKind52["StringKeyword"] = 154] = "StringKeyword";
|
|
5994
|
+
SyntaxKind52[SyntaxKind52["SymbolKeyword"] = 155] = "SymbolKeyword";
|
|
5995
|
+
SyntaxKind52[SyntaxKind52["TypeKeyword"] = 156] = "TypeKeyword";
|
|
5996
|
+
SyntaxKind52[SyntaxKind52["UndefinedKeyword"] = 157] = "UndefinedKeyword";
|
|
5997
|
+
SyntaxKind52[SyntaxKind52["UniqueKeyword"] = 158] = "UniqueKeyword";
|
|
5998
|
+
SyntaxKind52[SyntaxKind52["UnknownKeyword"] = 159] = "UnknownKeyword";
|
|
5999
|
+
SyntaxKind52[SyntaxKind52["UsingKeyword"] = 160] = "UsingKeyword";
|
|
6000
|
+
SyntaxKind52[SyntaxKind52["FromKeyword"] = 161] = "FromKeyword";
|
|
6001
|
+
SyntaxKind52[SyntaxKind52["GlobalKeyword"] = 162] = "GlobalKeyword";
|
|
6002
|
+
SyntaxKind52[SyntaxKind52["BigIntKeyword"] = 163] = "BigIntKeyword";
|
|
6003
|
+
SyntaxKind52[SyntaxKind52["OverrideKeyword"] = 164] = "OverrideKeyword";
|
|
6004
|
+
SyntaxKind52[SyntaxKind52["OfKeyword"] = 165] = "OfKeyword";
|
|
6005
|
+
SyntaxKind52[SyntaxKind52["DeferKeyword"] = 166] = "DeferKeyword";
|
|
6006
|
+
SyntaxKind52[SyntaxKind52["QualifiedName"] = 167] = "QualifiedName";
|
|
6007
|
+
SyntaxKind52[SyntaxKind52["ComputedPropertyName"] = 168] = "ComputedPropertyName";
|
|
6008
|
+
SyntaxKind52[SyntaxKind52["TypeParameter"] = 169] = "TypeParameter";
|
|
6009
|
+
SyntaxKind52[SyntaxKind52["Parameter"] = 170] = "Parameter";
|
|
6010
|
+
SyntaxKind52[SyntaxKind52["Decorator"] = 171] = "Decorator";
|
|
6011
|
+
SyntaxKind52[SyntaxKind52["PropertySignature"] = 172] = "PropertySignature";
|
|
6012
|
+
SyntaxKind52[SyntaxKind52["PropertyDeclaration"] = 173] = "PropertyDeclaration";
|
|
6013
|
+
SyntaxKind52[SyntaxKind52["MethodSignature"] = 174] = "MethodSignature";
|
|
6014
|
+
SyntaxKind52[SyntaxKind52["MethodDeclaration"] = 175] = "MethodDeclaration";
|
|
6015
|
+
SyntaxKind52[SyntaxKind52["ClassStaticBlockDeclaration"] = 176] = "ClassStaticBlockDeclaration";
|
|
6016
|
+
SyntaxKind52[SyntaxKind52["Constructor"] = 177] = "Constructor";
|
|
6017
|
+
SyntaxKind52[SyntaxKind52["GetAccessor"] = 178] = "GetAccessor";
|
|
6018
|
+
SyntaxKind52[SyntaxKind52["SetAccessor"] = 179] = "SetAccessor";
|
|
6019
|
+
SyntaxKind52[SyntaxKind52["CallSignature"] = 180] = "CallSignature";
|
|
6020
|
+
SyntaxKind52[SyntaxKind52["ConstructSignature"] = 181] = "ConstructSignature";
|
|
6021
|
+
SyntaxKind52[SyntaxKind52["IndexSignature"] = 182] = "IndexSignature";
|
|
6022
|
+
SyntaxKind52[SyntaxKind52["TypePredicate"] = 183] = "TypePredicate";
|
|
6023
|
+
SyntaxKind52[SyntaxKind52["TypeReference"] = 184] = "TypeReference";
|
|
6024
|
+
SyntaxKind52[SyntaxKind52["FunctionType"] = 185] = "FunctionType";
|
|
6025
|
+
SyntaxKind52[SyntaxKind52["ConstructorType"] = 186] = "ConstructorType";
|
|
6026
|
+
SyntaxKind52[SyntaxKind52["TypeQuery"] = 187] = "TypeQuery";
|
|
6027
|
+
SyntaxKind52[SyntaxKind52["TypeLiteral"] = 188] = "TypeLiteral";
|
|
6028
|
+
SyntaxKind52[SyntaxKind52["ArrayType"] = 189] = "ArrayType";
|
|
6029
|
+
SyntaxKind52[SyntaxKind52["TupleType"] = 190] = "TupleType";
|
|
6030
|
+
SyntaxKind52[SyntaxKind52["OptionalType"] = 191] = "OptionalType";
|
|
6031
|
+
SyntaxKind52[SyntaxKind52["RestType"] = 192] = "RestType";
|
|
6032
|
+
SyntaxKind52[SyntaxKind52["UnionType"] = 193] = "UnionType";
|
|
6033
|
+
SyntaxKind52[SyntaxKind52["IntersectionType"] = 194] = "IntersectionType";
|
|
6034
|
+
SyntaxKind52[SyntaxKind52["ConditionalType"] = 195] = "ConditionalType";
|
|
6035
|
+
SyntaxKind52[SyntaxKind52["InferType"] = 196] = "InferType";
|
|
6036
|
+
SyntaxKind52[SyntaxKind52["ParenthesizedType"] = 197] = "ParenthesizedType";
|
|
6037
|
+
SyntaxKind52[SyntaxKind52["ThisType"] = 198] = "ThisType";
|
|
6038
|
+
SyntaxKind52[SyntaxKind52["TypeOperator"] = 199] = "TypeOperator";
|
|
6039
|
+
SyntaxKind52[SyntaxKind52["IndexedAccessType"] = 200] = "IndexedAccessType";
|
|
6040
|
+
SyntaxKind52[SyntaxKind52["MappedType"] = 201] = "MappedType";
|
|
6041
|
+
SyntaxKind52[SyntaxKind52["LiteralType"] = 202] = "LiteralType";
|
|
6042
|
+
SyntaxKind52[SyntaxKind52["NamedTupleMember"] = 203] = "NamedTupleMember";
|
|
6043
|
+
SyntaxKind52[SyntaxKind52["TemplateLiteralType"] = 204] = "TemplateLiteralType";
|
|
6044
|
+
SyntaxKind52[SyntaxKind52["TemplateLiteralTypeSpan"] = 205] = "TemplateLiteralTypeSpan";
|
|
6045
|
+
SyntaxKind52[SyntaxKind52["ImportType"] = 206] = "ImportType";
|
|
6046
|
+
SyntaxKind52[SyntaxKind52["ObjectBindingPattern"] = 207] = "ObjectBindingPattern";
|
|
6047
|
+
SyntaxKind52[SyntaxKind52["ArrayBindingPattern"] = 208] = "ArrayBindingPattern";
|
|
6048
|
+
SyntaxKind52[SyntaxKind52["BindingElement"] = 209] = "BindingElement";
|
|
6049
|
+
SyntaxKind52[SyntaxKind52["ArrayLiteralExpression"] = 210] = "ArrayLiteralExpression";
|
|
6050
|
+
SyntaxKind52[SyntaxKind52["ObjectLiteralExpression"] = 211] = "ObjectLiteralExpression";
|
|
6051
|
+
SyntaxKind52[SyntaxKind52["PropertyAccessExpression"] = 212] = "PropertyAccessExpression";
|
|
6052
|
+
SyntaxKind52[SyntaxKind52["ElementAccessExpression"] = 213] = "ElementAccessExpression";
|
|
6053
|
+
SyntaxKind52[SyntaxKind52["CallExpression"] = 214] = "CallExpression";
|
|
6054
|
+
SyntaxKind52[SyntaxKind52["NewExpression"] = 215] = "NewExpression";
|
|
6055
|
+
SyntaxKind52[SyntaxKind52["TaggedTemplateExpression"] = 216] = "TaggedTemplateExpression";
|
|
6056
|
+
SyntaxKind52[SyntaxKind52["TypeAssertionExpression"] = 217] = "TypeAssertionExpression";
|
|
6057
|
+
SyntaxKind52[SyntaxKind52["ParenthesizedExpression"] = 218] = "ParenthesizedExpression";
|
|
6058
|
+
SyntaxKind52[SyntaxKind52["FunctionExpression"] = 219] = "FunctionExpression";
|
|
6059
|
+
SyntaxKind52[SyntaxKind52["ArrowFunction"] = 220] = "ArrowFunction";
|
|
6060
|
+
SyntaxKind52[SyntaxKind52["DeleteExpression"] = 221] = "DeleteExpression";
|
|
6061
|
+
SyntaxKind52[SyntaxKind52["TypeOfExpression"] = 222] = "TypeOfExpression";
|
|
6062
|
+
SyntaxKind52[SyntaxKind52["VoidExpression"] = 223] = "VoidExpression";
|
|
6063
|
+
SyntaxKind52[SyntaxKind52["AwaitExpression"] = 224] = "AwaitExpression";
|
|
6064
|
+
SyntaxKind52[SyntaxKind52["PrefixUnaryExpression"] = 225] = "PrefixUnaryExpression";
|
|
6065
|
+
SyntaxKind52[SyntaxKind52["PostfixUnaryExpression"] = 226] = "PostfixUnaryExpression";
|
|
6066
|
+
SyntaxKind52[SyntaxKind52["BinaryExpression"] = 227] = "BinaryExpression";
|
|
6067
|
+
SyntaxKind52[SyntaxKind52["ConditionalExpression"] = 228] = "ConditionalExpression";
|
|
6068
|
+
SyntaxKind52[SyntaxKind52["TemplateExpression"] = 229] = "TemplateExpression";
|
|
6069
|
+
SyntaxKind52[SyntaxKind52["YieldExpression"] = 230] = "YieldExpression";
|
|
6070
|
+
SyntaxKind52[SyntaxKind52["SpreadElement"] = 231] = "SpreadElement";
|
|
6071
|
+
SyntaxKind52[SyntaxKind52["ClassExpression"] = 232] = "ClassExpression";
|
|
6072
|
+
SyntaxKind52[SyntaxKind52["OmittedExpression"] = 233] = "OmittedExpression";
|
|
6073
|
+
SyntaxKind52[SyntaxKind52["ExpressionWithTypeArguments"] = 234] = "ExpressionWithTypeArguments";
|
|
6074
|
+
SyntaxKind52[SyntaxKind52["AsExpression"] = 235] = "AsExpression";
|
|
6075
|
+
SyntaxKind52[SyntaxKind52["NonNullExpression"] = 236] = "NonNullExpression";
|
|
6076
|
+
SyntaxKind52[SyntaxKind52["MetaProperty"] = 237] = "MetaProperty";
|
|
6077
|
+
SyntaxKind52[SyntaxKind52["SyntheticExpression"] = 238] = "SyntheticExpression";
|
|
6078
|
+
SyntaxKind52[SyntaxKind52["SatisfiesExpression"] = 239] = "SatisfiesExpression";
|
|
6079
|
+
SyntaxKind52[SyntaxKind52["TemplateSpan"] = 240] = "TemplateSpan";
|
|
6080
|
+
SyntaxKind52[SyntaxKind52["SemicolonClassElement"] = 241] = "SemicolonClassElement";
|
|
6081
|
+
SyntaxKind52[SyntaxKind52["Block"] = 242] = "Block";
|
|
6082
|
+
SyntaxKind52[SyntaxKind52["EmptyStatement"] = 243] = "EmptyStatement";
|
|
6083
|
+
SyntaxKind52[SyntaxKind52["VariableStatement"] = 244] = "VariableStatement";
|
|
6084
|
+
SyntaxKind52[SyntaxKind52["ExpressionStatement"] = 245] = "ExpressionStatement";
|
|
6085
|
+
SyntaxKind52[SyntaxKind52["IfStatement"] = 246] = "IfStatement";
|
|
6086
|
+
SyntaxKind52[SyntaxKind52["DoStatement"] = 247] = "DoStatement";
|
|
6087
|
+
SyntaxKind52[SyntaxKind52["WhileStatement"] = 248] = "WhileStatement";
|
|
6088
|
+
SyntaxKind52[SyntaxKind52["ForStatement"] = 249] = "ForStatement";
|
|
6089
|
+
SyntaxKind52[SyntaxKind52["ForInStatement"] = 250] = "ForInStatement";
|
|
6090
|
+
SyntaxKind52[SyntaxKind52["ForOfStatement"] = 251] = "ForOfStatement";
|
|
6091
|
+
SyntaxKind52[SyntaxKind52["ContinueStatement"] = 252] = "ContinueStatement";
|
|
6092
|
+
SyntaxKind52[SyntaxKind52["BreakStatement"] = 253] = "BreakStatement";
|
|
6093
|
+
SyntaxKind52[SyntaxKind52["ReturnStatement"] = 254] = "ReturnStatement";
|
|
6094
|
+
SyntaxKind52[SyntaxKind52["WithStatement"] = 255] = "WithStatement";
|
|
6095
|
+
SyntaxKind52[SyntaxKind52["SwitchStatement"] = 256] = "SwitchStatement";
|
|
6096
|
+
SyntaxKind52[SyntaxKind52["LabeledStatement"] = 257] = "LabeledStatement";
|
|
6097
|
+
SyntaxKind52[SyntaxKind52["ThrowStatement"] = 258] = "ThrowStatement";
|
|
6098
|
+
SyntaxKind52[SyntaxKind52["TryStatement"] = 259] = "TryStatement";
|
|
6099
|
+
SyntaxKind52[SyntaxKind52["DebuggerStatement"] = 260] = "DebuggerStatement";
|
|
6100
|
+
SyntaxKind52[SyntaxKind52["VariableDeclaration"] = 261] = "VariableDeclaration";
|
|
6101
|
+
SyntaxKind52[SyntaxKind52["VariableDeclarationList"] = 262] = "VariableDeclarationList";
|
|
6102
|
+
SyntaxKind52[SyntaxKind52["FunctionDeclaration"] = 263] = "FunctionDeclaration";
|
|
6103
|
+
SyntaxKind52[SyntaxKind52["ClassDeclaration"] = 264] = "ClassDeclaration";
|
|
6104
|
+
SyntaxKind52[SyntaxKind52["InterfaceDeclaration"] = 265] = "InterfaceDeclaration";
|
|
6105
|
+
SyntaxKind52[SyntaxKind52["TypeAliasDeclaration"] = 266] = "TypeAliasDeclaration";
|
|
6106
|
+
SyntaxKind52[SyntaxKind52["EnumDeclaration"] = 267] = "EnumDeclaration";
|
|
6107
|
+
SyntaxKind52[SyntaxKind52["ModuleDeclaration"] = 268] = "ModuleDeclaration";
|
|
6108
|
+
SyntaxKind52[SyntaxKind52["ModuleBlock"] = 269] = "ModuleBlock";
|
|
6109
|
+
SyntaxKind52[SyntaxKind52["CaseBlock"] = 270] = "CaseBlock";
|
|
6110
|
+
SyntaxKind52[SyntaxKind52["NamespaceExportDeclaration"] = 271] = "NamespaceExportDeclaration";
|
|
6111
|
+
SyntaxKind52[SyntaxKind52["ImportEqualsDeclaration"] = 272] = "ImportEqualsDeclaration";
|
|
6112
|
+
SyntaxKind52[SyntaxKind52["ImportDeclaration"] = 273] = "ImportDeclaration";
|
|
6113
|
+
SyntaxKind52[SyntaxKind52["ImportClause"] = 274] = "ImportClause";
|
|
6114
|
+
SyntaxKind52[SyntaxKind52["NamespaceImport"] = 275] = "NamespaceImport";
|
|
6115
|
+
SyntaxKind52[SyntaxKind52["NamedImports"] = 276] = "NamedImports";
|
|
6116
|
+
SyntaxKind52[SyntaxKind52["ImportSpecifier"] = 277] = "ImportSpecifier";
|
|
6117
|
+
SyntaxKind52[SyntaxKind52["ExportAssignment"] = 278] = "ExportAssignment";
|
|
6118
|
+
SyntaxKind52[SyntaxKind52["ExportDeclaration"] = 279] = "ExportDeclaration";
|
|
6119
|
+
SyntaxKind52[SyntaxKind52["NamedExports"] = 280] = "NamedExports";
|
|
6120
|
+
SyntaxKind52[SyntaxKind52["NamespaceExport"] = 281] = "NamespaceExport";
|
|
6121
|
+
SyntaxKind52[SyntaxKind52["ExportSpecifier"] = 282] = "ExportSpecifier";
|
|
6122
|
+
SyntaxKind52[SyntaxKind52["MissingDeclaration"] = 283] = "MissingDeclaration";
|
|
6123
|
+
SyntaxKind52[SyntaxKind52["ExternalModuleReference"] = 284] = "ExternalModuleReference";
|
|
6124
|
+
SyntaxKind52[SyntaxKind52["JsxElement"] = 285] = "JsxElement";
|
|
6125
|
+
SyntaxKind52[SyntaxKind52["JsxSelfClosingElement"] = 286] = "JsxSelfClosingElement";
|
|
6126
|
+
SyntaxKind52[SyntaxKind52["JsxOpeningElement"] = 287] = "JsxOpeningElement";
|
|
6127
|
+
SyntaxKind52[SyntaxKind52["JsxClosingElement"] = 288] = "JsxClosingElement";
|
|
6128
|
+
SyntaxKind52[SyntaxKind52["JsxFragment"] = 289] = "JsxFragment";
|
|
6129
|
+
SyntaxKind52[SyntaxKind52["JsxOpeningFragment"] = 290] = "JsxOpeningFragment";
|
|
6130
|
+
SyntaxKind52[SyntaxKind52["JsxClosingFragment"] = 291] = "JsxClosingFragment";
|
|
6131
|
+
SyntaxKind52[SyntaxKind52["JsxAttribute"] = 292] = "JsxAttribute";
|
|
6132
|
+
SyntaxKind52[SyntaxKind52["JsxAttributes"] = 293] = "JsxAttributes";
|
|
6133
|
+
SyntaxKind52[SyntaxKind52["JsxSpreadAttribute"] = 294] = "JsxSpreadAttribute";
|
|
6134
|
+
SyntaxKind52[SyntaxKind52["JsxExpression"] = 295] = "JsxExpression";
|
|
6135
|
+
SyntaxKind52[SyntaxKind52["JsxNamespacedName"] = 296] = "JsxNamespacedName";
|
|
6136
|
+
SyntaxKind52[SyntaxKind52["CaseClause"] = 297] = "CaseClause";
|
|
6137
|
+
SyntaxKind52[SyntaxKind52["DefaultClause"] = 298] = "DefaultClause";
|
|
6138
|
+
SyntaxKind52[SyntaxKind52["HeritageClause"] = 299] = "HeritageClause";
|
|
6139
|
+
SyntaxKind52[SyntaxKind52["CatchClause"] = 300] = "CatchClause";
|
|
6140
|
+
SyntaxKind52[SyntaxKind52["ImportAttributes"] = 301] = "ImportAttributes";
|
|
6141
|
+
SyntaxKind52[SyntaxKind52["ImportAttribute"] = 302] = "ImportAttribute";
|
|
6142
|
+
SyntaxKind52[
|
|
6143
|
+
SyntaxKind52["AssertClause"] = 301
|
|
6144
6144
|
/* ImportAttributes */
|
|
6145
6145
|
] = "AssertClause";
|
|
6146
|
-
|
|
6147
|
-
|
|
6146
|
+
SyntaxKind52[
|
|
6147
|
+
SyntaxKind52["AssertEntry"] = 302
|
|
6148
6148
|
/* ImportAttribute */
|
|
6149
6149
|
] = "AssertEntry";
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6150
|
+
SyntaxKind52[SyntaxKind52["ImportTypeAssertionContainer"] = 303] = "ImportTypeAssertionContainer";
|
|
6151
|
+
SyntaxKind52[SyntaxKind52["PropertyAssignment"] = 304] = "PropertyAssignment";
|
|
6152
|
+
SyntaxKind52[SyntaxKind52["ShorthandPropertyAssignment"] = 305] = "ShorthandPropertyAssignment";
|
|
6153
|
+
SyntaxKind52[SyntaxKind52["SpreadAssignment"] = 306] = "SpreadAssignment";
|
|
6154
|
+
SyntaxKind52[SyntaxKind52["EnumMember"] = 307] = "EnumMember";
|
|
6155
|
+
SyntaxKind52[SyntaxKind52["SourceFile"] = 308] = "SourceFile";
|
|
6156
|
+
SyntaxKind52[SyntaxKind52["Bundle"] = 309] = "Bundle";
|
|
6157
|
+
SyntaxKind52[SyntaxKind52["JSDocTypeExpression"] = 310] = "JSDocTypeExpression";
|
|
6158
|
+
SyntaxKind52[SyntaxKind52["JSDocNameReference"] = 311] = "JSDocNameReference";
|
|
6159
|
+
SyntaxKind52[SyntaxKind52["JSDocMemberName"] = 312] = "JSDocMemberName";
|
|
6160
|
+
SyntaxKind52[SyntaxKind52["JSDocAllType"] = 313] = "JSDocAllType";
|
|
6161
|
+
SyntaxKind52[SyntaxKind52["JSDocUnknownType"] = 314] = "JSDocUnknownType";
|
|
6162
|
+
SyntaxKind52[SyntaxKind52["JSDocNullableType"] = 315] = "JSDocNullableType";
|
|
6163
|
+
SyntaxKind52[SyntaxKind52["JSDocNonNullableType"] = 316] = "JSDocNonNullableType";
|
|
6164
|
+
SyntaxKind52[SyntaxKind52["JSDocOptionalType"] = 317] = "JSDocOptionalType";
|
|
6165
|
+
SyntaxKind52[SyntaxKind52["JSDocFunctionType"] = 318] = "JSDocFunctionType";
|
|
6166
|
+
SyntaxKind52[SyntaxKind52["JSDocVariadicType"] = 319] = "JSDocVariadicType";
|
|
6167
|
+
SyntaxKind52[SyntaxKind52["JSDocNamepathType"] = 320] = "JSDocNamepathType";
|
|
6168
|
+
SyntaxKind52[SyntaxKind52["JSDoc"] = 321] = "JSDoc";
|
|
6169
|
+
SyntaxKind52[
|
|
6170
|
+
SyntaxKind52["JSDocComment"] = 321
|
|
6171
6171
|
/* JSDoc */
|
|
6172
6172
|
] = "JSDocComment";
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6173
|
+
SyntaxKind52[SyntaxKind52["JSDocText"] = 322] = "JSDocText";
|
|
6174
|
+
SyntaxKind52[SyntaxKind52["JSDocTypeLiteral"] = 323] = "JSDocTypeLiteral";
|
|
6175
|
+
SyntaxKind52[SyntaxKind52["JSDocSignature"] = 324] = "JSDocSignature";
|
|
6176
|
+
SyntaxKind52[SyntaxKind52["JSDocLink"] = 325] = "JSDocLink";
|
|
6177
|
+
SyntaxKind52[SyntaxKind52["JSDocLinkCode"] = 326] = "JSDocLinkCode";
|
|
6178
|
+
SyntaxKind52[SyntaxKind52["JSDocLinkPlain"] = 327] = "JSDocLinkPlain";
|
|
6179
|
+
SyntaxKind52[SyntaxKind52["JSDocTag"] = 328] = "JSDocTag";
|
|
6180
|
+
SyntaxKind52[SyntaxKind52["JSDocAugmentsTag"] = 329] = "JSDocAugmentsTag";
|
|
6181
|
+
SyntaxKind52[SyntaxKind52["JSDocImplementsTag"] = 330] = "JSDocImplementsTag";
|
|
6182
|
+
SyntaxKind52[SyntaxKind52["JSDocAuthorTag"] = 331] = "JSDocAuthorTag";
|
|
6183
|
+
SyntaxKind52[SyntaxKind52["JSDocDeprecatedTag"] = 332] = "JSDocDeprecatedTag";
|
|
6184
|
+
SyntaxKind52[SyntaxKind52["JSDocClassTag"] = 333] = "JSDocClassTag";
|
|
6185
|
+
SyntaxKind52[SyntaxKind52["JSDocPublicTag"] = 334] = "JSDocPublicTag";
|
|
6186
|
+
SyntaxKind52[SyntaxKind52["JSDocPrivateTag"] = 335] = "JSDocPrivateTag";
|
|
6187
|
+
SyntaxKind52[SyntaxKind52["JSDocProtectedTag"] = 336] = "JSDocProtectedTag";
|
|
6188
|
+
SyntaxKind52[SyntaxKind52["JSDocReadonlyTag"] = 337] = "JSDocReadonlyTag";
|
|
6189
|
+
SyntaxKind52[SyntaxKind52["JSDocOverrideTag"] = 338] = "JSDocOverrideTag";
|
|
6190
|
+
SyntaxKind52[SyntaxKind52["JSDocCallbackTag"] = 339] = "JSDocCallbackTag";
|
|
6191
|
+
SyntaxKind52[SyntaxKind52["JSDocOverloadTag"] = 340] = "JSDocOverloadTag";
|
|
6192
|
+
SyntaxKind52[SyntaxKind52["JSDocEnumTag"] = 341] = "JSDocEnumTag";
|
|
6193
|
+
SyntaxKind52[SyntaxKind52["JSDocParameterTag"] = 342] = "JSDocParameterTag";
|
|
6194
|
+
SyntaxKind52[SyntaxKind52["JSDocReturnTag"] = 343] = "JSDocReturnTag";
|
|
6195
|
+
SyntaxKind52[SyntaxKind52["JSDocThisTag"] = 344] = "JSDocThisTag";
|
|
6196
|
+
SyntaxKind52[SyntaxKind52["JSDocTypeTag"] = 345] = "JSDocTypeTag";
|
|
6197
|
+
SyntaxKind52[SyntaxKind52["JSDocTemplateTag"] = 346] = "JSDocTemplateTag";
|
|
6198
|
+
SyntaxKind52[SyntaxKind52["JSDocTypedefTag"] = 347] = "JSDocTypedefTag";
|
|
6199
|
+
SyntaxKind52[SyntaxKind52["JSDocSeeTag"] = 348] = "JSDocSeeTag";
|
|
6200
|
+
SyntaxKind52[SyntaxKind52["JSDocPropertyTag"] = 349] = "JSDocPropertyTag";
|
|
6201
|
+
SyntaxKind52[SyntaxKind52["JSDocThrowsTag"] = 350] = "JSDocThrowsTag";
|
|
6202
|
+
SyntaxKind52[SyntaxKind52["JSDocSatisfiesTag"] = 351] = "JSDocSatisfiesTag";
|
|
6203
|
+
SyntaxKind52[SyntaxKind52["JSDocImportTag"] = 352] = "JSDocImportTag";
|
|
6204
|
+
SyntaxKind52[SyntaxKind52["SyntaxList"] = 353] = "SyntaxList";
|
|
6205
|
+
SyntaxKind52[SyntaxKind52["NotEmittedStatement"] = 354] = "NotEmittedStatement";
|
|
6206
|
+
SyntaxKind52[SyntaxKind52["NotEmittedTypeElement"] = 355] = "NotEmittedTypeElement";
|
|
6207
|
+
SyntaxKind52[SyntaxKind52["PartiallyEmittedExpression"] = 356] = "PartiallyEmittedExpression";
|
|
6208
|
+
SyntaxKind52[SyntaxKind52["CommaListExpression"] = 357] = "CommaListExpression";
|
|
6209
|
+
SyntaxKind52[SyntaxKind52["SyntheticReferenceExpression"] = 358] = "SyntheticReferenceExpression";
|
|
6210
|
+
SyntaxKind52[SyntaxKind52["Count"] = 359] = "Count";
|
|
6211
|
+
SyntaxKind52[
|
|
6212
|
+
SyntaxKind52["FirstAssignment"] = 64
|
|
6213
6213
|
/* EqualsToken */
|
|
6214
6214
|
] = "FirstAssignment";
|
|
6215
|
-
|
|
6216
|
-
|
|
6215
|
+
SyntaxKind52[
|
|
6216
|
+
SyntaxKind52["LastAssignment"] = 79
|
|
6217
6217
|
/* CaretEqualsToken */
|
|
6218
6218
|
] = "LastAssignment";
|
|
6219
|
-
|
|
6220
|
-
|
|
6219
|
+
SyntaxKind52[
|
|
6220
|
+
SyntaxKind52["FirstCompoundAssignment"] = 65
|
|
6221
6221
|
/* PlusEqualsToken */
|
|
6222
6222
|
] = "FirstCompoundAssignment";
|
|
6223
|
-
|
|
6224
|
-
|
|
6223
|
+
SyntaxKind52[
|
|
6224
|
+
SyntaxKind52["LastCompoundAssignment"] = 79
|
|
6225
6225
|
/* CaretEqualsToken */
|
|
6226
6226
|
] = "LastCompoundAssignment";
|
|
6227
|
-
|
|
6228
|
-
|
|
6227
|
+
SyntaxKind52[
|
|
6228
|
+
SyntaxKind52["FirstReservedWord"] = 83
|
|
6229
6229
|
/* BreakKeyword */
|
|
6230
6230
|
] = "FirstReservedWord";
|
|
6231
|
-
|
|
6232
|
-
|
|
6231
|
+
SyntaxKind52[
|
|
6232
|
+
SyntaxKind52["LastReservedWord"] = 118
|
|
6233
6233
|
/* WithKeyword */
|
|
6234
6234
|
] = "LastReservedWord";
|
|
6235
|
-
|
|
6236
|
-
|
|
6235
|
+
SyntaxKind52[
|
|
6236
|
+
SyntaxKind52["FirstKeyword"] = 83
|
|
6237
6237
|
/* BreakKeyword */
|
|
6238
6238
|
] = "FirstKeyword";
|
|
6239
|
-
|
|
6240
|
-
|
|
6239
|
+
SyntaxKind52[
|
|
6240
|
+
SyntaxKind52["LastKeyword"] = 166
|
|
6241
6241
|
/* DeferKeyword */
|
|
6242
6242
|
] = "LastKeyword";
|
|
6243
|
-
|
|
6244
|
-
|
|
6243
|
+
SyntaxKind52[
|
|
6244
|
+
SyntaxKind52["FirstFutureReservedWord"] = 119
|
|
6245
6245
|
/* ImplementsKeyword */
|
|
6246
6246
|
] = "FirstFutureReservedWord";
|
|
6247
|
-
|
|
6248
|
-
|
|
6247
|
+
SyntaxKind52[
|
|
6248
|
+
SyntaxKind52["LastFutureReservedWord"] = 127
|
|
6249
6249
|
/* YieldKeyword */
|
|
6250
6250
|
] = "LastFutureReservedWord";
|
|
6251
|
-
|
|
6252
|
-
|
|
6251
|
+
SyntaxKind52[
|
|
6252
|
+
SyntaxKind52["FirstTypeNode"] = 183
|
|
6253
6253
|
/* TypePredicate */
|
|
6254
6254
|
] = "FirstTypeNode";
|
|
6255
|
-
|
|
6256
|
-
|
|
6255
|
+
SyntaxKind52[
|
|
6256
|
+
SyntaxKind52["LastTypeNode"] = 206
|
|
6257
6257
|
/* ImportType */
|
|
6258
6258
|
] = "LastTypeNode";
|
|
6259
|
-
|
|
6260
|
-
|
|
6259
|
+
SyntaxKind52[
|
|
6260
|
+
SyntaxKind52["FirstPunctuation"] = 19
|
|
6261
6261
|
/* OpenBraceToken */
|
|
6262
6262
|
] = "FirstPunctuation";
|
|
6263
|
-
|
|
6264
|
-
|
|
6263
|
+
SyntaxKind52[
|
|
6264
|
+
SyntaxKind52["LastPunctuation"] = 79
|
|
6265
6265
|
/* CaretEqualsToken */
|
|
6266
6266
|
] = "LastPunctuation";
|
|
6267
|
-
|
|
6268
|
-
|
|
6267
|
+
SyntaxKind52[
|
|
6268
|
+
SyntaxKind52["FirstToken"] = 0
|
|
6269
6269
|
/* Unknown */
|
|
6270
6270
|
] = "FirstToken";
|
|
6271
|
-
|
|
6272
|
-
|
|
6271
|
+
SyntaxKind52[
|
|
6272
|
+
SyntaxKind52["LastToken"] = 166
|
|
6273
6273
|
/* LastKeyword */
|
|
6274
6274
|
] = "LastToken";
|
|
6275
|
-
|
|
6276
|
-
|
|
6275
|
+
SyntaxKind52[
|
|
6276
|
+
SyntaxKind52["FirstTriviaToken"] = 2
|
|
6277
6277
|
/* SingleLineCommentTrivia */
|
|
6278
6278
|
] = "FirstTriviaToken";
|
|
6279
|
-
|
|
6280
|
-
|
|
6279
|
+
SyntaxKind52[
|
|
6280
|
+
SyntaxKind52["LastTriviaToken"] = 7
|
|
6281
6281
|
/* ConflictMarkerTrivia */
|
|
6282
6282
|
] = "LastTriviaToken";
|
|
6283
|
-
|
|
6284
|
-
|
|
6283
|
+
SyntaxKind52[
|
|
6284
|
+
SyntaxKind52["FirstLiteralToken"] = 9
|
|
6285
6285
|
/* NumericLiteral */
|
|
6286
6286
|
] = "FirstLiteralToken";
|
|
6287
|
-
|
|
6288
|
-
|
|
6287
|
+
SyntaxKind52[
|
|
6288
|
+
SyntaxKind52["LastLiteralToken"] = 15
|
|
6289
6289
|
/* NoSubstitutionTemplateLiteral */
|
|
6290
6290
|
] = "LastLiteralToken";
|
|
6291
|
-
|
|
6292
|
-
|
|
6291
|
+
SyntaxKind52[
|
|
6292
|
+
SyntaxKind52["FirstTemplateToken"] = 15
|
|
6293
6293
|
/* NoSubstitutionTemplateLiteral */
|
|
6294
6294
|
] = "FirstTemplateToken";
|
|
6295
|
-
|
|
6296
|
-
|
|
6295
|
+
SyntaxKind52[
|
|
6296
|
+
SyntaxKind52["LastTemplateToken"] = 18
|
|
6297
6297
|
/* TemplateTail */
|
|
6298
6298
|
] = "LastTemplateToken";
|
|
6299
|
-
|
|
6300
|
-
|
|
6299
|
+
SyntaxKind52[
|
|
6300
|
+
SyntaxKind52["FirstBinaryOperator"] = 30
|
|
6301
6301
|
/* LessThanToken */
|
|
6302
6302
|
] = "FirstBinaryOperator";
|
|
6303
|
-
|
|
6304
|
-
|
|
6303
|
+
SyntaxKind52[
|
|
6304
|
+
SyntaxKind52["LastBinaryOperator"] = 79
|
|
6305
6305
|
/* CaretEqualsToken */
|
|
6306
6306
|
] = "LastBinaryOperator";
|
|
6307
|
-
|
|
6308
|
-
|
|
6307
|
+
SyntaxKind52[
|
|
6308
|
+
SyntaxKind52["FirstStatement"] = 244
|
|
6309
6309
|
/* VariableStatement */
|
|
6310
6310
|
] = "FirstStatement";
|
|
6311
|
-
|
|
6312
|
-
|
|
6311
|
+
SyntaxKind52[
|
|
6312
|
+
SyntaxKind52["LastStatement"] = 260
|
|
6313
6313
|
/* DebuggerStatement */
|
|
6314
6314
|
] = "LastStatement";
|
|
6315
|
-
|
|
6316
|
-
|
|
6315
|
+
SyntaxKind52[
|
|
6316
|
+
SyntaxKind52["FirstNode"] = 167
|
|
6317
6317
|
/* QualifiedName */
|
|
6318
6318
|
] = "FirstNode";
|
|
6319
|
-
|
|
6320
|
-
|
|
6319
|
+
SyntaxKind52[
|
|
6320
|
+
SyntaxKind52["FirstJSDocNode"] = 310
|
|
6321
6321
|
/* JSDocTypeExpression */
|
|
6322
6322
|
] = "FirstJSDocNode";
|
|
6323
|
-
|
|
6324
|
-
|
|
6323
|
+
SyntaxKind52[
|
|
6324
|
+
SyntaxKind52["LastJSDocNode"] = 352
|
|
6325
6325
|
/* JSDocImportTag */
|
|
6326
6326
|
] = "LastJSDocNode";
|
|
6327
|
-
|
|
6328
|
-
|
|
6327
|
+
SyntaxKind52[
|
|
6328
|
+
SyntaxKind52["FirstJSDocTagNode"] = 328
|
|
6329
6329
|
/* JSDocTag */
|
|
6330
6330
|
] = "FirstJSDocTagNode";
|
|
6331
|
-
|
|
6332
|
-
|
|
6331
|
+
SyntaxKind52[
|
|
6332
|
+
SyntaxKind52["LastJSDocTagNode"] = 352
|
|
6333
6333
|
/* JSDocImportTag */
|
|
6334
6334
|
] = "LastJSDocTagNode";
|
|
6335
|
-
|
|
6336
|
-
|
|
6335
|
+
SyntaxKind52[
|
|
6336
|
+
SyntaxKind52["FirstContextualKeyword"] = 128
|
|
6337
6337
|
/* AbstractKeyword */
|
|
6338
6338
|
] = "FirstContextualKeyword";
|
|
6339
|
-
|
|
6340
|
-
|
|
6339
|
+
SyntaxKind52[
|
|
6340
|
+
SyntaxKind52["LastContextualKeyword"] = 166
|
|
6341
6341
|
/* LastKeyword */
|
|
6342
6342
|
] = "LastContextualKeyword";
|
|
6343
|
-
return
|
|
6344
|
-
})(
|
|
6343
|
+
return SyntaxKind52;
|
|
6344
|
+
})(SyntaxKind7 || {});
|
|
6345
6345
|
var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => {
|
|
6346
6346
|
NodeFlags3[NodeFlags3["None"] = 0] = "None";
|
|
6347
6347
|
NodeFlags3[NodeFlags3["Let"] = 1] = "Let";
|
|
@@ -64236,7 +64236,7 @@ ${lanes.join("\n")}
|
|
|
64236
64236
|
__name(shouldWriteTypeOfFunctionSymbol, "shouldWriteTypeOfFunctionSymbol");
|
|
64237
64237
|
}
|
|
64238
64238
|
__name(createAnonymousTypeNode, "createAnonymousTypeNode");
|
|
64239
|
-
function visitAndTransformType(type2,
|
|
64239
|
+
function visitAndTransformType(type2, transform2) {
|
|
64240
64240
|
var _a2, _b2, _c;
|
|
64241
64241
|
const typeId = type2.id;
|
|
64242
64242
|
const isConstructorObject = getObjectFlags(type2) & 16 && type2.symbol && type2.symbol.flags & 32;
|
|
@@ -64279,7 +64279,7 @@ ${lanes.join("\n")}
|
|
|
64279
64279
|
const prevTrackedSymbols = context.trackedSymbols;
|
|
64280
64280
|
context.trackedSymbols = void 0;
|
|
64281
64281
|
const startLength = context.approximateLength;
|
|
64282
|
-
const result =
|
|
64282
|
+
const result = transform2(type2);
|
|
64283
64283
|
const addedLength = context.approximateLength - startLength;
|
|
64284
64284
|
if (!context.reportedDiagnostic && !context.encounteredError) {
|
|
64285
64285
|
(_c = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _c.set(key, {
|
|
@@ -136435,8 +136435,8 @@ ${lanes.join("\n")}
|
|
|
136435
136435
|
mark("beforeTransform");
|
|
136436
136436
|
const transformersWithContext = transformers.map((t) => t(context));
|
|
136437
136437
|
const transformation = /* @__PURE__ */ __name((node) => {
|
|
136438
|
-
for (const
|
|
136439
|
-
node =
|
|
136438
|
+
for (const transform2 of transformersWithContext) {
|
|
136439
|
+
node = transform2(node);
|
|
136440
136440
|
}
|
|
136441
136441
|
return node;
|
|
136442
136442
|
}, "transformation");
|
|
@@ -137085,7 +137085,7 @@ ${lanes.join("\n")}
|
|
|
137085
137085
|
if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile);
|
|
137086
137086
|
}
|
|
137087
137087
|
);
|
|
137088
|
-
const
|
|
137088
|
+
const transform2 = transformNodes(
|
|
137089
137089
|
resolver,
|
|
137090
137090
|
host,
|
|
137091
137091
|
factory,
|
|
@@ -137111,13 +137111,13 @@ ${lanes.join("\n")}
|
|
|
137111
137111
|
// resolver hooks
|
|
137112
137112
|
hasGlobalName: resolver.hasGlobalName,
|
|
137113
137113
|
// transform hooks
|
|
137114
|
-
onEmitNode:
|
|
137115
|
-
isEmitNotificationEnabled:
|
|
137116
|
-
substituteNode:
|
|
137114
|
+
onEmitNode: transform2.emitNodeWithNotification,
|
|
137115
|
+
isEmitNotificationEnabled: transform2.isEmitNotificationEnabled,
|
|
137116
|
+
substituteNode: transform2.substituteNode
|
|
137117
137117
|
});
|
|
137118
|
-
Debug.assert(
|
|
137119
|
-
printSourceFileOrBundle(jsFilePath, sourceMapFilePath,
|
|
137120
|
-
|
|
137118
|
+
Debug.assert(transform2.transformed.length === 1, "Should only see one output from the transform");
|
|
137119
|
+
printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, compilerOptions);
|
|
137120
|
+
transform2.dispose();
|
|
137121
137121
|
if (emittedFilesList) {
|
|
137122
137122
|
emittedFilesList.push(jsFilePath);
|
|
137123
137123
|
if (sourceMapFilePath) {
|
|
@@ -137233,8 +137233,8 @@ ${lanes.join("\n")}
|
|
|
137233
137233
|
});
|
|
137234
137234
|
}
|
|
137235
137235
|
__name(markLinkedReferences, "markLinkedReferences");
|
|
137236
|
-
function printSourceFileOrBundle(jsFilePath, sourceMapFilePath,
|
|
137237
|
-
const sourceFileOrBundle =
|
|
137236
|
+
function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform2, printer, mapOptions) {
|
|
137237
|
+
const sourceFileOrBundle = transform2.transformed[0];
|
|
137238
137238
|
const bundle = sourceFileOrBundle.kind === 309 ? sourceFileOrBundle : void 0;
|
|
137239
137239
|
const sourceFile = sourceFileOrBundle.kind === 308 ? sourceFileOrBundle : void 0;
|
|
137240
137240
|
const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile];
|
|
@@ -137289,7 +137289,7 @@ ${lanes.join("\n")}
|
|
|
137289
137289
|
writer.writeLine();
|
|
137290
137290
|
}
|
|
137291
137291
|
const text = writer.getText();
|
|
137292
|
-
const data = { sourceMapUrlPos, diagnostics:
|
|
137292
|
+
const data = { sourceMapUrlPos, diagnostics: transform2.diagnostics };
|
|
137293
137293
|
writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, data);
|
|
137294
137294
|
writer.clear();
|
|
137295
137295
|
return !data.skippedDtsWrite;
|
|
@@ -173756,7 +173756,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
173756
173756
|
}
|
|
173757
173757
|
__name(getDefaultLibFilePath, "getDefaultLibFilePath");
|
|
173758
173758
|
setObjectAllocator(getServicesObjectAllocator());
|
|
173759
|
-
function
|
|
173759
|
+
function transform(source, transformers, compilerOptions) {
|
|
173760
173760
|
const diagnostics = [];
|
|
173761
173761
|
compilerOptions = fixupCompilerOptions(compilerOptions, diagnostics);
|
|
173762
173762
|
const nodes = isArray(source) ? source : [source];
|
|
@@ -173775,7 +173775,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
173775
173775
|
result.diagnostics = concatenate(result.diagnostics, diagnostics);
|
|
173776
173776
|
return result;
|
|
173777
173777
|
}
|
|
173778
|
-
__name(
|
|
173778
|
+
__name(transform, "transform");
|
|
173779
173779
|
var ts_BreakpointResolver_exports = {};
|
|
173780
173780
|
__export(ts_BreakpointResolver_exports, {
|
|
173781
173781
|
spanInSourceFileAtLocation: /* @__PURE__ */ __name(() => spanInSourceFileAtLocation, "spanInSourceFileAtLocation")
|
|
@@ -206655,7 +206655,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
206655
206655
|
SymbolDisplayPartKind: /* @__PURE__ */ __name(() => SymbolDisplayPartKind, "SymbolDisplayPartKind"),
|
|
206656
206656
|
SymbolFlags: /* @__PURE__ */ __name(() => SymbolFlags, "SymbolFlags"),
|
|
206657
206657
|
SymbolFormatFlags: /* @__PURE__ */ __name(() => SymbolFormatFlags, "SymbolFormatFlags"),
|
|
206658
|
-
SyntaxKind: /* @__PURE__ */ __name(() =>
|
|
206658
|
+
SyntaxKind: /* @__PURE__ */ __name(() => SyntaxKind7, "SyntaxKind"),
|
|
206659
206659
|
Ternary: /* @__PURE__ */ __name(() => Ternary, "Ternary"),
|
|
206660
206660
|
ThrottledCancellationToken: /* @__PURE__ */ __name(() => ThrottledCancellationToken, "ThrottledCancellationToken"),
|
|
206661
206661
|
TokenClass: /* @__PURE__ */ __name(() => TokenClass, "TokenClass"),
|
|
@@ -208657,7 +208657,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
208657
208657
|
tracing: /* @__PURE__ */ __name(() => tracing, "tracing"),
|
|
208658
208658
|
tracingEnabled: /* @__PURE__ */ __name(() => tracingEnabled, "tracingEnabled"),
|
|
208659
208659
|
transferSourceFileChildren: /* @__PURE__ */ __name(() => transferSourceFileChildren, "transferSourceFileChildren"),
|
|
208660
|
-
transform: /* @__PURE__ */ __name(() =>
|
|
208660
|
+
transform: /* @__PURE__ */ __name(() => transform, "transform"),
|
|
208661
208661
|
transformClassFields: /* @__PURE__ */ __name(() => transformClassFields, "transformClassFields"),
|
|
208662
208662
|
transformDeclarations: /* @__PURE__ */ __name(() => transformDeclarations, "transformDeclarations"),
|
|
208663
208663
|
transformECMAScriptModule: /* @__PURE__ */ __name(() => transformECMAScriptModule, "transformECMAScriptModule"),
|
|
@@ -231132,7 +231132,7 @@ var require_ts_morph = __commonJS({
|
|
|
231132
231132
|
const nameNode = node.getNameNode();
|
|
231133
231133
|
if (nameNode == null)
|
|
231134
231134
|
return false;
|
|
231135
|
-
if (
|
|
231135
|
+
if (Node4.isArrayBindingPattern(nameNode) || Node4.isObjectBindingPattern(nameNode))
|
|
231136
231136
|
return nameNode.getElements().some((element) => nodeHasName(element, name));
|
|
231137
231137
|
const nodeName = node.getName != null ? node.getName() : nameNode.getText();
|
|
231138
231138
|
return nodeName === name;
|
|
@@ -231612,7 +231612,7 @@ var require_ts_morph = __commonJS({
|
|
|
231612
231612
|
__name(isNodeAmbientOrInAmbientContext, "isNodeAmbientOrInAmbientContext");
|
|
231613
231613
|
function checkNodeIsAmbient(node) {
|
|
231614
231614
|
const isThisAmbient = (node.getCombinedModifierFlags() & common.ts.ModifierFlags.Ambient) === common.ts.ModifierFlags.Ambient;
|
|
231615
|
-
return isThisAmbient ||
|
|
231615
|
+
return isThisAmbient || Node4.isInterfaceDeclaration(node) || Node4.isTypeAliasDeclaration(node);
|
|
231616
231616
|
}
|
|
231617
231617
|
__name(checkNodeIsAmbient, "checkNodeIsAmbient");
|
|
231618
231618
|
function isStringKind(kind) {
|
|
@@ -232047,15 +232047,15 @@ var require_ts_morph = __commonJS({
|
|
|
232047
232047
|
#getSourceFileForLiteral(literal) {
|
|
232048
232048
|
const parent = literal.getParentOrThrow();
|
|
232049
232049
|
const grandParent = parent.getParent();
|
|
232050
|
-
if (
|
|
232050
|
+
if (Node4.isImportDeclaration(parent) || Node4.isExportDeclaration(parent))
|
|
232051
232051
|
return parent.getModuleSpecifierSourceFile();
|
|
232052
|
-
else if (grandParent != null &&
|
|
232052
|
+
else if (grandParent != null && Node4.isImportEqualsDeclaration(grandParent))
|
|
232053
232053
|
return grandParent.getExternalModuleReferenceSourceFile();
|
|
232054
|
-
else if (grandParent != null &&
|
|
232054
|
+
else if (grandParent != null && Node4.isImportTypeNode(grandParent)) {
|
|
232055
232055
|
const importTypeSymbol = grandParent.getSymbol();
|
|
232056
232056
|
if (importTypeSymbol != null)
|
|
232057
232057
|
return ModuleUtils.getReferencedSourceFileFromSymbol(importTypeSymbol);
|
|
232058
|
-
} else if (
|
|
232058
|
+
} else if (Node4.isCallExpression(parent)) {
|
|
232059
232059
|
const literalSymbol = literal.getSymbol();
|
|
232060
232060
|
if (literalSymbol != null)
|
|
232061
232061
|
return ModuleUtils.getReferencedSourceFileFromSymbol(literalSymbol);
|
|
@@ -232154,7 +232154,7 @@ var require_ts_morph = __commonJS({
|
|
|
232154
232154
|
FormattingKind2[FormattingKind2["None"] = 3] = "None";
|
|
232155
232155
|
})(FormattingKind || (FormattingKind = {}));
|
|
232156
232156
|
function getClassMemberFormatting(parent, member) {
|
|
232157
|
-
if (
|
|
232157
|
+
if (Node4.isAmbientable(parent) && parent.isAmbient())
|
|
232158
232158
|
return FormattingKind.Newline;
|
|
232159
232159
|
if (hasBody$1(member))
|
|
232160
232160
|
return FormattingKind.Blankline;
|
|
@@ -232162,9 +232162,9 @@ var require_ts_morph = __commonJS({
|
|
|
232162
232162
|
}
|
|
232163
232163
|
__name(getClassMemberFormatting, "getClassMemberFormatting");
|
|
232164
232164
|
function hasBody$1(node) {
|
|
232165
|
-
if (
|
|
232165
|
+
if (Node4.isBodyable(node) && node.getBody() != null)
|
|
232166
232166
|
return true;
|
|
232167
|
-
if (
|
|
232167
|
+
if (Node4.isBodied(node))
|
|
232168
232168
|
return true;
|
|
232169
232169
|
return false;
|
|
232170
232170
|
}
|
|
@@ -232189,11 +232189,11 @@ var require_ts_morph = __commonJS({
|
|
|
232189
232189
|
}
|
|
232190
232190
|
__name(getInterfaceMemberFormatting, "getInterfaceMemberFormatting");
|
|
232191
232191
|
function hasBody(node) {
|
|
232192
|
-
if (
|
|
232192
|
+
if (Node4.isBodyable(node) && node.hasBody())
|
|
232193
232193
|
return true;
|
|
232194
|
-
if (
|
|
232194
|
+
if (Node4.isBodied(node))
|
|
232195
232195
|
return true;
|
|
232196
|
-
return
|
|
232196
|
+
return Node4.isInterfaceDeclaration(node) || Node4.isClassDeclaration(node) || Node4.isEnumDeclaration(node);
|
|
232197
232197
|
}
|
|
232198
232198
|
__name(hasBody, "hasBody");
|
|
232199
232199
|
function getStatementedNodeChildFormatting(parent, member) {
|
|
@@ -232207,9 +232207,9 @@ var require_ts_morph = __commonJS({
|
|
|
232207
232207
|
}
|
|
232208
232208
|
__name(getClausedNodeChildFormatting, "getClausedNodeChildFormatting");
|
|
232209
232209
|
function getGeneralFormatting(parent, child) {
|
|
232210
|
-
if (
|
|
232210
|
+
if (Node4.isClassDeclaration(parent))
|
|
232211
232211
|
return getClassMemberFormatting(parent, child);
|
|
232212
|
-
if (
|
|
232212
|
+
if (Node4.isInterfaceDeclaration(parent))
|
|
232213
232213
|
return getInterfaceMemberFormatting();
|
|
232214
232214
|
return getStatementedNodeChildFormatting(parent, child);
|
|
232215
232215
|
}
|
|
@@ -232401,9 +232401,9 @@ var require_ts_morph = __commonJS({
|
|
|
232401
232401
|
function getInsertPosFromIndex(index, syntaxList, children) {
|
|
232402
232402
|
if (index === 0) {
|
|
232403
232403
|
const parent = syntaxList.getParentOrThrow();
|
|
232404
|
-
if (
|
|
232404
|
+
if (Node4.isSourceFile(parent))
|
|
232405
232405
|
return 0;
|
|
232406
|
-
else if (
|
|
232406
|
+
else if (Node4.isCaseClause(parent) || Node4.isDefaultClause(parent)) {
|
|
232407
232407
|
const colonToken = parent.getFirstChildByKindOrThrow(common.SyntaxKind.ColonToken);
|
|
232408
232408
|
return colonToken.getEnd();
|
|
232409
232409
|
}
|
|
@@ -232421,9 +232421,9 @@ var require_ts_morph = __commonJS({
|
|
|
232421
232421
|
function getEndPosFromIndex(index, parent, children, fullText) {
|
|
232422
232422
|
let endPos;
|
|
232423
232423
|
if (index === children.length) {
|
|
232424
|
-
if (
|
|
232424
|
+
if (Node4.isSourceFile(parent))
|
|
232425
232425
|
endPos = parent.getEnd();
|
|
232426
|
-
else if (
|
|
232426
|
+
else if (Node4.isCaseClause(parent) || Node4.isDefaultClause(parent))
|
|
232427
232427
|
endPos = parent.getEnd();
|
|
232428
232428
|
else {
|
|
232429
232429
|
const parentContainer = getParentContainerOrThrow(parent);
|
|
@@ -232440,14 +232440,14 @@ var require_ts_morph = __commonJS({
|
|
|
232440
232440
|
}
|
|
232441
232441
|
__name(getEndPosFromIndex, "getEndPosFromIndex");
|
|
232442
232442
|
function getParentContainerOrThrow(parent) {
|
|
232443
|
-
if (
|
|
232443
|
+
if (Node4.isModuleDeclaration(parent)) {
|
|
232444
232444
|
const innerBody = parent._getInnerBody();
|
|
232445
232445
|
if (innerBody == null)
|
|
232446
232446
|
throw new common.errors.InvalidOperationError("This operation requires the module to have a body.");
|
|
232447
232447
|
return innerBody;
|
|
232448
|
-
} else if (
|
|
232448
|
+
} else if (Node4.isBodied(parent))
|
|
232449
232449
|
return parent.getBody();
|
|
232450
|
-
else if (
|
|
232450
|
+
else if (Node4.isBodyable(parent))
|
|
232451
232451
|
return parent.getBodyOrThrow();
|
|
232452
232452
|
else
|
|
232453
232453
|
return parent;
|
|
@@ -232502,7 +232502,7 @@ var require_ts_morph = __commonJS({
|
|
|
232502
232502
|
const result = [];
|
|
232503
232503
|
for (let i = 0; i < newLength; i++) {
|
|
232504
232504
|
const currentChild = newChildren[index + i];
|
|
232505
|
-
if (allowCommentNodes || !
|
|
232505
|
+
if (allowCommentNodes || !Node4.isCommentNode(currentChild))
|
|
232506
232506
|
result.push(currentChild);
|
|
232507
232507
|
}
|
|
232508
232508
|
return result;
|
|
@@ -232996,7 +232996,7 @@ var require_ts_morph = __commonJS({
|
|
|
232996
232996
|
this.#handler = handler;
|
|
232997
232997
|
}
|
|
232998
232998
|
handleNode(currentNode, newNode, newSourceFile) {
|
|
232999
|
-
if (!
|
|
232999
|
+
if (!Node4.isSourceFile(currentNode))
|
|
233000
233000
|
throw new common.errors.InvalidOperationError(`Can only use a TryOrForgetNodeHandler with a source file.`);
|
|
233001
233001
|
try {
|
|
233002
233002
|
this.#handler.handleNode(currentNode, newNode, newSourceFile);
|
|
@@ -233163,7 +233163,7 @@ var require_ts_morph = __commonJS({
|
|
|
233163
233163
|
const lowerIndex = Math.min(newIndex, oldIndex);
|
|
233164
233164
|
const upperIndex = Math.max(newIndex, oldIndex);
|
|
233165
233165
|
const childrenInNewOrder = getChildrenInNewOrder();
|
|
233166
|
-
const isParentSourceFile =
|
|
233166
|
+
const isParentSourceFile = Node4.isSourceFile(parent.getParentOrThrow());
|
|
233167
233167
|
let finalText = "";
|
|
233168
233168
|
fillPrefixText();
|
|
233169
233169
|
fillTextForIndex(lowerIndex);
|
|
@@ -233534,14 +233534,14 @@ var require_ts_morph = __commonJS({
|
|
|
233534
233534
|
const bodyNode = getBodyNodeOrThrow();
|
|
233535
233535
|
return [bodyNode.getStart() + 1, bodyNode.getEnd() - 1];
|
|
233536
233536
|
function getBodyNodeOrThrow() {
|
|
233537
|
-
if (
|
|
233537
|
+
if (Node4.isModuleDeclaration(node)) {
|
|
233538
233538
|
const bodyNode2 = node._getInnerBody();
|
|
233539
233539
|
if (bodyNode2 == null)
|
|
233540
233540
|
throw new common.errors.InvalidOperationError("This operation requires the module to have a body.");
|
|
233541
233541
|
return bodyNode2;
|
|
233542
|
-
} else if (
|
|
233542
|
+
} else if (Node4.isBodied(node))
|
|
233543
233543
|
return node.getBody();
|
|
233544
|
-
else if (
|
|
233544
|
+
else if (Node4.isBodyable(node))
|
|
233545
233545
|
return node.getBodyOrThrow();
|
|
233546
233546
|
else
|
|
233547
233547
|
common.errors.throwNotImplementedForSyntaxKindError(node.getKind(), node);
|
|
@@ -233731,7 +233731,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
|
|
|
233731
233731
|
__name(prependCommaAndSeparator, "prependCommaAndSeparator");
|
|
233732
233732
|
function getPreviousNonCommentNode() {
|
|
233733
233733
|
for (let i = insertIndex - 1; i >= 0; i--) {
|
|
233734
|
-
if (!
|
|
233734
|
+
if (!Node4.isCommentNode(currentNodes[i]))
|
|
233735
233735
|
return currentNodes[i];
|
|
233736
233736
|
}
|
|
233737
233737
|
return void 0;
|
|
@@ -233739,7 +233739,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
|
|
|
233739
233739
|
__name(getPreviousNonCommentNode, "getPreviousNonCommentNode");
|
|
233740
233740
|
function getNextNonCommentNode() {
|
|
233741
233741
|
for (let i = insertIndex; i < currentNodes.length; i++) {
|
|
233742
|
-
if (!
|
|
233742
|
+
if (!Node4.isCommentNode(currentNodes[i]))
|
|
233743
233743
|
return currentNodes[i];
|
|
233744
233744
|
}
|
|
233745
233745
|
return void 0;
|
|
@@ -233797,7 +233797,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
|
|
|
233797
233797
|
function getChild(child) {
|
|
233798
233798
|
if (child == null)
|
|
233799
233799
|
return child;
|
|
233800
|
-
else if (
|
|
233800
|
+
else if (Node4.isOverloadable(child))
|
|
233801
233801
|
return child.getImplementation() || child;
|
|
233802
233802
|
else
|
|
233803
233803
|
return child;
|
|
@@ -233832,7 +233832,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
|
|
|
233832
233832
|
let count = 0;
|
|
233833
233833
|
for (let i = index - 1; i >= 0; i--) {
|
|
233834
233834
|
const node = startChildren[i];
|
|
233835
|
-
if (
|
|
233835
|
+
if (Node4.isCommentNode(node)) {
|
|
233836
233836
|
commentCount++;
|
|
233837
233837
|
if (node.getText().startsWith("/**"))
|
|
233838
233838
|
count = commentCount;
|
|
@@ -233910,12 +233910,12 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
|
|
|
233910
233910
|
}
|
|
233911
233911
|
__name(removeChildrenWithFormatting, "removeChildrenWithFormatting");
|
|
233912
233912
|
function removeClassMember(classMember) {
|
|
233913
|
-
if (
|
|
233913
|
+
if (Node4.isOverloadable(classMember)) {
|
|
233914
233914
|
if (classMember.isImplementation())
|
|
233915
233915
|
removeClassMembers([...classMember.getOverloads(), classMember]);
|
|
233916
233916
|
else {
|
|
233917
233917
|
const parent = classMember.getParentOrThrow();
|
|
233918
|
-
if (
|
|
233918
|
+
if (Node4.isAmbientable(parent) && parent.isAmbient())
|
|
233919
233919
|
removeClassMembers([classMember]);
|
|
233920
233920
|
else
|
|
233921
233921
|
removeChildren({ children: [classMember], removeFollowingSpaces: true, removeFollowingNewLines: true });
|
|
@@ -234269,7 +234269,7 @@ Path: ` + sourceFile.getFilePath() + "\nText: " + JSON.stringify(textManipulator
|
|
|
234269
234269
|
return this.compilerObject.kind;
|
|
234270
234270
|
}
|
|
234271
234271
|
};
|
|
234272
|
-
var
|
|
234272
|
+
var Node4 = class _Node {
|
|
234273
234273
|
static {
|
|
234274
234274
|
__name(this, "Node");
|
|
234275
234275
|
}
|
|
@@ -235070,10 +235070,10 @@ Node text: ${this.#forgottenText}`;
|
|
|
235070
235070
|
const fileText = compilerSourceFile.getFullText();
|
|
235071
235071
|
let finalText = "";
|
|
235072
235072
|
let lastPos = replaceRange[0];
|
|
235073
|
-
for (const
|
|
235074
|
-
finalText += fileText.substring(lastPos,
|
|
235075
|
-
finalText += printer.printNode(common.ts.EmitHint.Unspecified,
|
|
235076
|
-
lastPos =
|
|
235073
|
+
for (const transform of transformations) {
|
|
235074
|
+
finalText += fileText.substring(lastPos, transform.start);
|
|
235075
|
+
finalText += printer.printNode(common.ts.EmitHint.Unspecified, transform.compilerNode, transform.compilerNode.getSourceFile() ?? compilerSourceFile);
|
|
235076
|
+
lastPos = transform.end;
|
|
235077
235077
|
}
|
|
235078
235078
|
finalText += fileText.substring(lastPos, replaceRange[1]);
|
|
235079
235079
|
return finalText;
|
|
@@ -236987,7 +236987,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
236987
236987
|
}
|
|
236988
236988
|
__name(getWrappedCondition, "getWrappedCondition");
|
|
236989
236989
|
function insertWhiteSpaceTextAtPos(node, insertPos, textOrWriterFunction, methodName) {
|
|
236990
|
-
const parent =
|
|
236990
|
+
const parent = Node4.isSourceFile(node) ? node.getChildSyntaxListOrThrow() : node.getParentSyntaxList() || node.getParentOrThrow();
|
|
236991
236991
|
const newText = getTextFromStringOrWriter(node._getWriterWithQueuedIndentation(), textOrWriterFunction);
|
|
236992
236992
|
if (!/^[\s\r\n]*$/.test(newText))
|
|
236993
236993
|
throw new common.errors.InvalidOperationError(`Cannot insert non-whitespace into ${methodName}.`);
|
|
@@ -237036,7 +237036,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
237036
237036
|
Scope["Protected"] = "protected";
|
|
237037
237037
|
Scope["Private"] = "private";
|
|
237038
237038
|
})(exports.Scope || (exports.Scope = {}));
|
|
237039
|
-
var SyntaxList = class extends
|
|
237039
|
+
var SyntaxList = class extends Node4 {
|
|
237040
237040
|
static {
|
|
237041
237041
|
__name(this, "SyntaxList");
|
|
237042
237042
|
}
|
|
@@ -237058,12 +237058,12 @@ Node text: ${this.#forgottenText}`;
|
|
|
237058
237058
|
else
|
|
237059
237059
|
insertText = " " + insertText;
|
|
237060
237060
|
} else {
|
|
237061
|
-
if (index === 0 &&
|
|
237061
|
+
if (index === 0 && Node4.isSourceFile(parent)) {
|
|
237062
237062
|
if (!insertText.endsWith("\n"))
|
|
237063
237063
|
insertText += newLineKind;
|
|
237064
237064
|
} else {
|
|
237065
237065
|
insertText = newLineKind + insertText;
|
|
237066
|
-
if (!
|
|
237066
|
+
if (!Node4.isSourceFile(parent) && index === initialChildCount && insertText.endsWith("\n"))
|
|
237067
237067
|
insertText = insertText.replace(/\r?\n$/, "");
|
|
237068
237068
|
}
|
|
237069
237069
|
}
|
|
@@ -237323,7 +237323,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
237323
237323
|
if (value === hasExclamationToken)
|
|
237324
237324
|
return this;
|
|
237325
237325
|
if (value) {
|
|
237326
|
-
if (
|
|
237326
|
+
if (Node4.isQuestionTokenable(this))
|
|
237327
237327
|
this.setHasQuestionToken(false);
|
|
237328
237328
|
const colonNode = this.getFirstChildByKind(common.SyntaxKind.ColonToken);
|
|
237329
237329
|
if (colonNode == null)
|
|
@@ -237358,11 +237358,11 @@ Node text: ${this.#forgottenText}`;
|
|
|
237358
237358
|
return this.getExportKeyword() != null;
|
|
237359
237359
|
}
|
|
237360
237360
|
getExportKeyword() {
|
|
237361
|
-
if (
|
|
237361
|
+
if (Node4.isVariableDeclaration(this)) {
|
|
237362
237362
|
const variableStatement = this.getVariableStatement();
|
|
237363
237363
|
return variableStatement?.getExportKeyword();
|
|
237364
237364
|
}
|
|
237365
|
-
if (!
|
|
237365
|
+
if (!Node4.isModifierable(this))
|
|
237366
237366
|
return throwForNotModifierableNode();
|
|
237367
237367
|
return this.getFirstModifierByKind(common.SyntaxKind.ExportKeyword);
|
|
237368
237368
|
}
|
|
@@ -237373,11 +237373,11 @@ Node text: ${this.#forgottenText}`;
|
|
|
237373
237373
|
return this.getDefaultKeyword() != null;
|
|
237374
237374
|
}
|
|
237375
237375
|
getDefaultKeyword() {
|
|
237376
|
-
if (
|
|
237376
|
+
if (Node4.isVariableDeclaration(this)) {
|
|
237377
237377
|
const variableStatement = this.getVariableStatement();
|
|
237378
237378
|
return variableStatement?.getDefaultKeyword();
|
|
237379
237379
|
}
|
|
237380
|
-
if (!
|
|
237380
|
+
if (!Node4.isModifierable(this))
|
|
237381
237381
|
return throwForNotModifierableNode();
|
|
237382
237382
|
return this.getFirstModifierByKind(common.SyntaxKind.DefaultKeyword);
|
|
237383
237383
|
}
|
|
@@ -237437,7 +237437,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
237437
237437
|
setIsDefaultExport(value) {
|
|
237438
237438
|
if (value === this.isDefaultExport())
|
|
237439
237439
|
return this;
|
|
237440
|
-
if (value && !
|
|
237440
|
+
if (value && !Node4.isSourceFile(this.getParentOrThrow()))
|
|
237441
237441
|
throw new common.errors.InvalidOperationError("The parent must be a source file in order to set this node as a default export.");
|
|
237442
237442
|
const sourceFile = this.getSourceFile();
|
|
237443
237443
|
const fileDefaultExportSymbol = sourceFile.getDefaultExportSymbol();
|
|
@@ -237445,7 +237445,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
237445
237445
|
sourceFile.removeDefaultExport(fileDefaultExportSymbol);
|
|
237446
237446
|
if (!value)
|
|
237447
237447
|
return this;
|
|
237448
|
-
if (
|
|
237448
|
+
if (Node4.hasName(this) && shouldWriteAsSeparateStatement.call(this)) {
|
|
237449
237449
|
const parentSyntaxList = this.getFirstAncestorByKindOrThrow(common.SyntaxKind.SyntaxList);
|
|
237450
237450
|
const name = this.getName();
|
|
237451
237451
|
parentSyntaxList.insertChildText(this.getChildIndex() + 1, (writer) => {
|
|
@@ -237457,16 +237457,16 @@ Node text: ${this.#forgottenText}`;
|
|
|
237457
237457
|
}
|
|
237458
237458
|
return this;
|
|
237459
237459
|
function shouldWriteAsSeparateStatement() {
|
|
237460
|
-
if (
|
|
237460
|
+
if (Node4.isEnumDeclaration(this) || Node4.isModuleDeclaration(this) || Node4.isTypeAliasDeclaration(this))
|
|
237461
237461
|
return true;
|
|
237462
|
-
if (
|
|
237462
|
+
if (Node4.isAmbientable(this) && this.isAmbient())
|
|
237463
237463
|
return true;
|
|
237464
237464
|
return false;
|
|
237465
237465
|
}
|
|
237466
237466
|
__name(shouldWriteAsSeparateStatement, "shouldWriteAsSeparateStatement");
|
|
237467
237467
|
}
|
|
237468
237468
|
setIsExported(value) {
|
|
237469
|
-
if (
|
|
237469
|
+
if (Node4.isSourceFile(this.getParentOrThrow()))
|
|
237470
237470
|
this.toggleModifier("default", false);
|
|
237471
237471
|
this.toggleModifier("export", value);
|
|
237472
237472
|
return this;
|
|
@@ -240667,8 +240667,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
240667
240667
|
this._standardWrite(writer, info, () => {
|
|
240668
240668
|
this._context.structurePrinterFactory.forImportDeclaration().printTexts(writer, structures);
|
|
240669
240669
|
}, {
|
|
240670
|
-
previousNewLine: /* @__PURE__ */ __name((previousMember) =>
|
|
240671
|
-
nextNewLine: /* @__PURE__ */ __name((nextMember) =>
|
|
240670
|
+
previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isImportDeclaration(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
|
|
240671
|
+
nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isImportDeclaration(nextMember), "nextNewLine")
|
|
240672
240672
|
});
|
|
240673
240673
|
}, "write")
|
|
240674
240674
|
});
|
|
@@ -240687,7 +240687,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
240687
240687
|
return common.errors.throwIfNullOrUndefined(this.getImportDeclaration(conditionOrModuleSpecifier), message ?? "Expected to find an import with the provided condition.", this);
|
|
240688
240688
|
}
|
|
240689
240689
|
getImportDeclarations() {
|
|
240690
|
-
return this.getStatements().filter(
|
|
240690
|
+
return this.getStatements().filter(Node4.isImportDeclaration);
|
|
240691
240691
|
}
|
|
240692
240692
|
addExportDeclaration(structure) {
|
|
240693
240693
|
return this.addExportDeclarations([structure])[0];
|
|
@@ -240707,8 +240707,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
240707
240707
|
this._standardWrite(writer, info, () => {
|
|
240708
240708
|
this._context.structurePrinterFactory.forExportDeclaration().printTexts(writer, structures);
|
|
240709
240709
|
}, {
|
|
240710
|
-
previousNewLine: /* @__PURE__ */ __name((previousMember) =>
|
|
240711
|
-
nextNewLine: /* @__PURE__ */ __name((nextMember) =>
|
|
240710
|
+
previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isExportDeclaration(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
|
|
240711
|
+
nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isExportDeclaration(nextMember), "nextNewLine")
|
|
240712
240712
|
});
|
|
240713
240713
|
}, "write")
|
|
240714
240714
|
});
|
|
@@ -240727,7 +240727,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
240727
240727
|
return common.errors.throwIfNullOrUndefined(this.getExportDeclaration(conditionOrModuleSpecifier), message ?? "Expected to find an export declaration with the provided condition.", this);
|
|
240728
240728
|
}
|
|
240729
240729
|
getExportDeclarations() {
|
|
240730
|
-
return this.getStatements().filter(
|
|
240730
|
+
return this.getStatements().filter(Node4.isExportDeclaration);
|
|
240731
240731
|
}
|
|
240732
240732
|
addExportAssignment(structure) {
|
|
240733
240733
|
return this.addExportAssignments([structure])[0];
|
|
@@ -240747,8 +240747,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
240747
240747
|
this._standardWrite(writer, info, () => {
|
|
240748
240748
|
this._context.structurePrinterFactory.forExportAssignment().printTexts(writer, structures);
|
|
240749
240749
|
}, {
|
|
240750
|
-
previousNewLine: /* @__PURE__ */ __name((previousMember) =>
|
|
240751
|
-
nextNewLine: /* @__PURE__ */ __name((nextMember) =>
|
|
240750
|
+
previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isExportAssignment(previousMember) || isComment(previousMember.compilerNode), "previousNewLine"),
|
|
240751
|
+
nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isExportAssignment(nextMember), "nextNewLine")
|
|
240752
240752
|
});
|
|
240753
240753
|
}, "write")
|
|
240754
240754
|
});
|
|
@@ -240760,7 +240760,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
240760
240760
|
return common.errors.throwIfNullOrUndefined(this.getExportAssignment(condition), message ?? "Expected to find an export assignment with the provided condition.", this);
|
|
240761
240761
|
}
|
|
240762
240762
|
getExportAssignments() {
|
|
240763
|
-
return this.getStatements().filter(
|
|
240763
|
+
return this.getStatements().filter(Node4.isExportAssignment);
|
|
240764
240764
|
}
|
|
240765
240765
|
getDefaultExportSymbol() {
|
|
240766
240766
|
const sourceFileSymbol = this.getSymbol();
|
|
@@ -240791,23 +240791,23 @@ Node text: ${this.#forgottenText}`;
|
|
|
240791
240791
|
}
|
|
240792
240792
|
return result;
|
|
240793
240793
|
function* getDeclarationHandlingImportsAndExports(declaration) {
|
|
240794
|
-
if (
|
|
240794
|
+
if (Node4.isExportSpecifier(declaration)) {
|
|
240795
240795
|
for (const d of declaration.getLocalTargetDeclarations())
|
|
240796
240796
|
yield* getDeclarationHandlingImportsAndExports(d);
|
|
240797
|
-
} else if (
|
|
240797
|
+
} else if (Node4.isExportAssignment(declaration)) {
|
|
240798
240798
|
const expression = declaration.getExpression();
|
|
240799
240799
|
if (expression == null || expression.getKind() !== common.SyntaxKind.Identifier) {
|
|
240800
240800
|
yield expression;
|
|
240801
240801
|
return;
|
|
240802
240802
|
}
|
|
240803
240803
|
yield* getDeclarationsForSymbol(expression.getSymbol());
|
|
240804
|
-
} else if (
|
|
240804
|
+
} else if (Node4.isImportSpecifier(declaration)) {
|
|
240805
240805
|
const identifier = declaration.getNameNode();
|
|
240806
240806
|
const symbol = identifier.getSymbol();
|
|
240807
240807
|
if (symbol == null)
|
|
240808
240808
|
return;
|
|
240809
240809
|
yield* getDeclarationsForSymbol(symbol.getAliasedSymbol() || symbol);
|
|
240810
|
-
} else if (
|
|
240810
|
+
} else if (Node4.isImportClause(declaration)) {
|
|
240811
240811
|
const identifier = declaration.getDefaultImport();
|
|
240812
240812
|
if (identifier == null)
|
|
240813
240813
|
return;
|
|
@@ -240815,7 +240815,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
240815
240815
|
if (symbol == null)
|
|
240816
240816
|
return;
|
|
240817
240817
|
yield* getDeclarationsForSymbol(symbol.getAliasedSymbol() || symbol);
|
|
240818
|
-
} else if (
|
|
240818
|
+
} else if (Node4.isNamespaceImport(declaration) || Node4.isNamespaceExport(declaration)) {
|
|
240819
240819
|
const symbol = declaration.getNameNode().getSymbol();
|
|
240820
240820
|
if (symbol == null)
|
|
240821
240821
|
return;
|
|
@@ -240840,7 +240840,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
240840
240840
|
const declaration = defaultExportSymbol.getDeclarations()[0];
|
|
240841
240841
|
if (declaration.compilerNode.kind === common.SyntaxKind.ExportAssignment)
|
|
240842
240842
|
removeChildrenWithFormatting({ children: [declaration], getSiblingFormatting: /* @__PURE__ */ __name(() => FormattingKind.Newline, "getSiblingFormatting") });
|
|
240843
|
-
else if (
|
|
240843
|
+
else if (Node4.isModifierable(declaration)) {
|
|
240844
240844
|
declaration.toggleModifier("default", false);
|
|
240845
240845
|
declaration.toggleModifier("export", false);
|
|
240846
240846
|
}
|
|
@@ -240883,12 +240883,12 @@ Node text: ${this.#forgottenText}`;
|
|
|
240883
240883
|
}
|
|
240884
240884
|
__name(ReferenceFindableNode, "ReferenceFindableNode");
|
|
240885
240885
|
function getNodeForReferences(node) {
|
|
240886
|
-
if (
|
|
240886
|
+
if (Node4.isIdentifier(node) || Node4.isStringLiteral(node))
|
|
240887
240887
|
return node;
|
|
240888
240888
|
const nameNode = node.getNodeProperty("name");
|
|
240889
240889
|
if (nameNode != null)
|
|
240890
240890
|
return nameNode;
|
|
240891
|
-
if (
|
|
240891
|
+
if (Node4.isExportable(node))
|
|
240892
240892
|
return node.getDefaultKeyword() || node;
|
|
240893
240893
|
return node;
|
|
240894
240894
|
}
|
|
@@ -240899,12 +240899,12 @@ Node text: ${this.#forgottenText}`;
|
|
|
240899
240899
|
renameNode(getNodeToRename(this), newName, options);
|
|
240900
240900
|
return this;
|
|
240901
240901
|
function getNodeToRename(thisNode) {
|
|
240902
|
-
if (
|
|
240902
|
+
if (Node4.isIdentifier(thisNode) || Node4.isPrivateIdentifier(thisNode) || Node4.isStringLiteral(thisNode))
|
|
240903
240903
|
return thisNode;
|
|
240904
240904
|
else if (thisNode.getNameNode != null) {
|
|
240905
240905
|
const node = thisNode.getNameNode();
|
|
240906
240906
|
common.errors.throwIfNullOrUndefined(node, "Expected to find a name node when renaming.");
|
|
240907
|
-
if (
|
|
240907
|
+
if (Node4.isArrayBindingPattern(node) || Node4.isObjectBindingPattern(node))
|
|
240908
240908
|
throw new common.errors.NotImplementedError(`Not implemented renameable scenario for ${node.getKindName()}.`);
|
|
240909
240909
|
return node;
|
|
240910
240910
|
} else {
|
|
@@ -240993,7 +240993,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
240993
240993
|
}
|
|
240994
240994
|
__name(NameableNodeInternal, "NameableNodeInternal");
|
|
240995
240995
|
function addNameNode(node, newName) {
|
|
240996
|
-
if (
|
|
240996
|
+
if (Node4.isClassDeclaration(node) || Node4.isClassExpression(node)) {
|
|
240997
240997
|
const classKeyword = node.getFirstChildByKindOrThrow(common.SyntaxKind.ClassKeyword);
|
|
240998
240998
|
insertIntoParentTextRange({
|
|
240999
240999
|
insertPos: classKeyword.getEnd(),
|
|
@@ -241120,7 +241120,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
241120
241120
|
if (value === hasQuestionDotToken)
|
|
241121
241121
|
return this;
|
|
241122
241122
|
if (value) {
|
|
241123
|
-
if (
|
|
241123
|
+
if (Node4.isPropertyAccessExpression(this))
|
|
241124
241124
|
this.getFirstChildByKindOrThrow(common.SyntaxKind.DotToken).replaceWithText("?.");
|
|
241125
241125
|
else {
|
|
241126
241126
|
insertIntoParentTextRange({
|
|
@@ -241130,16 +241130,16 @@ Node text: ${this.#forgottenText}`;
|
|
|
241130
241130
|
});
|
|
241131
241131
|
}
|
|
241132
241132
|
} else {
|
|
241133
|
-
if (
|
|
241133
|
+
if (Node4.isPropertyAccessExpression(this))
|
|
241134
241134
|
questionDotTokenNode.replaceWithText(".");
|
|
241135
241135
|
else
|
|
241136
241136
|
removeChildren({ children: [questionDotTokenNode] });
|
|
241137
241137
|
}
|
|
241138
241138
|
return this;
|
|
241139
241139
|
function getInsertPos2() {
|
|
241140
|
-
if (
|
|
241140
|
+
if (Node4.isCallExpression(this))
|
|
241141
241141
|
return this.getFirstChildByKindOrThrow(common.SyntaxKind.OpenParenToken).getStart();
|
|
241142
|
-
if (
|
|
241142
|
+
if (Node4.isElementAccessExpression(this))
|
|
241143
241143
|
return this.getFirstChildByKindOrThrow(common.SyntaxKind.OpenBracketToken).getStart();
|
|
241144
241144
|
common.errors.throwNotImplementedForSyntaxKindError(this.compilerNode.kind);
|
|
241145
241145
|
}
|
|
@@ -241176,7 +241176,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
241176
241176
|
if (value === hasQuestionToken)
|
|
241177
241177
|
return this;
|
|
241178
241178
|
if (value) {
|
|
241179
|
-
if (
|
|
241179
|
+
if (Node4.isExclamationTokenable(this))
|
|
241180
241180
|
this.setHasExclamationToken(false);
|
|
241181
241181
|
insertIntoParentTextRange({
|
|
241182
241182
|
insertPos: getInsertPos2.call(this),
|
|
@@ -241188,7 +241188,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
241188
241188
|
}
|
|
241189
241189
|
return this;
|
|
241190
241190
|
function getInsertPos2() {
|
|
241191
|
-
if (
|
|
241191
|
+
if (Node4.hasName(this))
|
|
241192
241192
|
return this.getNameNode().getEnd();
|
|
241193
241193
|
const colonNode = this.getFirstChildByKind(common.SyntaxKind.ColonToken);
|
|
241194
241194
|
if (colonNode != null)
|
|
@@ -241314,7 +241314,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
241314
241314
|
const scope = getScopeForNode(this);
|
|
241315
241315
|
if (scope != null)
|
|
241316
241316
|
return scope;
|
|
241317
|
-
if (
|
|
241317
|
+
if (Node4.isParameterDeclaration(this) && this.isReadonly())
|
|
241318
241318
|
return exports.Scope.Public;
|
|
241319
241319
|
return void 0;
|
|
241320
241320
|
}
|
|
@@ -241470,14 +241470,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
241470
241470
|
__name(TextInsertableNode, "TextInsertableNode");
|
|
241471
241471
|
function getValidRange(thisNode) {
|
|
241472
241472
|
const rangeNode = getRangeNode();
|
|
241473
|
-
const openBrace =
|
|
241473
|
+
const openBrace = Node4.isSourceFile(rangeNode) ? void 0 : rangeNode.getPreviousSiblingIfKind(common.SyntaxKind.OpenBraceToken);
|
|
241474
241474
|
const closeBrace = openBrace == null ? void 0 : rangeNode.getNextSiblingIfKind(common.SyntaxKind.CloseBraceToken);
|
|
241475
241475
|
if (openBrace != null && closeBrace != null)
|
|
241476
241476
|
return [openBrace.getEnd(), closeBrace.getStart()];
|
|
241477
241477
|
else
|
|
241478
241478
|
return [rangeNode.getPos(), rangeNode.getEnd()];
|
|
241479
241479
|
function getRangeNode() {
|
|
241480
|
-
if (
|
|
241480
|
+
if (Node4.isSourceFile(thisNode))
|
|
241481
241481
|
return thisNode;
|
|
241482
241482
|
return thisNode.getChildSyntaxListOrThrow();
|
|
241483
241483
|
}
|
|
@@ -242002,7 +242002,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242002
242002
|
const namedNode = node;
|
|
242003
242003
|
if (namedNode.getNameNode != null)
|
|
242004
242004
|
return namedNode.getNameNode().getEnd();
|
|
242005
|
-
else if (
|
|
242005
|
+
else if (Node4.isCallSignatureDeclaration(node) || Node4.isFunctionTypeNode(node))
|
|
242006
242006
|
return node.getFirstChildByKindOrThrow(common.SyntaxKind.OpenParenToken).getStart();
|
|
242007
242007
|
else
|
|
242008
242008
|
throw new common.errors.NotImplementedError(`Not implemented scenario inserting type parameters for node with kind ${node.getKindName()}.`);
|
|
@@ -242016,7 +242016,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242016
242016
|
};
|
|
242017
242017
|
}
|
|
242018
242018
|
__name(UnwrappableNode, "UnwrappableNode");
|
|
242019
|
-
var ArrayBindingPattern = class extends
|
|
242019
|
+
var ArrayBindingPattern = class extends Node4 {
|
|
242020
242020
|
static {
|
|
242021
242021
|
__name(this, "ArrayBindingPattern");
|
|
242022
242022
|
}
|
|
@@ -242025,7 +242025,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242025
242025
|
}
|
|
242026
242026
|
};
|
|
242027
242027
|
var createBase$F = /* @__PURE__ */ __name((ctor) => DotDotDotTokenableNode(InitializerExpressionableNode(BindingNamedNode(ctor))), "createBase$F");
|
|
242028
|
-
var BindingElementBase = createBase$F(
|
|
242028
|
+
var BindingElementBase = createBase$F(Node4);
|
|
242029
242029
|
var BindingElement = class extends BindingElementBase {
|
|
242030
242030
|
static {
|
|
242031
242031
|
__name(this, "BindingElement");
|
|
@@ -242037,7 +242037,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242037
242037
|
return this._getNodeFromCompilerNodeIfExists(this.compilerNode.propertyName);
|
|
242038
242038
|
}
|
|
242039
242039
|
};
|
|
242040
|
-
var ObjectBindingPattern = class extends
|
|
242040
|
+
var ObjectBindingPattern = class extends Node4 {
|
|
242041
242041
|
static {
|
|
242042
242042
|
__name(this, "ObjectBindingPattern");
|
|
242043
242043
|
}
|
|
@@ -242074,7 +242074,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242074
242074
|
};
|
|
242075
242075
|
}
|
|
242076
242076
|
__name(AbstractableNode, "AbstractableNode");
|
|
242077
|
-
var Expression = class extends
|
|
242077
|
+
var Expression = class extends Node4 {
|
|
242078
242078
|
static {
|
|
242079
242079
|
__name(this, "Expression");
|
|
242080
242080
|
}
|
|
@@ -242379,7 +242379,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242379
242379
|
__name(this, "NonNullExpression");
|
|
242380
242380
|
}
|
|
242381
242381
|
};
|
|
242382
|
-
var ObjectLiteralElement = class extends
|
|
242382
|
+
var ObjectLiteralElement = class extends Node4 {
|
|
242383
242383
|
static {
|
|
242384
242384
|
__name(this, "ObjectLiteralElement");
|
|
242385
242385
|
}
|
|
@@ -242792,7 +242792,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242792
242792
|
__name(this, "YieldExpression");
|
|
242793
242793
|
}
|
|
242794
242794
|
};
|
|
242795
|
-
var StatementBase = ChildOrderableNode(
|
|
242795
|
+
var StatementBase = ChildOrderableNode(Node4);
|
|
242796
242796
|
var Statement = class extends StatementBase {
|
|
242797
242797
|
static {
|
|
242798
242798
|
__name(this, "Statement");
|
|
@@ -242836,7 +242836,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242836
242836
|
return getChildSyntaxList.call(this).insertChildText(index, writerFunction);
|
|
242837
242837
|
function getChildSyntaxList() {
|
|
242838
242838
|
const childSyntaxList = this.getChildSyntaxListOrThrow();
|
|
242839
|
-
if (
|
|
242839
|
+
if (Node4.isCaseClause(this) || Node4.isDefaultClause(this)) {
|
|
242840
242840
|
const block = childSyntaxList.getFirstChildIfKind(common.SyntaxKind.Block);
|
|
242841
242841
|
if (block != null)
|
|
242842
242842
|
return block.getChildSyntaxListOrThrow();
|
|
@@ -242877,7 +242877,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242877
242877
|
});
|
|
242878
242878
|
}
|
|
242879
242879
|
getClasses() {
|
|
242880
|
-
return this.getStatements().filter(
|
|
242880
|
+
return this.getStatements().filter(Node4.isClassDeclaration);
|
|
242881
242881
|
}
|
|
242882
242882
|
getClass(nameOrFindFunction) {
|
|
242883
242883
|
return getNodeByNameOrFindFunction(this.getClasses(), nameOrFindFunction);
|
|
@@ -242907,7 +242907,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242907
242907
|
});
|
|
242908
242908
|
}
|
|
242909
242909
|
getEnums() {
|
|
242910
|
-
return this.getStatements().filter(
|
|
242910
|
+
return this.getStatements().filter(Node4.isEnumDeclaration);
|
|
242911
242911
|
}
|
|
242912
242912
|
getEnum(nameOrFindFunction) {
|
|
242913
242913
|
return getNodeByNameOrFindFunction(this.getEnums(), nameOrFindFunction);
|
|
@@ -242935,14 +242935,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
242935
242935
|
isAmbient: isNodeAmbientOrInAmbientContext(this)
|
|
242936
242936
|
}).printTexts(writer, structures);
|
|
242937
242937
|
}, {
|
|
242938
|
-
previousNewLine: /* @__PURE__ */ __name((previousMember) => structures[0].hasDeclareKeyword === true &&
|
|
242939
|
-
nextNewLine: /* @__PURE__ */ __name((nextMember) => structures[structures.length - 1].hasDeclareKeyword === true &&
|
|
242938
|
+
previousNewLine: /* @__PURE__ */ __name((previousMember) => structures[0].hasDeclareKeyword === true && Node4.isFunctionDeclaration(previousMember) && previousMember.getBody() == null, "previousNewLine"),
|
|
242939
|
+
nextNewLine: /* @__PURE__ */ __name((nextMember) => structures[structures.length - 1].hasDeclareKeyword === true && Node4.isFunctionDeclaration(nextMember) && nextMember.getBody() == null, "nextNewLine")
|
|
242940
242940
|
});
|
|
242941
242941
|
}, "write")
|
|
242942
242942
|
});
|
|
242943
242943
|
}
|
|
242944
242944
|
getFunctions() {
|
|
242945
|
-
return this.getStatements().filter(
|
|
242945
|
+
return this.getStatements().filter(Node4.isFunctionDeclaration).filter((f) => f.isAmbient() || f.isImplementation());
|
|
242946
242946
|
}
|
|
242947
242947
|
getFunction(nameOrFindFunction) {
|
|
242948
242948
|
return getNodeByNameOrFindFunction(this.getFunctions(), nameOrFindFunction);
|
|
@@ -242972,7 +242972,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
242972
242972
|
});
|
|
242973
242973
|
}
|
|
242974
242974
|
getInterfaces() {
|
|
242975
|
-
return this.getStatements().filter(
|
|
242975
|
+
return this.getStatements().filter(Node4.isInterfaceDeclaration);
|
|
242976
242976
|
}
|
|
242977
242977
|
getInterface(nameOrFindFunction) {
|
|
242978
242978
|
return getNodeByNameOrFindFunction(this.getInterfaces(), nameOrFindFunction);
|
|
@@ -243002,7 +243002,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243002
243002
|
});
|
|
243003
243003
|
}
|
|
243004
243004
|
getModules() {
|
|
243005
|
-
return this.getStatements().filter(
|
|
243005
|
+
return this.getStatements().filter(Node4.isModuleDeclaration);
|
|
243006
243006
|
}
|
|
243007
243007
|
getModule(nameOrFindFunction) {
|
|
243008
243008
|
return getNodeByNameOrFindFunction(this.getModules(), nameOrFindFunction);
|
|
@@ -243028,14 +243028,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
243028
243028
|
this._standardWrite(writer, info, () => {
|
|
243029
243029
|
this._context.structurePrinterFactory.forTypeAliasDeclaration().printTexts(writer, structures);
|
|
243030
243030
|
}, {
|
|
243031
|
-
previousNewLine: /* @__PURE__ */ __name((previousMember) =>
|
|
243032
|
-
nextNewLine: /* @__PURE__ */ __name((nextMember) =>
|
|
243031
|
+
previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isTypeAliasDeclaration(previousMember), "previousNewLine"),
|
|
243032
|
+
nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isTypeAliasDeclaration(nextMember), "nextNewLine")
|
|
243033
243033
|
});
|
|
243034
243034
|
}, "write")
|
|
243035
243035
|
});
|
|
243036
243036
|
}
|
|
243037
243037
|
getTypeAliases() {
|
|
243038
|
-
return this.getStatements().filter(
|
|
243038
|
+
return this.getStatements().filter(Node4.isTypeAliasDeclaration);
|
|
243039
243039
|
}
|
|
243040
243040
|
getTypeAlias(nameOrFindFunction) {
|
|
243041
243041
|
return getNodeByNameOrFindFunction(this.getTypeAliases(), nameOrFindFunction);
|
|
@@ -243044,7 +243044,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243044
243044
|
return common.errors.throwIfNullOrUndefined(this.getTypeAlias(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("type alias", nameOrFindFunction));
|
|
243045
243045
|
}
|
|
243046
243046
|
getVariableStatements() {
|
|
243047
|
-
return this.getStatements().filter(
|
|
243047
|
+
return this.getStatements().filter(Node4.isVariableStatement);
|
|
243048
243048
|
}
|
|
243049
243049
|
getVariableStatement(nameOrFindFunction) {
|
|
243050
243050
|
return this.getVariableStatements().find(getFindFunction());
|
|
@@ -243076,8 +243076,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
243076
243076
|
this._standardWrite(writer, info, () => {
|
|
243077
243077
|
this._context.structurePrinterFactory.forVariableStatement().printTexts(writer, structures);
|
|
243078
243078
|
}, {
|
|
243079
|
-
previousNewLine: /* @__PURE__ */ __name((previousMember) =>
|
|
243080
|
-
nextNewLine: /* @__PURE__ */ __name((nextMember) =>
|
|
243079
|
+
previousNewLine: /* @__PURE__ */ __name((previousMember) => Node4.isVariableStatement(previousMember), "previousNewLine"),
|
|
243080
|
+
nextNewLine: /* @__PURE__ */ __name((nextMember) => Node4.isVariableStatement(nextMember), "nextNewLine")
|
|
243081
243081
|
});
|
|
243082
243082
|
}, "write")
|
|
243083
243083
|
});
|
|
@@ -243096,11 +243096,11 @@ Node text: ${this.#forgottenText}`;
|
|
|
243096
243096
|
}
|
|
243097
243097
|
getStructure() {
|
|
243098
243098
|
const structure = {};
|
|
243099
|
-
if (
|
|
243099
|
+
if (Node4.isBodyable(this) && !this.hasBody())
|
|
243100
243100
|
structure.statements = void 0;
|
|
243101
243101
|
else {
|
|
243102
243102
|
structure.statements = this.getStatements().map((s) => {
|
|
243103
|
-
if (
|
|
243103
|
+
if (Node4._hasStructure(s))
|
|
243104
243104
|
return s.getStructure();
|
|
243105
243105
|
return s.getText({ trimLeadingIndentation: true });
|
|
243106
243106
|
});
|
|
@@ -243108,7 +243108,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243108
243108
|
return callBaseGetStructure(Base.prototype, this, structure);
|
|
243109
243109
|
}
|
|
243110
243110
|
set(structure) {
|
|
243111
|
-
if (
|
|
243111
|
+
if (Node4.isBodyable(this) && structure.statements == null && structure.hasOwnProperty(common.nameof(structure, "statements")))
|
|
243112
243112
|
this.removeBody();
|
|
243113
243113
|
else if (structure.statements != null) {
|
|
243114
243114
|
const statementCount = this._getCompilerStatementsWithComments().length;
|
|
@@ -243129,17 +243129,17 @@ Node text: ${this.#forgottenText}`;
|
|
|
243129
243129
|
}
|
|
243130
243130
|
}
|
|
243131
243131
|
_getCompilerStatementsContainer() {
|
|
243132
|
-
if (
|
|
243132
|
+
if (Node4.isSourceFile(this) || Node4.isCaseClause(this) || Node4.isDefaultClause(this))
|
|
243133
243133
|
return this.compilerNode;
|
|
243134
|
-
else if (
|
|
243134
|
+
else if (Node4.isModuleDeclaration(this)) {
|
|
243135
243135
|
const body = this._getInnerBody();
|
|
243136
243136
|
if (body == null)
|
|
243137
243137
|
return void 0;
|
|
243138
243138
|
else
|
|
243139
243139
|
return body.compilerNode;
|
|
243140
|
-
} else if (
|
|
243140
|
+
} else if (Node4.isBodyable(this) || Node4.isBodied(this))
|
|
243141
243141
|
return this.getBody()?.compilerNode;
|
|
243142
|
-
else if (
|
|
243142
|
+
else if (Node4.isBlock(this) || Node4.isModuleBlock(this))
|
|
243143
243143
|
return this.compilerNode;
|
|
243144
243144
|
else
|
|
243145
243145
|
throw new common.errors.NotImplementedError(`Could not find the statements for node kind: ${this.getKindName()}, text: ${this.getText()}`);
|
|
@@ -243156,7 +243156,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243156
243156
|
});
|
|
243157
243157
|
}
|
|
243158
243158
|
_standardWrite(writer, info, writeStructures, opts = {}) {
|
|
243159
|
-
if (info.previousMember != null && (opts.previousNewLine == null || !opts.previousNewLine(info.previousMember)) && !
|
|
243159
|
+
if (info.previousMember != null && (opts.previousNewLine == null || !opts.previousNewLine(info.previousMember)) && !Node4.isCommentNode(info.previousMember)) {
|
|
243160
243160
|
writer.blankLine();
|
|
243161
243161
|
} else if (!info.isStartOfFile) {
|
|
243162
243162
|
writer.newLineIfLastNot();
|
|
@@ -243171,7 +243171,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243171
243171
|
}
|
|
243172
243172
|
__name(StatementedNode, "StatementedNode");
|
|
243173
243173
|
function addBodyIfNotExists(node) {
|
|
243174
|
-
if (
|
|
243174
|
+
if (Node4.isBodyable(node) && !node.hasBody())
|
|
243175
243175
|
node.addBody();
|
|
243176
243176
|
}
|
|
243177
243177
|
__name(addBodyIfNotExists, "addBodyIfNotExists");
|
|
@@ -243193,7 +243193,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243193
243193
|
return common.errors.throwIfNullOrUndefined(this.getLabel(), message ?? "Expected to find a label.", this);
|
|
243194
243194
|
}
|
|
243195
243195
|
};
|
|
243196
|
-
var CaseBlockBase = TextInsertableNode(
|
|
243196
|
+
var CaseBlockBase = TextInsertableNode(Node4);
|
|
243197
243197
|
var CaseBlock = class extends CaseBlockBase {
|
|
243198
243198
|
static {
|
|
243199
243199
|
__name(this, "CaseBlock");
|
|
@@ -243214,7 +243214,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243214
243214
|
}
|
|
243215
243215
|
};
|
|
243216
243216
|
var createBase$u = /* @__PURE__ */ __name((ctor) => JSDocableNode(ExpressionedNode(TextInsertableNode(StatementedNode(ctor)))), "createBase$u");
|
|
243217
|
-
var CaseClauseBase = createBase$u(
|
|
243217
|
+
var CaseClauseBase = createBase$u(Node4);
|
|
243218
243218
|
var CaseClause = class extends CaseClauseBase {
|
|
243219
243219
|
static {
|
|
243220
243220
|
__name(this, "CaseClause");
|
|
@@ -243223,7 +243223,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243223
243223
|
removeClausedNodeChild(this);
|
|
243224
243224
|
}
|
|
243225
243225
|
};
|
|
243226
|
-
var CatchClauseBase =
|
|
243226
|
+
var CatchClauseBase = Node4;
|
|
243227
243227
|
var CatchClause = class extends CatchClauseBase {
|
|
243228
243228
|
static {
|
|
243229
243229
|
__name(this, "CatchClause");
|
|
@@ -243261,7 +243261,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243261
243261
|
}
|
|
243262
243262
|
};
|
|
243263
243263
|
var createBase$t = /* @__PURE__ */ __name((ctor) => TextInsertableNode(StatementedNode(ctor)), "createBase$t");
|
|
243264
|
-
var DefaultClauseBase = createBase$t(
|
|
243264
|
+
var DefaultClauseBase = createBase$t(Node4);
|
|
243265
243265
|
var DefaultClause = class extends DefaultClauseBase {
|
|
243266
243266
|
static {
|
|
243267
243267
|
__name(this, "DefaultClause");
|
|
@@ -243351,7 +243351,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243351
243351
|
}
|
|
243352
243352
|
remove() {
|
|
243353
243353
|
const nodes = [];
|
|
243354
|
-
if (
|
|
243354
|
+
if (Node4.isIfStatement(this.getParentOrThrow()))
|
|
243355
243355
|
nodes.push(this.getPreviousSiblingIfKindOrThrow(common.SyntaxKind.ElseKeyword));
|
|
243356
243356
|
nodes.push(this);
|
|
243357
243357
|
removeStatementedNodeChildren(nodes);
|
|
@@ -243489,7 +243489,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243489
243489
|
}
|
|
243490
243490
|
getNamespaceExport() {
|
|
243491
243491
|
const exportClause = this.getNodeProperty("exportClause");
|
|
243492
|
-
return exportClause != null &&
|
|
243492
|
+
return exportClause != null && Node4.isNamespaceExport(exportClause) ? exportClause : void 0;
|
|
243493
243493
|
}
|
|
243494
243494
|
getNamespaceExportOrThrow(message) {
|
|
243495
243495
|
return common.errors.throwIfNullOrUndefined(this.getNamespaceExport(), message ?? "Expected to find a namespace export.", this);
|
|
@@ -243507,7 +243507,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243507
243507
|
textLength: 1
|
|
243508
243508
|
}
|
|
243509
243509
|
});
|
|
243510
|
-
} else if (
|
|
243510
|
+
} else if (Node4.isNamespaceExport(exportClause))
|
|
243511
243511
|
exportClause.getNameNode().replaceWithText(name);
|
|
243512
243512
|
else {
|
|
243513
243513
|
insertIntoParentTextRange({
|
|
@@ -243545,7 +243545,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243545
243545
|
const moduleSpecifier = this._getNodeFromCompilerNodeIfExists(this.compilerNode.moduleSpecifier);
|
|
243546
243546
|
if (moduleSpecifier == null)
|
|
243547
243547
|
return void 0;
|
|
243548
|
-
if (!
|
|
243548
|
+
if (!Node4.isStringLiteral(moduleSpecifier))
|
|
243549
243549
|
throw new common.errors.InvalidOperationError("Expected the module specifier to be a string literal.");
|
|
243550
243550
|
return moduleSpecifier;
|
|
243551
243551
|
}
|
|
@@ -243564,7 +243564,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243564
243564
|
if (symbol == null)
|
|
243565
243565
|
return void 0;
|
|
243566
243566
|
const declaration = symbol.getDeclarations()[0];
|
|
243567
|
-
return declaration != null &&
|
|
243567
|
+
return declaration != null && Node4.isSourceFile(declaration) ? declaration : void 0;
|
|
243568
243568
|
}
|
|
243569
243569
|
isModuleSpecifierRelative() {
|
|
243570
243570
|
const moduleSpecifierValue = this.getModuleSpecifierValue();
|
|
@@ -243746,7 +243746,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243746
243746
|
});
|
|
243747
243747
|
}
|
|
243748
243748
|
__name(setEmptyNamedExport, "setEmptyNamedExport");
|
|
243749
|
-
var ExportSpecifierBase =
|
|
243749
|
+
var ExportSpecifierBase = Node4;
|
|
243750
243750
|
var ExportSpecifier = class extends ExportSpecifierBase {
|
|
243751
243751
|
static {
|
|
243752
243752
|
__name(this, "ExportSpecifier");
|
|
@@ -243882,7 +243882,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243882
243882
|
}
|
|
243883
243883
|
getStructure() {
|
|
243884
243884
|
const alias = this.getAliasNode();
|
|
243885
|
-
return callBaseGetStructure(
|
|
243885
|
+
return callBaseGetStructure(Node4.prototype, this, {
|
|
243886
243886
|
kind: exports.StructureKind.ExportSpecifier,
|
|
243887
243887
|
alias: alias ? alias.getText() : void 0,
|
|
243888
243888
|
name: this.getNameNode().getText(),
|
|
@@ -243890,7 +243890,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243890
243890
|
});
|
|
243891
243891
|
}
|
|
243892
243892
|
};
|
|
243893
|
-
var ExternalModuleReferenceBase = ExpressionableNode(
|
|
243893
|
+
var ExternalModuleReferenceBase = ExpressionableNode(Node4);
|
|
243894
243894
|
var ExternalModuleReference = class extends ExternalModuleReferenceBase {
|
|
243895
243895
|
static {
|
|
243896
243896
|
__name(this, "ExternalModuleReference");
|
|
@@ -243900,7 +243900,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243900
243900
|
}
|
|
243901
243901
|
isRelative() {
|
|
243902
243902
|
const expression = this.getExpression();
|
|
243903
|
-
if (expression == null || !
|
|
243903
|
+
if (expression == null || !Node4.isStringLiteral(expression))
|
|
243904
243904
|
return false;
|
|
243905
243905
|
return ModuleUtils.isModuleSpecifierRelative(expression.getLiteralText());
|
|
243906
243906
|
}
|
|
@@ -243914,7 +243914,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243914
243914
|
return ModuleUtils.getReferencedSourceFileFromSymbol(symbol);
|
|
243915
243915
|
}
|
|
243916
243916
|
};
|
|
243917
|
-
var ImportAttributeBase = ImportAttributeNamedNode(
|
|
243917
|
+
var ImportAttributeBase = ImportAttributeNamedNode(Node4);
|
|
243918
243918
|
var ImportAttribute = class extends ImportAttributeBase {
|
|
243919
243919
|
static {
|
|
243920
243920
|
__name(this, "ImportAttribute");
|
|
@@ -243935,7 +243935,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243935
243935
|
});
|
|
243936
243936
|
}
|
|
243937
243937
|
};
|
|
243938
|
-
var ImportAttributesBase =
|
|
243938
|
+
var ImportAttributesBase = Node4;
|
|
243939
243939
|
var ImportAttributes = class extends ImportAttributesBase {
|
|
243940
243940
|
static {
|
|
243941
243941
|
__name(this, "ImportAttributes");
|
|
@@ -243958,7 +243958,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
243958
243958
|
});
|
|
243959
243959
|
}
|
|
243960
243960
|
};
|
|
243961
|
-
var ImportClauseBase =
|
|
243961
|
+
var ImportClauseBase = Node4;
|
|
243962
243962
|
var ImportClause = class extends ImportClauseBase {
|
|
243963
243963
|
static {
|
|
243964
243964
|
__name(this, "ImportClause");
|
|
@@ -244027,13 +244027,13 @@ Node text: ${this.#forgottenText}`;
|
|
|
244027
244027
|
}
|
|
244028
244028
|
getNamespaceImport() {
|
|
244029
244029
|
const namedBindings = this.getNamedBindings();
|
|
244030
|
-
if (namedBindings == null || !
|
|
244030
|
+
if (namedBindings == null || !Node4.isNamespaceImport(namedBindings))
|
|
244031
244031
|
return void 0;
|
|
244032
244032
|
return namedBindings.getNameNode();
|
|
244033
244033
|
}
|
|
244034
244034
|
getNamedImports() {
|
|
244035
244035
|
const namedBindings = this.getNamedBindings();
|
|
244036
|
-
if (namedBindings == null || !
|
|
244036
|
+
if (namedBindings == null || !Node4.isNamedImports(namedBindings))
|
|
244037
244037
|
return [];
|
|
244038
244038
|
return namedBindings.getElements();
|
|
244039
244039
|
}
|
|
@@ -244081,7 +244081,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244081
244081
|
}
|
|
244082
244082
|
getModuleSpecifier() {
|
|
244083
244083
|
const moduleSpecifier = this._getNodeFromCompilerNode(this.compilerNode.moduleSpecifier);
|
|
244084
|
-
if (!
|
|
244084
|
+
if (!Node4.isStringLiteral(moduleSpecifier))
|
|
244085
244085
|
throw new common.errors.InvalidOperationError("Expected the module specifier to be a string literal.");
|
|
244086
244086
|
return moduleSpecifier;
|
|
244087
244087
|
}
|
|
@@ -244450,14 +244450,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
244450
244450
|
}
|
|
244451
244451
|
isExternalModuleReferenceRelative() {
|
|
244452
244452
|
const moduleReference = this.getModuleReference();
|
|
244453
|
-
if (!
|
|
244453
|
+
if (!Node4.isExternalModuleReference(moduleReference))
|
|
244454
244454
|
return false;
|
|
244455
244455
|
return moduleReference.isRelative();
|
|
244456
244456
|
}
|
|
244457
244457
|
setExternalModuleReference(textOrSourceFile) {
|
|
244458
244458
|
const text = typeof textOrSourceFile === "string" ? textOrSourceFile : this._sourceFile.getRelativePathAsModuleSpecifierTo(textOrSourceFile);
|
|
244459
244459
|
const moduleReference = this.getModuleReference();
|
|
244460
|
-
if (
|
|
244460
|
+
if (Node4.isExternalModuleReference(moduleReference) && moduleReference.getExpression() != null)
|
|
244461
244461
|
moduleReference.getExpressionOrThrow().replaceWithText((writer) => writer.quote(text));
|
|
244462
244462
|
else
|
|
244463
244463
|
moduleReference.replaceWithText((writer) => writer.write("require(").quote(text).write(")"));
|
|
@@ -244468,12 +244468,12 @@ Node text: ${this.#forgottenText}`;
|
|
|
244468
244468
|
}
|
|
244469
244469
|
getExternalModuleReferenceSourceFile() {
|
|
244470
244470
|
const moduleReference = this.getModuleReference();
|
|
244471
|
-
if (!
|
|
244471
|
+
if (!Node4.isExternalModuleReference(moduleReference))
|
|
244472
244472
|
return void 0;
|
|
244473
244473
|
return moduleReference.getReferencedSourceFile();
|
|
244474
244474
|
}
|
|
244475
244475
|
};
|
|
244476
|
-
var ImportSpecifierBase =
|
|
244476
|
+
var ImportSpecifierBase = Node4;
|
|
244477
244477
|
var ImportSpecifier = class extends ImportSpecifierBase {
|
|
244478
244478
|
static {
|
|
244479
244479
|
__name(this, "ImportSpecifier");
|
|
@@ -244618,7 +244618,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244618
244618
|
}
|
|
244619
244619
|
getParentModule() {
|
|
244620
244620
|
let parent = this.getParentOrThrow();
|
|
244621
|
-
if (!
|
|
244621
|
+
if (!Node4.isModuleBlock(parent))
|
|
244622
244622
|
return void 0;
|
|
244623
244623
|
while (parent.getParentOrThrow().getKind() === common.SyntaxKind.ModuleDeclaration)
|
|
244624
244624
|
parent = parent.getParentOrThrow();
|
|
@@ -244681,7 +244681,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244681
244681
|
}
|
|
244682
244682
|
getNameNodes() {
|
|
244683
244683
|
const name = this.getNameNode();
|
|
244684
|
-
if (
|
|
244684
|
+
if (Node4.isStringLiteral(name))
|
|
244685
244685
|
return name;
|
|
244686
244686
|
else {
|
|
244687
244687
|
const nodes = [];
|
|
@@ -244753,7 +244753,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244753
244753
|
}
|
|
244754
244754
|
_getInnerBody() {
|
|
244755
244755
|
let node = this.getBody();
|
|
244756
|
-
while (node != null &&
|
|
244756
|
+
while (node != null && Node4.isBodyable(node) && node.compilerNode.statements == null)
|
|
244757
244757
|
node = node.getBody();
|
|
244758
244758
|
return node;
|
|
244759
244759
|
}
|
|
@@ -244770,7 +244770,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244770
244770
|
namespaceDec.setHasDeclareKeyword(true);
|
|
244771
244771
|
}
|
|
244772
244772
|
__name(changeToAmbientModuleIfNecessary, "changeToAmbientModuleIfNecessary");
|
|
244773
|
-
var NamedExportsBase =
|
|
244773
|
+
var NamedExportsBase = Node4;
|
|
244774
244774
|
var NamedExports = class extends NamedExportsBase {
|
|
244775
244775
|
static {
|
|
244776
244776
|
__name(this, "NamedExports");
|
|
@@ -244779,7 +244779,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244779
244779
|
return this.compilerNode.elements.map((e) => this._getNodeFromCompilerNode(e));
|
|
244780
244780
|
}
|
|
244781
244781
|
};
|
|
244782
|
-
var NamedImportsBase =
|
|
244782
|
+
var NamedImportsBase = Node4;
|
|
244783
244783
|
var NamedImports = class extends NamedImportsBase {
|
|
244784
244784
|
static {
|
|
244785
244785
|
__name(this, "NamedImports");
|
|
@@ -244788,7 +244788,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244788
244788
|
return this.compilerNode.elements.map((e) => this._getNodeFromCompilerNode(e));
|
|
244789
244789
|
}
|
|
244790
244790
|
};
|
|
244791
|
-
var NamespaceExportBase = RenameableNode(
|
|
244791
|
+
var NamespaceExportBase = RenameableNode(Node4);
|
|
244792
244792
|
var NamespaceExport = class extends NamespaceExportBase {
|
|
244793
244793
|
static {
|
|
244794
244794
|
__name(this, "NamespaceExport");
|
|
@@ -244814,7 +244814,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
244814
244814
|
return this._getNodeFromCompilerNode(this.compilerNode.name);
|
|
244815
244815
|
}
|
|
244816
244816
|
};
|
|
244817
|
-
var NamespaceImportBase = RenameableNode(
|
|
244817
|
+
var NamespaceImportBase = RenameableNode(Node4);
|
|
244818
244818
|
var NamespaceImport = class extends NamespaceImportBase {
|
|
244819
244819
|
static {
|
|
244820
244820
|
__name(this, "NamespaceImport");
|
|
@@ -244892,8 +244892,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
244892
244892
|
return useValue ? value : void 0;
|
|
244893
244893
|
}
|
|
244894
244894
|
__name(__runInitializers, "__runInitializers");
|
|
244895
|
-
var SourceFileBase = ModuledNode(TextInsertableNode(StatementedNode(
|
|
244896
|
-
var
|
|
244895
|
+
var SourceFileBase = ModuledNode(TextInsertableNode(StatementedNode(Node4)));
|
|
244896
|
+
var SourceFile5 = (() => {
|
|
244897
244897
|
let _classSuper = SourceFileBase;
|
|
244898
244898
|
let _instanceExtraInitializers = [];
|
|
244899
244899
|
let _isFromExternalLibrary_decorators;
|
|
@@ -245410,7 +245410,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245410
245410
|
function getReferencingNodeFromStringLiteral(literal) {
|
|
245411
245411
|
const parent = literal.getParentOrThrow();
|
|
245412
245412
|
const grandParent = parent.getParent();
|
|
245413
|
-
if (grandParent != null &&
|
|
245413
|
+
if (grandParent != null && Node4.isImportEqualsDeclaration(grandParent))
|
|
245414
245414
|
return grandParent;
|
|
245415
245415
|
else
|
|
245416
245416
|
return parent;
|
|
@@ -245651,7 +245651,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245651
245651
|
}
|
|
245652
245652
|
};
|
|
245653
245653
|
var createBase$m = /* @__PURE__ */ __name((ctor) => OverrideableNode(QuestionTokenableNode(DecoratableNode(ScopeableNode(ReadonlyableNode(ModifierableNode(DotDotDotTokenableNode(TypedNode(InitializerExpressionableNode(BindingNamedNode(ctor)))))))))), "createBase$m");
|
|
245654
|
-
var ParameterDeclarationBase = createBase$m(
|
|
245654
|
+
var ParameterDeclarationBase = createBase$m(Node4);
|
|
245655
245655
|
var ParameterDeclaration = class extends ParameterDeclarationBase {
|
|
245656
245656
|
static {
|
|
245657
245657
|
__name(this, "ParameterDeclaration");
|
|
@@ -245717,7 +245717,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245717
245717
|
if (isParameterWithoutParens())
|
|
245718
245718
|
addParens();
|
|
245719
245719
|
function isParameterWithoutParens() {
|
|
245720
|
-
return
|
|
245720
|
+
return Node4.isArrowFunction(parent) && parent.compilerNode.parameters.length === 1 && parameter.getParentSyntaxListOrThrow().getPreviousSiblingIfKind(common.SyntaxKind.OpenParenToken) == null;
|
|
245721
245721
|
}
|
|
245722
245722
|
__name(isParameterWithoutParens, "isParameterWithoutParens");
|
|
245723
245723
|
function addParens() {
|
|
@@ -245737,17 +245737,17 @@ Node text: ${this.#forgottenText}`;
|
|
|
245737
245737
|
__name(addParens, "addParens");
|
|
245738
245738
|
}
|
|
245739
245739
|
__name(addParensIfNecessary, "addParensIfNecessary");
|
|
245740
|
-
var ClassElement = class extends
|
|
245740
|
+
var ClassElement = class extends Node4 {
|
|
245741
245741
|
static {
|
|
245742
245742
|
__name(this, "ClassElement");
|
|
245743
245743
|
}
|
|
245744
245744
|
remove() {
|
|
245745
245745
|
const parent = this.getParentOrThrow();
|
|
245746
|
-
if (
|
|
245746
|
+
if (Node4.isClassDeclaration(parent) || Node4.isClassExpression(parent))
|
|
245747
245747
|
removeClassMember(this);
|
|
245748
|
-
else if (
|
|
245748
|
+
else if (Node4.isObjectLiteralExpression(parent))
|
|
245749
245749
|
removeCommaSeparatedChild(this);
|
|
245750
|
-
else if (
|
|
245750
|
+
else if (Node4.isInterfaceDeclaration(parent))
|
|
245751
245751
|
removeInterfaceMember(this);
|
|
245752
245752
|
else
|
|
245753
245753
|
common.errors.throwNotImplementedForSyntaxKindError(parent.getKind());
|
|
@@ -245896,7 +245896,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245896
245896
|
index,
|
|
245897
245897
|
parent: this,
|
|
245898
245898
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
245899
|
-
const previousMemberHasBody = !isAmbient && info.previousMember != null &&
|
|
245899
|
+
const previousMemberHasBody = !isAmbient && info.previousMember != null && Node4.isBodyable(info.previousMember) && info.previousMember.hasBody();
|
|
245900
245900
|
const firstStructureHasBody = !isAmbient && members instanceof Array && structureHasBody(members[0]);
|
|
245901
245901
|
if (previousMemberHasBody || info.previousMember != null && firstStructureHasBody)
|
|
245902
245902
|
writer.blankLineIfLastNot();
|
|
@@ -245907,7 +245907,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245907
245907
|
memberPrinter.printTexts(memberWriter, members);
|
|
245908
245908
|
writer.write(memberWriter.toString());
|
|
245909
245909
|
const lastStructureHasBody = !isAmbient && members instanceof Array && structureHasBody(members[members.length - 1]);
|
|
245910
|
-
const nextMemberHasBody = !isAmbient && info.nextMember != null &&
|
|
245910
|
+
const nextMemberHasBody = !isAmbient && info.nextMember != null && Node4.isBodyable(info.nextMember) && info.nextMember.hasBody();
|
|
245911
245911
|
if (info.nextMember != null && lastStructureHasBody || nextMemberHasBody)
|
|
245912
245912
|
writer.blankLineIfLastNot();
|
|
245913
245913
|
else
|
|
@@ -245938,7 +245938,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245938
245938
|
structures,
|
|
245939
245939
|
expectedKind: common.SyntaxKind.Constructor,
|
|
245940
245940
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
245941
|
-
if (!isAmbient && info.previousMember != null && !
|
|
245941
|
+
if (!isAmbient && info.previousMember != null && !Node4.isCommentNode(info.previousMember))
|
|
245942
245942
|
writer.blankLineIfLastNot();
|
|
245943
245943
|
else
|
|
245944
245944
|
writer.newLineIfLastNot();
|
|
@@ -245951,7 +245951,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245951
245951
|
});
|
|
245952
245952
|
}
|
|
245953
245953
|
getConstructors() {
|
|
245954
|
-
return this.getMembers().filter((m) =>
|
|
245954
|
+
return this.getMembers().filter((m) => Node4.isConstructorDeclaration(m));
|
|
245955
245955
|
}
|
|
245956
245956
|
addStaticBlock(structure = {}) {
|
|
245957
245957
|
return this.insertStaticBlock(getEndIndexFromArray(this.getMembersWithComments()), structure);
|
|
@@ -245969,7 +245969,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245969
245969
|
structures,
|
|
245970
245970
|
expectedKind: common.SyntaxKind.ClassStaticBlockDeclaration,
|
|
245971
245971
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
245972
|
-
if (!isAmbient && info.previousMember != null && !
|
|
245972
|
+
if (!isAmbient && info.previousMember != null && !Node4.isCommentNode(info.previousMember))
|
|
245973
245973
|
writer.blankLineIfLastNot();
|
|
245974
245974
|
else
|
|
245975
245975
|
writer.newLineIfLastNot();
|
|
@@ -245982,7 +245982,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245982
245982
|
});
|
|
245983
245983
|
}
|
|
245984
245984
|
getStaticBlocks() {
|
|
245985
|
-
return this.getMembers().filter((m) =>
|
|
245985
|
+
return this.getMembers().filter((m) => Node4.isClassStaticBlockDeclaration(m));
|
|
245986
245986
|
}
|
|
245987
245987
|
addGetAccessor(structure) {
|
|
245988
245988
|
return this.addGetAccessors([structure])[0];
|
|
@@ -245999,7 +245999,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
245999
245999
|
structures,
|
|
246000
246000
|
expectedKind: common.SyntaxKind.GetAccessor,
|
|
246001
246001
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
246002
|
-
if (info.previousMember != null && !
|
|
246002
|
+
if (info.previousMember != null && !Node4.isCommentNode(info.previousMember))
|
|
246003
246003
|
writer.blankLineIfLastNot();
|
|
246004
246004
|
else
|
|
246005
246005
|
writer.newLineIfLastNot();
|
|
@@ -246028,7 +246028,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246028
246028
|
structures,
|
|
246029
246029
|
expectedKind: common.SyntaxKind.SetAccessor,
|
|
246030
246030
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
246031
|
-
if (info.previousMember != null && !
|
|
246031
|
+
if (info.previousMember != null && !Node4.isCommentNode(info.previousMember))
|
|
246032
246032
|
writer.blankLineIfLastNot();
|
|
246033
246033
|
else
|
|
246034
246034
|
writer.newLineIfLastNot();
|
|
@@ -246057,12 +246057,12 @@ Node text: ${this.#forgottenText}`;
|
|
|
246057
246057
|
structures,
|
|
246058
246058
|
expectedKind: common.SyntaxKind.PropertyDeclaration,
|
|
246059
246059
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
246060
|
-
if (info.previousMember != null &&
|
|
246060
|
+
if (info.previousMember != null && Node4.hasBody(info.previousMember))
|
|
246061
246061
|
writer.blankLineIfLastNot();
|
|
246062
246062
|
else
|
|
246063
246063
|
writer.newLineIfLastNot();
|
|
246064
246064
|
this._context.structurePrinterFactory.forPropertyDeclaration().printTexts(writer, structures);
|
|
246065
|
-
if (info.nextMember != null &&
|
|
246065
|
+
if (info.nextMember != null && Node4.hasBody(info.nextMember))
|
|
246066
246066
|
writer.blankLineIfLastNot();
|
|
246067
246067
|
else
|
|
246068
246068
|
writer.newLineIfLastNot();
|
|
@@ -246084,7 +246084,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246084
246084
|
return insertChildren(this, {
|
|
246085
246085
|
index,
|
|
246086
246086
|
write: /* @__PURE__ */ __name((writer, info) => {
|
|
246087
|
-
if (!isAmbient && info.previousMember != null && !
|
|
246087
|
+
if (!isAmbient && info.previousMember != null && !Node4.isCommentNode(info.previousMember))
|
|
246088
246088
|
writer.blankLineIfLastNot();
|
|
246089
246089
|
else
|
|
246090
246090
|
writer.newLineIfLastNot();
|
|
@@ -246123,7 +246123,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246123
246123
|
return common.errors.throwIfNullOrUndefined(this.getProperty(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class property declaration", nameOrFindFunction));
|
|
246124
246124
|
}
|
|
246125
246125
|
getProperties() {
|
|
246126
|
-
return this.getMembers().filter((m) =>
|
|
246126
|
+
return this.getMembers().filter((m) => Node4.isPropertyDeclaration(m));
|
|
246127
246127
|
}
|
|
246128
246128
|
getGetAccessor(nameOrFindFunction) {
|
|
246129
246129
|
return getNodeByNameOrFindFunction(this.getGetAccessors(), nameOrFindFunction);
|
|
@@ -246132,7 +246132,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246132
246132
|
return common.errors.throwIfNullOrUndefined(this.getGetAccessor(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class getAccessor declaration", nameOrFindFunction));
|
|
246133
246133
|
}
|
|
246134
246134
|
getGetAccessors() {
|
|
246135
|
-
return this.getMembers().filter((m) =>
|
|
246135
|
+
return this.getMembers().filter((m) => Node4.isGetAccessorDeclaration(m));
|
|
246136
246136
|
}
|
|
246137
246137
|
getSetAccessor(nameOrFindFunction) {
|
|
246138
246138
|
return getNodeByNameOrFindFunction(this.getSetAccessors(), nameOrFindFunction);
|
|
@@ -246141,7 +246141,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246141
246141
|
return common.errors.throwIfNullOrUndefined(this.getSetAccessor(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class setAccessor declaration", nameOrFindFunction));
|
|
246142
246142
|
}
|
|
246143
246143
|
getSetAccessors() {
|
|
246144
|
-
return this.getMembers().filter((m) =>
|
|
246144
|
+
return this.getMembers().filter((m) => Node4.isSetAccessorDeclaration(m));
|
|
246145
246145
|
}
|
|
246146
246146
|
getMethod(nameOrFindFunction) {
|
|
246147
246147
|
return getNodeByNameOrFindFunction(this.getMethods(), nameOrFindFunction);
|
|
@@ -246150,7 +246150,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246150
246150
|
return common.errors.throwIfNullOrUndefined(this.getMethod(nameOrFindFunction), () => getNotFoundErrorMessageForNameOrFindFunction("class method declaration", nameOrFindFunction));
|
|
246151
246151
|
}
|
|
246152
246152
|
getMethods() {
|
|
246153
|
-
return this.getMembers().filter((m) =>
|
|
246153
|
+
return this.getMembers().filter((m) => Node4.isMethodDeclaration(m));
|
|
246154
246154
|
}
|
|
246155
246155
|
getInstanceMethod(nameOrFindFunction) {
|
|
246156
246156
|
return getNodeByNameOrFindFunction(this.getInstanceMethods(), nameOrFindFunction);
|
|
@@ -246178,9 +246178,9 @@ Node text: ${this.#forgottenText}`;
|
|
|
246178
246178
|
}
|
|
246179
246179
|
getInstanceMembers() {
|
|
246180
246180
|
return this.getMembersWithParameterProperties().filter((m) => {
|
|
246181
|
-
if (
|
|
246181
|
+
if (Node4.isConstructorDeclaration(m))
|
|
246182
246182
|
return false;
|
|
246183
|
-
return
|
|
246183
|
+
return Node4.isParameterDeclaration(m) || !m.isStatic();
|
|
246184
246184
|
});
|
|
246185
246185
|
}
|
|
246186
246186
|
getStaticMember(nameOrFindFunction) {
|
|
@@ -246191,14 +246191,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
246191
246191
|
}
|
|
246192
246192
|
getStaticMembers() {
|
|
246193
246193
|
return this.getMembers().filter((m) => {
|
|
246194
|
-
if (
|
|
246194
|
+
if (Node4.isConstructorDeclaration(m))
|
|
246195
246195
|
return false;
|
|
246196
|
-
return !
|
|
246196
|
+
return !Node4.isParameterDeclaration(m) && m.isStatic();
|
|
246197
246197
|
});
|
|
246198
246198
|
}
|
|
246199
246199
|
getMembersWithParameterProperties() {
|
|
246200
246200
|
const members = this.getMembers();
|
|
246201
|
-
const implementationCtors = members.filter((c) =>
|
|
246201
|
+
const implementationCtors = members.filter((c) => Node4.isConstructorDeclaration(c) && c.isImplementation());
|
|
246202
246202
|
for (const ctor of implementationCtors) {
|
|
246203
246203
|
let insertIndex = members.indexOf(ctor) + 1;
|
|
246204
246204
|
for (const param of ctor.getParameters()) {
|
|
@@ -246216,7 +246216,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246216
246216
|
getMembersWithComments() {
|
|
246217
246217
|
const compilerNode = this.compilerNode;
|
|
246218
246218
|
const members = ExtendedParser.getContainerArray(compilerNode, this.getSourceFile().compilerNode);
|
|
246219
|
-
return getAllMembers(this, members).filter((m) => isSupportedClassMember(m) ||
|
|
246219
|
+
return getAllMembers(this, members).filter((m) => isSupportedClassMember(m) || Node4.isCommentClassElement(m));
|
|
246220
246220
|
}
|
|
246221
246221
|
getMember(nameOrFindFunction) {
|
|
246222
246222
|
return getNodeByNameOrFindFunction(this.getMembers(), nameOrFindFunction);
|
|
@@ -246255,9 +246255,9 @@ Node text: ${this.#forgottenText}`;
|
|
|
246255
246255
|
const isAmbient = isNodeAmbientOrInAmbientContext(classDec);
|
|
246256
246256
|
const members = compilerMembers.map((m) => classDec._getNodeFromCompilerNode(m));
|
|
246257
246257
|
return isAmbient ? members : members.filter((m) => {
|
|
246258
|
-
if (!(
|
|
246258
|
+
if (!(Node4.isConstructorDeclaration(m) || Node4.isMethodDeclaration(m)))
|
|
246259
246259
|
return true;
|
|
246260
|
-
if (
|
|
246260
|
+
if (Node4.isMethodDeclaration(m) && m.isAbstract())
|
|
246261
246261
|
return true;
|
|
246262
246262
|
return m.isImplementation();
|
|
246263
246263
|
});
|
|
@@ -246285,11 +246285,11 @@ Node text: ${this.#forgottenText}`;
|
|
|
246285
246285
|
}
|
|
246286
246286
|
__name(getImmediateDerivedClasses, "getImmediateDerivedClasses");
|
|
246287
246287
|
function isClassPropertyType(m) {
|
|
246288
|
-
return
|
|
246288
|
+
return Node4.isPropertyDeclaration(m) || Node4.isSetAccessorDeclaration(m) || Node4.isGetAccessorDeclaration(m) || Node4.isParameterDeclaration(m);
|
|
246289
246289
|
}
|
|
246290
246290
|
__name(isClassPropertyType, "isClassPropertyType");
|
|
246291
246291
|
function isSupportedClassMember(m) {
|
|
246292
|
-
return
|
|
246292
|
+
return Node4.isMethodDeclaration(m) || Node4.isPropertyDeclaration(m) || Node4.isGetAccessorDeclaration(m) || Node4.isSetAccessorDeclaration(m) || Node4.isConstructorDeclaration(m) || Node4.isClassStaticBlockDeclaration(m);
|
|
246293
246293
|
}
|
|
246294
246294
|
__name(isSupportedClassMember, "isSupportedClassMember");
|
|
246295
246295
|
function insertChildren(classDeclaration, opts) {
|
|
@@ -246362,7 +246362,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246362
246362
|
typeParameters: this.getTypeParameters().map((p) => p.getStructure()),
|
|
246363
246363
|
properties: [
|
|
246364
246364
|
...parameterProperties.map((p) => {
|
|
246365
|
-
const jsDocComment = p.getParentOrThrow().getJsDocs().map((j) => j.getTags()).flat().filter(
|
|
246365
|
+
const jsDocComment = p.getParentOrThrow().getJsDocs().map((j) => j.getTags()).flat().filter(Node4.isJSDocParameterTag).filter((t) => t.getTagName() === "param" && t.getName() === p.getName() && t.getComment() != null).map((t) => t.getCommentText().trim())[0];
|
|
246366
246366
|
return {
|
|
246367
246367
|
kind: exports.StructureKind.PropertySignature,
|
|
246368
246368
|
docs: jsDocComment == null ? [] : [{ kind: exports.StructureKind.JSDoc, description: jsDocComment }],
|
|
@@ -246441,7 +246441,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246441
246441
|
name: getAndSet[0].getName(),
|
|
246442
246442
|
type: getAndSet[0].getType().getText(getAndSet[0]),
|
|
246443
246443
|
hasQuestionToken: false,
|
|
246444
|
-
isReadonly: getAndSet.every(
|
|
246444
|
+
isReadonly: getAndSet.every(Node4.isGetAccessorDeclaration)
|
|
246445
246445
|
};
|
|
246446
246446
|
}
|
|
246447
246447
|
__name(getExtractedInterfaceAccessorStructure, "getExtractedInterfaceAccessorStructure");
|
|
@@ -246579,7 +246579,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246579
246579
|
const thisName = this.getName();
|
|
246580
246580
|
const isStatic = this.isStatic();
|
|
246581
246581
|
return this.getParentOrThrow().forEachChild((sibling) => {
|
|
246582
|
-
if (
|
|
246582
|
+
if (Node4.isSetAccessorDeclaration(sibling) && sibling.getName() === thisName && sibling.isStatic() === isStatic)
|
|
246583
246583
|
return sibling;
|
|
246584
246584
|
return void 0;
|
|
246585
246585
|
});
|
|
@@ -246642,7 +246642,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246642
246642
|
const thisName = this.getName();
|
|
246643
246643
|
const isStatic = this.isStatic();
|
|
246644
246644
|
return this.getParentOrThrow().forEachChild((sibling) => {
|
|
246645
|
-
if (
|
|
246645
|
+
if (Node4.isGetAccessorDeclaration(sibling) && sibling.getName() === thisName && sibling.isStatic() === isStatic)
|
|
246646
246646
|
return sibling;
|
|
246647
246647
|
return void 0;
|
|
246648
246648
|
});
|
|
@@ -246656,7 +246656,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246656
246656
|
});
|
|
246657
246657
|
}
|
|
246658
246658
|
};
|
|
246659
|
-
var DecoratorBase = LeftHandSideExpressionedNode(
|
|
246659
|
+
var DecoratorBase = LeftHandSideExpressionedNode(Node4);
|
|
246660
246660
|
var Decorator = class extends DecoratorBase {
|
|
246661
246661
|
static {
|
|
246662
246662
|
__name(this, "Decorator");
|
|
@@ -246672,14 +246672,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
246672
246672
|
return getIdentifierFromName(this._getInnerExpression());
|
|
246673
246673
|
function getIdentifierFromName(expression) {
|
|
246674
246674
|
const identifier = getNameFromExpression(expression);
|
|
246675
|
-
if (!
|
|
246675
|
+
if (!Node4.isIdentifier(identifier)) {
|
|
246676
246676
|
throw new common.errors.NotImplementedError(`Expected the decorator expression '${identifier.getText()}' to be an identifier. Please deal directly with 'getExpression()' on the decorator to handle more complex scenarios.`);
|
|
246677
246677
|
}
|
|
246678
246678
|
return identifier;
|
|
246679
246679
|
}
|
|
246680
246680
|
__name(getIdentifierFromName, "getIdentifierFromName");
|
|
246681
246681
|
function getNameFromExpression(expression) {
|
|
246682
|
-
if (
|
|
246682
|
+
if (Node4.isPropertyAccessExpression(expression))
|
|
246683
246683
|
return expression.getNameNode();
|
|
246684
246684
|
return expression;
|
|
246685
246685
|
}
|
|
@@ -246692,7 +246692,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246692
246692
|
return this.compilerNode.expression.getText(sourceFile.compilerNode);
|
|
246693
246693
|
}
|
|
246694
246694
|
isDecoratorFactory() {
|
|
246695
|
-
return
|
|
246695
|
+
return Node4.isCallExpression(this._getInnerExpression());
|
|
246696
246696
|
}
|
|
246697
246697
|
setIsDecoratorFactory(isDecoratorFactory) {
|
|
246698
246698
|
if (this.isDecoratorFactory() === isDecoratorFactory)
|
|
@@ -246734,7 +246734,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246734
246734
|
}
|
|
246735
246735
|
getCallExpression() {
|
|
246736
246736
|
const expression = this._getInnerExpression();
|
|
246737
|
-
return
|
|
246737
|
+
return Node4.isCallExpression(expression) ? expression : void 0;
|
|
246738
246738
|
}
|
|
246739
246739
|
getArguments() {
|
|
246740
246740
|
return this.getCallExpression()?.getArguments() ?? [];
|
|
@@ -246798,7 +246798,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246798
246798
|
}
|
|
246799
246799
|
_getInnerExpression() {
|
|
246800
246800
|
let expr = this.getExpression();
|
|
246801
|
-
while (
|
|
246801
|
+
while (Node4.isParenthesizedExpression(expr))
|
|
246802
246802
|
expr = expr.getExpression();
|
|
246803
246803
|
return expr;
|
|
246804
246804
|
}
|
|
@@ -246892,7 +246892,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
246892
246892
|
__name(getStarPosIfFirstNonWhitespaceChar, "getStarPosIfFirstNonWhitespaceChar");
|
|
246893
246893
|
}
|
|
246894
246894
|
__name(getTextWithoutStars, "getTextWithoutStars");
|
|
246895
|
-
var JSDocBase =
|
|
246895
|
+
var JSDocBase = Node4;
|
|
246896
246896
|
var JSDoc = class extends JSDocBase {
|
|
246897
246897
|
static {
|
|
246898
246898
|
__name(this, "JSDoc");
|
|
@@ -247041,7 +247041,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
247041
247041
|
});
|
|
247042
247042
|
}
|
|
247043
247043
|
};
|
|
247044
|
-
var TypeNode = class extends
|
|
247044
|
+
var TypeNode = class extends Node4 {
|
|
247045
247045
|
static {
|
|
247046
247046
|
__name(this, "TypeNode");
|
|
247047
247047
|
}
|
|
@@ -247107,9 +247107,9 @@ Node text: ${this.#forgottenText}`;
|
|
|
247107
247107
|
}
|
|
247108
247108
|
setArgument(text) {
|
|
247109
247109
|
const arg = this.getArgument();
|
|
247110
|
-
if (
|
|
247110
|
+
if (Node4.isLiteralTypeNode(arg)) {
|
|
247111
247111
|
const literal = arg.getLiteral();
|
|
247112
|
-
if (
|
|
247112
|
+
if (Node4.isStringLiteral(literal)) {
|
|
247113
247113
|
literal.setLiteralValue(text);
|
|
247114
247114
|
return this;
|
|
247115
247115
|
}
|
|
@@ -247333,7 +247333,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
247333
247333
|
TypeParameterVariance[TypeParameterVariance["InOut"] = 3] = "InOut";
|
|
247334
247334
|
})(exports.TypeParameterVariance || (exports.TypeParameterVariance = {}));
|
|
247335
247335
|
var createBase$c = /* @__PURE__ */ __name((ctor) => ModifierableNode(NamedNode(ctor)), "createBase$c");
|
|
247336
|
-
var TypeParameterDeclarationBase = createBase$c(
|
|
247336
|
+
var TypeParameterDeclarationBase = createBase$c(Node4);
|
|
247337
247337
|
var TypeParameterDeclaration = class extends TypeParameterDeclarationBase {
|
|
247338
247338
|
static {
|
|
247339
247339
|
__name(this, "TypeParameterDeclaration");
|
|
@@ -247526,7 +247526,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
247526
247526
|
__name(this, "JSDocAllType");
|
|
247527
247527
|
}
|
|
247528
247528
|
};
|
|
247529
|
-
var JSDocTagBase =
|
|
247529
|
+
var JSDocTagBase = Node4;
|
|
247530
247530
|
var JSDocTag = class extends JSDocTagBase {
|
|
247531
247531
|
static {
|
|
247532
247532
|
__name(this, "JSDocTag");
|
|
@@ -247689,22 +247689,22 @@ Node text: ${this.#forgottenText}`;
|
|
|
247689
247689
|
__name(this, "JSDocImportTag");
|
|
247690
247690
|
}
|
|
247691
247691
|
};
|
|
247692
|
-
var JSDocLink = class extends
|
|
247692
|
+
var JSDocLink = class extends Node4 {
|
|
247693
247693
|
static {
|
|
247694
247694
|
__name(this, "JSDocLink");
|
|
247695
247695
|
}
|
|
247696
247696
|
};
|
|
247697
|
-
var JSDocLinkCode = class extends
|
|
247697
|
+
var JSDocLinkCode = class extends Node4 {
|
|
247698
247698
|
static {
|
|
247699
247699
|
__name(this, "JSDocLinkCode");
|
|
247700
247700
|
}
|
|
247701
247701
|
};
|
|
247702
|
-
var JSDocLinkPlain = class extends
|
|
247702
|
+
var JSDocLinkPlain = class extends Node4 {
|
|
247703
247703
|
static {
|
|
247704
247704
|
__name(this, "JSDocLinkPlain");
|
|
247705
247705
|
}
|
|
247706
247706
|
};
|
|
247707
|
-
var JSDocMemberName = class extends
|
|
247707
|
+
var JSDocMemberName = class extends Node4 {
|
|
247708
247708
|
static {
|
|
247709
247709
|
__name(this, "JSDocMemberName");
|
|
247710
247710
|
}
|
|
@@ -247717,7 +247717,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
247717
247717
|
return this._getNodeFromCompilerNode(this.compilerNode.type);
|
|
247718
247718
|
}
|
|
247719
247719
|
};
|
|
247720
|
-
var JSDocNameReference = class extends
|
|
247720
|
+
var JSDocNameReference = class extends Node4 {
|
|
247721
247721
|
static {
|
|
247722
247722
|
__name(this, "JSDocNameReference");
|
|
247723
247723
|
}
|
|
@@ -247854,7 +247854,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
247854
247854
|
return common.errors.throwIfNullOrUndefined(this.getConstraint(), message ?? "Expected to find the JS doc template tag's constraint.", this);
|
|
247855
247855
|
}
|
|
247856
247856
|
};
|
|
247857
|
-
var JSDocText = class extends
|
|
247857
|
+
var JSDocText = class extends Node4 {
|
|
247858
247858
|
static {
|
|
247859
247859
|
__name(this, "JSDocText");
|
|
247860
247860
|
}
|
|
@@ -247924,7 +247924,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
247924
247924
|
return this._getNodeFromCompilerNode(this.compilerNode.type);
|
|
247925
247925
|
}
|
|
247926
247926
|
};
|
|
247927
|
-
var CommentEnumMember = class extends
|
|
247927
|
+
var CommentEnumMember = class extends Node4 {
|
|
247928
247928
|
static {
|
|
247929
247929
|
__name(this, "CommentEnumMember");
|
|
247930
247930
|
}
|
|
@@ -248015,7 +248015,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248015
248015
|
}
|
|
248016
248016
|
};
|
|
248017
248017
|
var createBase$a = /* @__PURE__ */ __name((ctor) => JSDocableNode(InitializerExpressionableNode(PropertyNamedNode(ctor))), "createBase$a");
|
|
248018
|
-
var EnumMemberBase = createBase$a(
|
|
248018
|
+
var EnumMemberBase = createBase$a(Node4);
|
|
248019
248019
|
var EnumMember = class extends EnumMemberBase {
|
|
248020
248020
|
static {
|
|
248021
248021
|
__name(this, "EnumMember");
|
|
@@ -248059,7 +248059,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248059
248059
|
});
|
|
248060
248060
|
}
|
|
248061
248061
|
};
|
|
248062
|
-
var HeritageClause = class extends
|
|
248062
|
+
var HeritageClause = class extends Node4 {
|
|
248063
248063
|
static {
|
|
248064
248064
|
__name(this, "HeritageClause");
|
|
248065
248065
|
}
|
|
@@ -248088,7 +248088,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248088
248088
|
__name(getExpressionFromIndex, "getExpressionFromIndex");
|
|
248089
248089
|
}
|
|
248090
248090
|
};
|
|
248091
|
-
var TypeElement = class extends
|
|
248091
|
+
var TypeElement = class extends Node4 {
|
|
248092
248092
|
static {
|
|
248093
248093
|
__name(this, "TypeElement");
|
|
248094
248094
|
}
|
|
@@ -248328,7 +248328,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248328
248328
|
};
|
|
248329
248329
|
}
|
|
248330
248330
|
__name(CommonIdentifierBase, "CommonIdentifierBase");
|
|
248331
|
-
var ComputedPropertyNameBase = ExpressionedNode(
|
|
248331
|
+
var ComputedPropertyNameBase = ExpressionedNode(Node4);
|
|
248332
248332
|
var ComputedPropertyName = class extends ComputedPropertyNameBase {
|
|
248333
248333
|
static {
|
|
248334
248334
|
__name(this, "ComputedPropertyName");
|
|
@@ -248343,13 +248343,13 @@ Node text: ${this.#forgottenText}`;
|
|
|
248343
248343
|
return this._context.languageService.getImplementations(this);
|
|
248344
248344
|
}
|
|
248345
248345
|
};
|
|
248346
|
-
var PrivateIdentifierBase = CommonIdentifierBase(ReferenceFindableNode(RenameableNode(
|
|
248346
|
+
var PrivateIdentifierBase = CommonIdentifierBase(ReferenceFindableNode(RenameableNode(Node4)));
|
|
248347
248347
|
var PrivateIdentifier = class extends PrivateIdentifierBase {
|
|
248348
248348
|
static {
|
|
248349
248349
|
__name(this, "PrivateIdentifier");
|
|
248350
248350
|
}
|
|
248351
248351
|
};
|
|
248352
|
-
var QualifiedName = class extends
|
|
248352
|
+
var QualifiedName = class extends Node4 {
|
|
248353
248353
|
static {
|
|
248354
248354
|
__name(this, "QualifiedName");
|
|
248355
248355
|
}
|
|
@@ -248360,8 +248360,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
248360
248360
|
return this._getNodeFromCompilerNode(this.compilerNode.right);
|
|
248361
248361
|
}
|
|
248362
248362
|
};
|
|
248363
|
-
var JsxAttributeBase =
|
|
248364
|
-
var
|
|
248363
|
+
var JsxAttributeBase = Node4;
|
|
248364
|
+
var JsxAttribute2 = class extends JsxAttributeBase {
|
|
248365
248365
|
static {
|
|
248366
248366
|
__name(this, "JsxAttribute");
|
|
248367
248367
|
}
|
|
@@ -248440,7 +248440,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248440
248440
|
}
|
|
248441
248441
|
};
|
|
248442
248442
|
var createBase$3 = /* @__PURE__ */ __name((ctor) => JsxTagNamedNode(ctor), "createBase$3");
|
|
248443
|
-
var JsxClosingElementBase = createBase$3(
|
|
248443
|
+
var JsxClosingElementBase = createBase$3(Node4);
|
|
248444
248444
|
var JsxClosingElement = class extends JsxClosingElementBase {
|
|
248445
248445
|
static {
|
|
248446
248446
|
__name(this, "JsxClosingElement");
|
|
@@ -248526,7 +248526,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248526
248526
|
}
|
|
248527
248527
|
__name(setText, "setText");
|
|
248528
248528
|
var JsxExpressionBase = ExpressionableNode(DotDotDotTokenableNode(Expression));
|
|
248529
|
-
var
|
|
248529
|
+
var JsxExpression2 = class extends JsxExpressionBase {
|
|
248530
248530
|
static {
|
|
248531
248531
|
__name(this, "JsxExpression");
|
|
248532
248532
|
}
|
|
@@ -248545,7 +248545,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248545
248545
|
return this._getNodeFromCompilerNode(this.compilerNode.closingFragment);
|
|
248546
248546
|
}
|
|
248547
248547
|
};
|
|
248548
|
-
var JsxNamespacedNameBase =
|
|
248548
|
+
var JsxNamespacedNameBase = Node4;
|
|
248549
248549
|
var JsxNamespacedName = class extends JsxNamespacedNameBase {
|
|
248550
248550
|
static {
|
|
248551
248551
|
__name(this, "JsxNamespacedName");
|
|
@@ -248570,7 +248570,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248570
248570
|
};
|
|
248571
248571
|
var createBase$2 = /* @__PURE__ */ __name((ctor) => JsxAttributedNode(JsxTagNamedNode(ctor)), "createBase$2");
|
|
248572
248572
|
var JsxOpeningElementBase = createBase$2(Expression);
|
|
248573
|
-
var
|
|
248573
|
+
var JsxOpeningElement3 = class extends JsxOpeningElementBase {
|
|
248574
248574
|
static {
|
|
248575
248575
|
__name(this, "JsxOpeningElement");
|
|
248576
248576
|
}
|
|
@@ -248582,7 +248582,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248582
248582
|
};
|
|
248583
248583
|
var createBase$1 = /* @__PURE__ */ __name((ctor) => JsxAttributedNode(JsxTagNamedNode(ctor)), "createBase$1");
|
|
248584
248584
|
var JsxSelfClosingElementBase = createBase$1(PrimaryExpression);
|
|
248585
|
-
var
|
|
248585
|
+
var JsxSelfClosingElement3 = class extends JsxSelfClosingElementBase {
|
|
248586
248586
|
static {
|
|
248587
248587
|
__name(this, "JsxSelfClosingElement");
|
|
248588
248588
|
}
|
|
@@ -248596,7 +248596,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248596
248596
|
});
|
|
248597
248597
|
}
|
|
248598
248598
|
};
|
|
248599
|
-
var JsxSpreadAttributeBase = ExpressionedNode(
|
|
248599
|
+
var JsxSpreadAttributeBase = ExpressionedNode(Node4);
|
|
248600
248600
|
var JsxSpreadAttribute = class extends JsxSpreadAttributeBase {
|
|
248601
248601
|
static {
|
|
248602
248602
|
__name(this, "JsxSpreadAttribute");
|
|
@@ -248621,7 +248621,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248621
248621
|
});
|
|
248622
248622
|
}
|
|
248623
248623
|
};
|
|
248624
|
-
var JsxTextBase = LiteralLikeNode(
|
|
248624
|
+
var JsxTextBase = LiteralLikeNode(Node4);
|
|
248625
248625
|
var JsxText = class extends JsxTextBase {
|
|
248626
248626
|
static {
|
|
248627
248627
|
__name(this, "JsxText");
|
|
@@ -248755,7 +248755,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248755
248755
|
}
|
|
248756
248756
|
};
|
|
248757
248757
|
var StringLiteralBase = LiteralExpression;
|
|
248758
|
-
var
|
|
248758
|
+
var StringLiteral2 = class extends StringLiteralBase {
|
|
248759
248759
|
static {
|
|
248760
248760
|
__name(this, "StringLiteral");
|
|
248761
248761
|
}
|
|
@@ -248845,19 +248845,19 @@ Node text: ${this.#forgottenText}`;
|
|
|
248845
248845
|
return parent.getChildAtIndex(childIndex);
|
|
248846
248846
|
}
|
|
248847
248847
|
};
|
|
248848
|
-
var TemplateHeadBase = LiteralLikeNode(
|
|
248848
|
+
var TemplateHeadBase = LiteralLikeNode(Node4);
|
|
248849
248849
|
var TemplateHead = class extends TemplateHeadBase {
|
|
248850
248850
|
static {
|
|
248851
248851
|
__name(this, "TemplateHead");
|
|
248852
248852
|
}
|
|
248853
248853
|
};
|
|
248854
|
-
var TemplateMiddleBase = LiteralLikeNode(
|
|
248854
|
+
var TemplateMiddleBase = LiteralLikeNode(Node4);
|
|
248855
248855
|
var TemplateMiddle = class extends TemplateMiddleBase {
|
|
248856
248856
|
static {
|
|
248857
248857
|
__name(this, "TemplateMiddle");
|
|
248858
248858
|
}
|
|
248859
248859
|
};
|
|
248860
|
-
var TemplateSpanBase = ExpressionedNode(
|
|
248860
|
+
var TemplateSpanBase = ExpressionedNode(Node4);
|
|
248861
248861
|
var TemplateSpan = class extends TemplateSpanBase {
|
|
248862
248862
|
static {
|
|
248863
248863
|
__name(this, "TemplateSpan");
|
|
@@ -248866,14 +248866,14 @@ Node text: ${this.#forgottenText}`;
|
|
|
248866
248866
|
return this._getNodeFromCompilerNode(this.compilerNode.literal);
|
|
248867
248867
|
}
|
|
248868
248868
|
};
|
|
248869
|
-
var TemplateTailBase = LiteralLikeNode(
|
|
248869
|
+
var TemplateTailBase = LiteralLikeNode(Node4);
|
|
248870
248870
|
var TemplateTail = class extends TemplateTailBase {
|
|
248871
248871
|
static {
|
|
248872
248872
|
__name(this, "TemplateTail");
|
|
248873
248873
|
}
|
|
248874
248874
|
};
|
|
248875
248875
|
var createBase = /* @__PURE__ */ __name((ctor) => ExportGetableNode(ExclamationTokenableNode(TypedNode(InitializerExpressionableNode(BindingNamedNode(ctor))))), "createBase");
|
|
248876
|
-
var VariableDeclarationBase = createBase(
|
|
248876
|
+
var VariableDeclarationBase = createBase(Node4);
|
|
248877
248877
|
var VariableDeclaration = class extends VariableDeclarationBase {
|
|
248878
248878
|
static {
|
|
248879
248879
|
__name(this, "VariableDeclaration");
|
|
@@ -248916,7 +248916,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248916
248916
|
}
|
|
248917
248917
|
getVariableStatement() {
|
|
248918
248918
|
const grandParent = this.getParentOrThrow().getParentOrThrow();
|
|
248919
|
-
return
|
|
248919
|
+
return Node4.isVariableStatement(grandParent) ? grandParent : void 0;
|
|
248920
248920
|
}
|
|
248921
248921
|
set(structure) {
|
|
248922
248922
|
callBaseSet(VariableDeclarationBase.prototype, this, structure);
|
|
@@ -248928,7 +248928,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
248928
248928
|
});
|
|
248929
248929
|
}
|
|
248930
248930
|
};
|
|
248931
|
-
var VariableDeclarationListBase = ModifierableNode(
|
|
248931
|
+
var VariableDeclarationListBase = ModifierableNode(Node4);
|
|
248932
248932
|
var VariableDeclarationList = class extends VariableDeclarationListBase {
|
|
248933
248933
|
static {
|
|
248934
248934
|
__name(this, "VariableDeclarationList");
|
|
@@ -250483,7 +250483,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
250483
250483
|
if (symbol == null)
|
|
250484
250484
|
return false;
|
|
250485
250485
|
const valueDeclaration = symbol.getValueDeclaration();
|
|
250486
|
-
return valueDeclaration != null &&
|
|
250486
|
+
return valueDeclaration != null && Node4.isEnumDeclaration(valueDeclaration);
|
|
250487
250487
|
}
|
|
250488
250488
|
isInterface() {
|
|
250489
250489
|
return this.#hasObjectFlag(common.ObjectFlags.Interface);
|
|
@@ -250571,7 +250571,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
250571
250571
|
const declaration = symbol.getDeclarations()[0];
|
|
250572
250572
|
if (declaration == null)
|
|
250573
250573
|
return void 0;
|
|
250574
|
-
if (!
|
|
250574
|
+
if (!Node4.isTypeParameterDeclaration(declaration))
|
|
250575
250575
|
return void 0;
|
|
250576
250576
|
return declaration;
|
|
250577
250577
|
}
|
|
@@ -251022,7 +251022,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251022
251022
|
const thisDirectory = this;
|
|
251023
251023
|
return common.FileUtils.getRelativePathTo(this.getPath(), getPath());
|
|
251024
251024
|
function getPath() {
|
|
251025
|
-
return sourceFileDirOrPath instanceof
|
|
251025
|
+
return sourceFileDirOrPath instanceof SourceFile5 ? sourceFileDirOrPath.getFilePath() : sourceFileDirOrPath instanceof _Directory ? sourceFileDirOrPath.getPath() : thisDirectory._context.fileSystemWrapper.getStandardizedAbsolutePath(sourceFileDirOrPath, thisDirectory.getPath());
|
|
251026
251026
|
}
|
|
251027
251027
|
__name(getPath, "getPath");
|
|
251028
251028
|
}
|
|
@@ -251032,7 +251032,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251032
251032
|
const moduleSpecifier = common.FileUtils.getRelativePathTo(this.getPath(), getPath()).replace(/((\.d\.ts$)|(\.[^/.]+$))/i, "");
|
|
251033
251033
|
return moduleSpecifier.startsWith("../") ? moduleSpecifier : "./" + moduleSpecifier;
|
|
251034
251034
|
function getPath() {
|
|
251035
|
-
return sourceFileDirOrFilePath instanceof
|
|
251035
|
+
return sourceFileDirOrFilePath instanceof SourceFile5 ? getPathForSourceFile(sourceFileDirOrFilePath) : sourceFileDirOrFilePath instanceof _Directory ? getPathForDirectory(sourceFileDirOrFilePath) : getPathForFilePath(thisDirectory._context.fileSystemWrapper.getStandardizedAbsolutePath(sourceFileDirOrFilePath, thisDirectory.getPath()));
|
|
251036
251036
|
function getPathForSourceFile(sourceFile) {
|
|
251037
251037
|
return getPathForFilePath(sourceFile.getFilePath());
|
|
251038
251038
|
}
|
|
@@ -251104,7 +251104,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251104
251104
|
};
|
|
251105
251105
|
}
|
|
251106
251106
|
static #isAncestorOfDir(ancestor, descendant) {
|
|
251107
|
-
if (descendant instanceof
|
|
251107
|
+
if (descendant instanceof SourceFile5) {
|
|
251108
251108
|
descendant = descendant.getDirectory();
|
|
251109
251109
|
if (ancestor === descendant)
|
|
251110
251110
|
return true;
|
|
@@ -251389,7 +251389,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251389
251389
|
}
|
|
251390
251390
|
};
|
|
251391
251391
|
var kindToWrapperMappings = {
|
|
251392
|
-
[common.SyntaxKind.SourceFile]:
|
|
251392
|
+
[common.SyntaxKind.SourceFile]: SourceFile5,
|
|
251393
251393
|
[common.SyntaxKind.ArrayBindingPattern]: ArrayBindingPattern,
|
|
251394
251394
|
[common.SyntaxKind.ArrayLiteralExpression]: ArrayLiteralExpression,
|
|
251395
251395
|
[common.SyntaxKind.ArrayType]: ArrayTypeNode,
|
|
@@ -251497,16 +251497,16 @@ Node text: ${this.#forgottenText}`;
|
|
|
251497
251497
|
[common.SyntaxKind.JSDocTypedefTag]: JSDocTypedefTag,
|
|
251498
251498
|
[common.SyntaxKind.JSDocUnknownType]: JSDocUnknownType,
|
|
251499
251499
|
[common.SyntaxKind.JSDocVariadicType]: JSDocVariadicType,
|
|
251500
|
-
[common.SyntaxKind.JsxAttribute]:
|
|
251500
|
+
[common.SyntaxKind.JsxAttribute]: JsxAttribute2,
|
|
251501
251501
|
[common.SyntaxKind.JsxClosingElement]: JsxClosingElement,
|
|
251502
251502
|
[common.SyntaxKind.JsxClosingFragment]: JsxClosingFragment,
|
|
251503
251503
|
[common.SyntaxKind.JsxElement]: JsxElement,
|
|
251504
|
-
[common.SyntaxKind.JsxExpression]:
|
|
251504
|
+
[common.SyntaxKind.JsxExpression]: JsxExpression2,
|
|
251505
251505
|
[common.SyntaxKind.JsxFragment]: JsxFragment,
|
|
251506
251506
|
[common.SyntaxKind.JsxNamespacedName]: JsxNamespacedName,
|
|
251507
|
-
[common.SyntaxKind.JsxOpeningElement]:
|
|
251507
|
+
[common.SyntaxKind.JsxOpeningElement]: JsxOpeningElement3,
|
|
251508
251508
|
[common.SyntaxKind.JsxOpeningFragment]: JsxOpeningFragment,
|
|
251509
|
-
[common.SyntaxKind.JsxSelfClosingElement]:
|
|
251509
|
+
[common.SyntaxKind.JsxSelfClosingElement]: JsxSelfClosingElement3,
|
|
251510
251510
|
[common.SyntaxKind.JsxSpreadAttribute]: JsxSpreadAttribute,
|
|
251511
251511
|
[common.SyntaxKind.JsxText]: JsxText,
|
|
251512
251512
|
[common.SyntaxKind.LabeledStatement]: LabeledStatement,
|
|
@@ -251550,7 +251550,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251550
251550
|
[common.SyntaxKind.ShorthandPropertyAssignment]: ShorthandPropertyAssignment,
|
|
251551
251551
|
[common.SyntaxKind.SpreadAssignment]: SpreadAssignment,
|
|
251552
251552
|
[common.SyntaxKind.SpreadElement]: SpreadElement,
|
|
251553
|
-
[common.SyntaxKind.StringLiteral]:
|
|
251553
|
+
[common.SyntaxKind.StringLiteral]: StringLiteral2,
|
|
251554
251554
|
[common.SyntaxKind.SwitchStatement]: SwitchStatement,
|
|
251555
251555
|
[common.SyntaxKind.SyntaxList]: SyntaxList,
|
|
251556
251556
|
[common.SyntaxKind.TaggedTemplateExpression]: TaggedTemplateExpression,
|
|
@@ -251581,13 +251581,13 @@ Node text: ${this.#forgottenText}`;
|
|
|
251581
251581
|
[common.SyntaxKind.WhileStatement]: WhileStatement,
|
|
251582
251582
|
[common.SyntaxKind.WithStatement]: WithStatement,
|
|
251583
251583
|
[common.SyntaxKind.YieldExpression]: YieldExpression,
|
|
251584
|
-
[common.SyntaxKind.SemicolonToken]:
|
|
251584
|
+
[common.SyntaxKind.SemicolonToken]: Node4,
|
|
251585
251585
|
[common.SyntaxKind.AnyKeyword]: Expression,
|
|
251586
251586
|
[common.SyntaxKind.BooleanKeyword]: Expression,
|
|
251587
251587
|
[common.SyntaxKind.FalseKeyword]: FalseLiteral,
|
|
251588
251588
|
[common.SyntaxKind.ImportKeyword]: ImportExpression,
|
|
251589
|
-
[common.SyntaxKind.InferKeyword]:
|
|
251590
|
-
[common.SyntaxKind.NeverKeyword]:
|
|
251589
|
+
[common.SyntaxKind.InferKeyword]: Node4,
|
|
251590
|
+
[common.SyntaxKind.NeverKeyword]: Node4,
|
|
251591
251591
|
[common.SyntaxKind.NullKeyword]: NullLiteral,
|
|
251592
251592
|
[common.SyntaxKind.NumberKeyword]: Expression,
|
|
251593
251593
|
[common.SyntaxKind.ObjectKeyword]: Expression,
|
|
@@ -251754,7 +251754,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251754
251754
|
return new CommentEnumMember(this.#context, compilerNode, sourceFile);
|
|
251755
251755
|
return common.errors.throwNotImplementedForNeverValueError(compilerNode);
|
|
251756
251756
|
}
|
|
251757
|
-
const ctor = kindToWrapperMappings[compilerNode.kind] ||
|
|
251757
|
+
const ctor = kindToWrapperMappings[compilerNode.kind] || Node4;
|
|
251758
251758
|
return new ctor(this.#context, compilerNode, sourceFile);
|
|
251759
251759
|
}
|
|
251760
251760
|
__name(createNode, "createNode");
|
|
@@ -251794,7 +251794,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
251794
251794
|
getSourceFile(compilerSourceFile, options) {
|
|
251795
251795
|
let wasAdded = false;
|
|
251796
251796
|
const sourceFile = this.#sourceFileCacheByFilePath.get(compilerSourceFile.fileName) ?? this.#nodeCache.getOrCreate(compilerSourceFile, () => {
|
|
251797
|
-
const createdSourceFile = new
|
|
251797
|
+
const createdSourceFile = new SourceFile5(this.#context, compilerSourceFile);
|
|
251798
251798
|
if (!options.markInProject)
|
|
251799
251799
|
this.#context.inProjectCoordinator.setSourceFileNotInProject(createdSourceFile);
|
|
251800
251800
|
this.#addSourceFileToCache(createdSourceFile);
|
|
@@ -251888,8 +251888,8 @@ Node text: ${this.#forgottenText}`;
|
|
|
251888
251888
|
return this.#jsDocTagInfoCache.getOrCreate(jsDocTagInfo, () => new JSDocTagInfo(jsDocTagInfo));
|
|
251889
251889
|
}
|
|
251890
251890
|
replaceCompilerNode(oldNode, newNode) {
|
|
251891
|
-
const nodeToReplace = oldNode instanceof
|
|
251892
|
-
const node = oldNode instanceof
|
|
251891
|
+
const nodeToReplace = oldNode instanceof Node4 ? oldNode.compilerNode : oldNode;
|
|
251892
|
+
const node = oldNode instanceof Node4 ? oldNode : this.#nodeCache.get(oldNode);
|
|
251893
251893
|
if (nodeToReplace.kind === common.SyntaxKind.SourceFile && nodeToReplace.fileName !== newNode.fileName) {
|
|
251894
251894
|
const sourceFile = node;
|
|
251895
251895
|
this.#removeCompilerNodeFromCache(nodeToReplace);
|
|
@@ -251934,12 +251934,12 @@ Node text: ${this.#forgottenText}`;
|
|
|
251934
251934
|
for (const node of nodes)
|
|
251935
251935
|
this.#nodeCache.rememberNode(node);
|
|
251936
251936
|
});
|
|
251937
|
-
if (
|
|
251937
|
+
if (Node4.isNode(result))
|
|
251938
251938
|
this.#nodeCache.rememberNode(result);
|
|
251939
251939
|
if (isPromise(result)) {
|
|
251940
251940
|
wasPromise = true;
|
|
251941
251941
|
return result.then((value) => {
|
|
251942
|
-
if (
|
|
251942
|
+
if (Node4.isNode(value))
|
|
251943
251943
|
this.#nodeCache.rememberNode(value);
|
|
251944
251944
|
this.#nodeCache.forgetLastPoint();
|
|
251945
251945
|
return value;
|
|
@@ -253360,7 +253360,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
253360
253360
|
exports.JSDocUnknownType = JSDocUnknownType;
|
|
253361
253361
|
exports.JSDocVariadicType = JSDocVariadicType;
|
|
253362
253362
|
exports.JSDocableNode = JSDocableNode;
|
|
253363
|
-
exports.JsxAttribute =
|
|
253363
|
+
exports.JsxAttribute = JsxAttribute2;
|
|
253364
253364
|
exports.JsxAttributeBase = JsxAttributeBase;
|
|
253365
253365
|
exports.JsxAttributedNode = JsxAttributedNode;
|
|
253366
253366
|
exports.JsxClosingElement = JsxClosingElement;
|
|
@@ -253368,15 +253368,15 @@ Node text: ${this.#forgottenText}`;
|
|
|
253368
253368
|
exports.JsxClosingFragment = JsxClosingFragment;
|
|
253369
253369
|
exports.JsxElement = JsxElement;
|
|
253370
253370
|
exports.JsxElementBase = JsxElementBase;
|
|
253371
|
-
exports.JsxExpression =
|
|
253371
|
+
exports.JsxExpression = JsxExpression2;
|
|
253372
253372
|
exports.JsxExpressionBase = JsxExpressionBase;
|
|
253373
253373
|
exports.JsxFragment = JsxFragment;
|
|
253374
253374
|
exports.JsxNamespacedName = JsxNamespacedName;
|
|
253375
253375
|
exports.JsxNamespacedNameBase = JsxNamespacedNameBase;
|
|
253376
|
-
exports.JsxOpeningElement =
|
|
253376
|
+
exports.JsxOpeningElement = JsxOpeningElement3;
|
|
253377
253377
|
exports.JsxOpeningElementBase = JsxOpeningElementBase;
|
|
253378
253378
|
exports.JsxOpeningFragment = JsxOpeningFragment;
|
|
253379
|
-
exports.JsxSelfClosingElement =
|
|
253379
|
+
exports.JsxSelfClosingElement = JsxSelfClosingElement3;
|
|
253380
253380
|
exports.JsxSelfClosingElementBase = JsxSelfClosingElementBase;
|
|
253381
253381
|
exports.JsxSpreadAttribute = JsxSpreadAttribute;
|
|
253382
253382
|
exports.JsxSpreadAttributeBase = JsxSpreadAttributeBase;
|
|
@@ -253429,7 +253429,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
253429
253429
|
exports.NewExpressionBase = NewExpressionBase;
|
|
253430
253430
|
exports.NoSubstitutionTemplateLiteral = NoSubstitutionTemplateLiteral;
|
|
253431
253431
|
exports.NoSubstitutionTemplateLiteralBase = NoSubstitutionTemplateLiteralBase;
|
|
253432
|
-
exports.Node =
|
|
253432
|
+
exports.Node = Node4;
|
|
253433
253433
|
exports.NodeWithTypeArguments = NodeWithTypeArguments;
|
|
253434
253434
|
exports.NodeWithTypeArgumentsBase = NodeWithTypeArgumentsBase;
|
|
253435
253435
|
exports.NonNullExpression = NonNullExpression;
|
|
@@ -253509,7 +253509,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
253509
253509
|
exports.ShorthandPropertyAssignmentBase = ShorthandPropertyAssignmentBase;
|
|
253510
253510
|
exports.Signature = Signature;
|
|
253511
253511
|
exports.SignaturedDeclaration = SignaturedDeclaration;
|
|
253512
|
-
exports.SourceFile =
|
|
253512
|
+
exports.SourceFile = SourceFile5;
|
|
253513
253513
|
exports.SourceFileBase = SourceFileBase;
|
|
253514
253514
|
exports.SpreadAssignment = SpreadAssignment;
|
|
253515
253515
|
exports.SpreadAssignmentBase = SpreadAssignmentBase;
|
|
@@ -253519,7 +253519,7 @@ Node text: ${this.#forgottenText}`;
|
|
|
253519
253519
|
exports.StatementBase = StatementBase;
|
|
253520
253520
|
exports.StatementedNode = StatementedNode;
|
|
253521
253521
|
exports.StaticableNode = StaticableNode;
|
|
253522
|
-
exports.StringLiteral =
|
|
253522
|
+
exports.StringLiteral = StringLiteral2;
|
|
253523
253523
|
exports.StringLiteralBase = StringLiteralBase;
|
|
253524
253524
|
exports.Structure = Structure;
|
|
253525
253525
|
exports.SuperElementAccessExpression = SuperElementAccessExpression;
|
|
@@ -253614,7 +253614,28 @@ Node text: ${this.#forgottenText}`;
|
|
|
253614
253614
|
});
|
|
253615
253615
|
|
|
253616
253616
|
// codemods/replace-lab-search-input/transform.ts
|
|
253617
|
+
var import_ts_morph8 = __toESM(require_ts_morph(), 1);
|
|
253618
|
+
|
|
253619
|
+
// codemods/shared/migration-engine.ts
|
|
253620
|
+
var import_ts_morph7 = __toESM(require_ts_morph(), 1);
|
|
253621
|
+
|
|
253622
|
+
// codemods/shared/project.ts
|
|
253617
253623
|
var import_ts_morph = __toESM(require_ts_morph(), 1);
|
|
253624
|
+
function createProjectFromSource(source, filePath) {
|
|
253625
|
+
const project = new import_ts_morph.Project({
|
|
253626
|
+
useInMemoryFileSystem: true,
|
|
253627
|
+
compilerOptions: {
|
|
253628
|
+
jsx: 2
|
|
253629
|
+
// JsxEmit.React
|
|
253630
|
+
},
|
|
253631
|
+
manipulationSettings: {
|
|
253632
|
+
quoteKind: import_ts_morph.QuoteKind.Single,
|
|
253633
|
+
useTrailingCommas: false
|
|
253634
|
+
}
|
|
253635
|
+
});
|
|
253636
|
+
return project.createSourceFile(filePath, source);
|
|
253637
|
+
}
|
|
253638
|
+
__name(createProjectFromSource, "createProjectFromSource");
|
|
253618
253639
|
|
|
253619
253640
|
// codemods/shared/elements-import.ts
|
|
253620
253641
|
function matchesPackage(moduleSpecifier, packageName) {
|
|
@@ -253626,74 +253647,34 @@ function isElementsImport(moduleSpecifier, facadePackage) {
|
|
|
253626
253647
|
}
|
|
253627
253648
|
__name(isElementsImport, "isElementsImport");
|
|
253628
253649
|
|
|
253629
|
-
// codemods/
|
|
253630
|
-
|
|
253631
|
-
var TODO_COMMENT = " TODO: Replace the removed unstable_onSearch prop with onChange.";
|
|
253632
|
-
function resolveTargetSpecifier(sourceSpecifier, facadePackage) {
|
|
253633
|
-
if (facadePackage && matchesPackage(sourceSpecifier, facadePackage)) {
|
|
253634
|
-
return sourceSpecifier;
|
|
253635
|
-
}
|
|
253636
|
-
return TARGET_SPECIFIER;
|
|
253637
|
-
}
|
|
253638
|
-
__name(resolveTargetSpecifier, "resolveTargetSpecifier");
|
|
253639
|
-
function getSearchInputAliases(sourceFile, facadePackage) {
|
|
253650
|
+
// codemods/shared/aliases.ts
|
|
253651
|
+
function getImportAliases(sourceFile, importName, facadePackage, options) {
|
|
253640
253652
|
const aliases = /* @__PURE__ */ new Set();
|
|
253641
253653
|
for (const importDecl of sourceFile.getImportDeclarations()) {
|
|
253642
253654
|
const moduleSpecifier = importDecl.getModuleSpecifierValue();
|
|
253643
253655
|
if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
|
|
253644
253656
|
for (const namedImport of importDecl.getNamedImports()) {
|
|
253645
|
-
if (namedImport.getName() ===
|
|
253646
|
-
aliases.add(namedImport.getAliasNode()?.getText() ??
|
|
253657
|
+
if (namedImport.getName() === importName) {
|
|
253658
|
+
aliases.add(namedImport.getAliasNode()?.getText() ?? importName);
|
|
253647
253659
|
}
|
|
253648
253660
|
}
|
|
253649
253661
|
}
|
|
253650
|
-
|
|
253651
|
-
|
|
253652
|
-
__name(getSearchInputAliases, "getSearchInputAliases");
|
|
253653
|
-
function getSearchInputPropsAliases(sourceFile, facadePackage) {
|
|
253654
|
-
const aliases = /* @__PURE__ */ new Set();
|
|
253655
|
-
for (const importDecl of sourceFile.getImportDeclarations()) {
|
|
253656
|
-
const moduleSpecifier = importDecl.getModuleSpecifierValue();
|
|
253657
|
-
if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
|
|
253658
|
-
for (const namedImport of importDecl.getNamedImports()) {
|
|
253659
|
-
if (namedImport.getName() === "SearchInputProps") {
|
|
253660
|
-
aliases.add(namedImport.getAliasNode()?.getText() ?? "SearchInputProps");
|
|
253661
|
-
}
|
|
253662
|
-
}
|
|
253662
|
+
if (options?.fallbackToName && aliases.size === 0 && sourceFile.getImportDeclarations().length === 0) {
|
|
253663
|
+
aliases.add(importName);
|
|
253663
253664
|
}
|
|
253664
253665
|
return aliases;
|
|
253665
253666
|
}
|
|
253666
|
-
__name(
|
|
253667
|
-
|
|
253668
|
-
|
|
253669
|
-
|
|
253670
|
-
|
|
253671
|
-
|
|
253672
|
-
const kind = parent.getKind();
|
|
253673
|
-
if (kind === import_ts_morph.SyntaxKind.ExportSpecifier) {
|
|
253674
|
-
const exportDeclaration = parent.getFirstAncestorByKind(import_ts_morph.SyntaxKind.ExportDeclaration);
|
|
253675
|
-
if (exportDeclaration?.getModuleSpecifierValue()) {
|
|
253676
|
-
continue;
|
|
253677
|
-
}
|
|
253678
|
-
return true;
|
|
253679
|
-
}
|
|
253680
|
-
if (kind === import_ts_morph.SyntaxKind.ImportSpecifier || kind === import_ts_morph.SyntaxKind.JsxOpeningElement || kind === import_ts_morph.SyntaxKind.JsxSelfClosingElement || kind === import_ts_morph.SyntaxKind.JsxClosingElement) {
|
|
253681
|
-
continue;
|
|
253682
|
-
}
|
|
253683
|
-
return true;
|
|
253667
|
+
__name(getImportAliases, "getImportAliases");
|
|
253668
|
+
|
|
253669
|
+
// codemods/shared/imports.ts
|
|
253670
|
+
function resolveTargetSpecifier(sourceSpecifier, targetSpecifier, facadePackage) {
|
|
253671
|
+
if (facadePackage && matchesPackage(sourceSpecifier, facadePackage)) {
|
|
253672
|
+
return sourceSpecifier;
|
|
253684
253673
|
}
|
|
253685
|
-
return
|
|
253686
|
-
}
|
|
253687
|
-
__name(hasIdentifierUsage, "hasIdentifierUsage");
|
|
253688
|
-
function hasSearchInputJsxUsage(sourceFile, searchInputAliases) {
|
|
253689
|
-
const elements = [
|
|
253690
|
-
...sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.JsxOpeningElement),
|
|
253691
|
-
...sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.JsxSelfClosingElement)
|
|
253692
|
-
];
|
|
253693
|
-
return elements.some((element) => searchInputAliases.has(element.getTagNameNode().getText()));
|
|
253674
|
+
return targetSpecifier;
|
|
253694
253675
|
}
|
|
253695
|
-
__name(
|
|
253696
|
-
function addImportsToTarget(sourceFile, importsToAdd, targetSpecifier) {
|
|
253676
|
+
__name(resolveTargetSpecifier, "resolveTargetSpecifier");
|
|
253677
|
+
function addImportsToTarget(sourceFile, importsToAdd, targetSpecifier, options) {
|
|
253697
253678
|
if (importsToAdd.length === 0) return;
|
|
253698
253679
|
const currentImportDeclarations = sourceFile.getImportDeclarations();
|
|
253699
253680
|
let targetDecl = currentImportDeclarations.find(
|
|
@@ -253702,9 +253683,11 @@ function addImportsToTarget(sourceFile, importsToAdd, targetSpecifier) {
|
|
|
253702
253683
|
if (!targetDecl) {
|
|
253703
253684
|
targetDecl = sourceFile.addImportDeclaration({ moduleSpecifier: targetSpecifier });
|
|
253704
253685
|
}
|
|
253705
|
-
|
|
253706
|
-
|
|
253707
|
-
targetDecl.
|
|
253686
|
+
if (options?.promoteDeclarationTypeOnly) {
|
|
253687
|
+
const needsValueDecl = importsToAdd.some((entry) => !entry.isTypeOnly);
|
|
253688
|
+
if (needsValueDecl && targetDecl.isTypeOnly()) {
|
|
253689
|
+
targetDecl.setIsTypeOnly(false);
|
|
253690
|
+
}
|
|
253708
253691
|
}
|
|
253709
253692
|
for (const { name, alias, isTypeOnly } of importsToAdd) {
|
|
253710
253693
|
const existingImport = targetDecl.getNamedImports().find((namedImport) => {
|
|
@@ -253727,131 +253710,152 @@ function addImportsToTarget(sourceFile, importsToAdd, targetSpecifier) {
|
|
|
253727
253710
|
}
|
|
253728
253711
|
}
|
|
253729
253712
|
__name(addImportsToTarget, "addImportsToTarget");
|
|
253730
|
-
|
|
253731
|
-
|
|
253732
|
-
|
|
253733
|
-
|
|
253734
|
-
|
|
253735
|
-
|
|
253736
|
-
if (!
|
|
253737
|
-
|
|
253738
|
-
|
|
253739
|
-
const
|
|
253740
|
-
|
|
253741
|
-
|
|
253742
|
-
if (originalName === "SearchInput") {
|
|
253743
|
-
if (needsSearchInputImport) {
|
|
253744
|
-
importsToAdd.push({
|
|
253745
|
-
name: "SearchInput",
|
|
253746
|
-
alias: namedImport.getAliasNode()?.getText(),
|
|
253747
|
-
isTypeOnly: namedImport.isTypeOnly(),
|
|
253748
|
-
targetSpecifier: resolveTargetSpecifier(moduleSpecifier, facadePackage)
|
|
253749
|
-
});
|
|
253750
|
-
}
|
|
253751
|
-
namedImportsToRemove.push(namedImport);
|
|
253713
|
+
|
|
253714
|
+
// codemods/shared/identifiers.ts
|
|
253715
|
+
var import_ts_morph2 = __toESM(require_ts_morph(), 1);
|
|
253716
|
+
function hasIdentifierUsage(sourceFile, localNames, options) {
|
|
253717
|
+
const treatLocalReExportsAsUsage = options?.treatLocalReExportsAsUsage ?? false;
|
|
253718
|
+
for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph2.SyntaxKind.Identifier)) {
|
|
253719
|
+
if (!localNames.has(identifier.getText())) continue;
|
|
253720
|
+
const parent = identifier.getParent();
|
|
253721
|
+
if (!parent) continue;
|
|
253722
|
+
const kind = parent.getKind();
|
|
253723
|
+
if (kind === import_ts_morph2.SyntaxKind.ExportSpecifier) {
|
|
253724
|
+
if (!treatLocalReExportsAsUsage) {
|
|
253752
253725
|
continue;
|
|
253753
253726
|
}
|
|
253754
|
-
|
|
253755
|
-
|
|
253756
|
-
|
|
253757
|
-
const alreadyQueued = importsToAdd.some(
|
|
253758
|
-
(e) => e.name === "SearchInput" && e.targetSpecifier === targetSpecifier
|
|
253759
|
-
);
|
|
253760
|
-
if (!alreadyQueued) {
|
|
253761
|
-
importsToAdd.push({
|
|
253762
|
-
name: "SearchInput",
|
|
253763
|
-
isTypeOnly: namedImport.isTypeOnly(),
|
|
253764
|
-
targetSpecifier
|
|
253765
|
-
});
|
|
253766
|
-
}
|
|
253767
|
-
}
|
|
253768
|
-
namedImportsToRemove.push(namedImport);
|
|
253727
|
+
const exportDeclaration = parent.getFirstAncestorByKind(import_ts_morph2.SyntaxKind.ExportDeclaration);
|
|
253728
|
+
if (exportDeclaration?.getModuleSpecifierValue()) {
|
|
253729
|
+
continue;
|
|
253769
253730
|
}
|
|
253731
|
+
return true;
|
|
253770
253732
|
}
|
|
253771
|
-
|
|
253772
|
-
|
|
253773
|
-
importDecl.remove();
|
|
253733
|
+
if (kind === import_ts_morph2.SyntaxKind.ImportSpecifier || kind === import_ts_morph2.SyntaxKind.JsxOpeningElement || kind === import_ts_morph2.SyntaxKind.JsxSelfClosingElement || kind === import_ts_morph2.SyntaxKind.JsxClosingElement) {
|
|
253734
|
+
continue;
|
|
253774
253735
|
}
|
|
253736
|
+
return true;
|
|
253775
253737
|
}
|
|
253776
|
-
|
|
253777
|
-
importsToAdd.push({
|
|
253778
|
-
name: "SearchInput",
|
|
253779
|
-
isTypeOnly: false,
|
|
253780
|
-
targetSpecifier: facadePackage ?? TARGET_SPECIFIER
|
|
253781
|
-
});
|
|
253782
|
-
}
|
|
253783
|
-
const groupedBySpecifier = /* @__PURE__ */ new Map();
|
|
253784
|
-
for (const { targetSpecifier, ...entry } of importsToAdd) {
|
|
253785
|
-
const group = groupedBySpecifier.get(targetSpecifier) ?? [];
|
|
253786
|
-
group.push(entry);
|
|
253787
|
-
groupedBySpecifier.set(targetSpecifier, group);
|
|
253788
|
-
}
|
|
253789
|
-
for (const [specifier, entries] of groupedBySpecifier) {
|
|
253790
|
-
addImportsToTarget(sourceFile, entries, specifier);
|
|
253791
|
-
}
|
|
253738
|
+
return false;
|
|
253792
253739
|
}
|
|
253793
|
-
__name(
|
|
253794
|
-
function
|
|
253795
|
-
|
|
253796
|
-
|
|
253740
|
+
__name(hasIdentifierUsage, "hasIdentifierUsage");
|
|
253741
|
+
function transformIdentifierReferences(sourceFile, oldName, newName, options) {
|
|
253742
|
+
const useFindReferences = options?.useFindReferences ?? false;
|
|
253743
|
+
if (!useFindReferences) {
|
|
253744
|
+
for (const identifier of sourceFile.getDescendantsOfKind(import_ts_morph2.SyntaxKind.Identifier)) {
|
|
253745
|
+
if (identifier.getText() !== oldName) continue;
|
|
253746
|
+
const parent = identifier.getParent();
|
|
253747
|
+
if (!parent) continue;
|
|
253748
|
+
const parentKind = parent.getKind();
|
|
253749
|
+
if (parentKind === import_ts_morph2.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph2.SyntaxKind.ExportSpecifier || parentKind === import_ts_morph2.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph2.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph2.SyntaxKind.JsxClosingElement) {
|
|
253750
|
+
continue;
|
|
253751
|
+
}
|
|
253752
|
+
identifier.replaceWithText(newName);
|
|
253753
|
+
}
|
|
253754
|
+
return;
|
|
253755
|
+
}
|
|
253756
|
+
const { facadePackage, isElementsImportFn } = options ?? {};
|
|
253757
|
+
for (const importDecl of sourceFile.getImportDeclarations()) {
|
|
253758
|
+
if (isElementsImportFn) {
|
|
253759
|
+
const moduleSpecifier = importDecl.getModuleSpecifierValue();
|
|
253760
|
+
if (!isElementsImportFn(moduleSpecifier, facadePackage)) continue;
|
|
253761
|
+
}
|
|
253762
|
+
for (const namedImport of importDecl.getNamedImports()) {
|
|
253763
|
+
if (namedImport.getName() !== oldName) continue;
|
|
253764
|
+
if (namedImport.getAliasNode()) continue;
|
|
253765
|
+
const nameNode = namedImport.getNameNode().asKind(import_ts_morph2.SyntaxKind.Identifier);
|
|
253766
|
+
if (!nameNode) continue;
|
|
253767
|
+
for (const referencedSymbol of nameNode.findReferences()) {
|
|
253768
|
+
for (const reference of referencedSymbol.getReferences()) {
|
|
253769
|
+
if (reference.isDefinition()) continue;
|
|
253770
|
+
const identifier = reference.getNode().asKind(import_ts_morph2.SyntaxKind.Identifier);
|
|
253771
|
+
if (!identifier) continue;
|
|
253772
|
+
const parent = identifier.getParent();
|
|
253773
|
+
if (!parent) continue;
|
|
253774
|
+
const parentKind = parent.getKind();
|
|
253775
|
+
if (parentKind === import_ts_morph2.SyntaxKind.ExportSpecifier) {
|
|
253776
|
+
const exportDeclaration = parent.getFirstAncestorByKind(import_ts_morph2.SyntaxKind.ExportDeclaration);
|
|
253777
|
+
if (exportDeclaration?.getModuleSpecifierValue()) {
|
|
253778
|
+
continue;
|
|
253779
|
+
}
|
|
253780
|
+
}
|
|
253781
|
+
if (parentKind === import_ts_morph2.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph2.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph2.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph2.SyntaxKind.JsxClosingElement) {
|
|
253782
|
+
continue;
|
|
253783
|
+
}
|
|
253784
|
+
identifier.replaceWithText(newName);
|
|
253785
|
+
}
|
|
253786
|
+
}
|
|
253787
|
+
}
|
|
253797
253788
|
}
|
|
253798
|
-
return "SearchInput";
|
|
253799
253789
|
}
|
|
253800
|
-
__name(
|
|
253801
|
-
|
|
253802
|
-
|
|
253803
|
-
|
|
253790
|
+
__name(transformIdentifierReferences, "transformIdentifierReferences");
|
|
253791
|
+
|
|
253792
|
+
// codemods/shared/types.ts
|
|
253793
|
+
var import_ts_morph3 = __toESM(require_ts_morph(), 1);
|
|
253794
|
+
function transformTypeReferences(sourceFile, oldNames, newName) {
|
|
253795
|
+
for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph3.SyntaxKind.TypeReference)) {
|
|
253804
253796
|
const typeName = typeRef.getTypeName();
|
|
253805
|
-
if (
|
|
253806
|
-
typeName.replaceWithText(
|
|
253797
|
+
if (oldNames.has(typeName.getText())) {
|
|
253798
|
+
typeName.replaceWithText(newName);
|
|
253807
253799
|
}
|
|
253808
253800
|
}
|
|
253809
|
-
for (const heritage of sourceFile.getDescendantsOfKind(
|
|
253801
|
+
for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph3.SyntaxKind.ExpressionWithTypeArguments)) {
|
|
253810
253802
|
const expression = heritage.getExpression();
|
|
253811
|
-
if (
|
|
253812
|
-
expression.replaceWithText(
|
|
253803
|
+
if (oldNames.has(expression.getText())) {
|
|
253804
|
+
expression.replaceWithText(newName);
|
|
253813
253805
|
}
|
|
253814
253806
|
}
|
|
253815
253807
|
}
|
|
253816
253808
|
__name(transformTypeReferences, "transformTypeReferences");
|
|
253817
|
-
|
|
253818
|
-
|
|
253819
|
-
|
|
253820
|
-
|
|
253821
|
-
|
|
253809
|
+
|
|
253810
|
+
// codemods/shared/jsx.ts
|
|
253811
|
+
var import_ts_morph4 = __toESM(require_ts_morph(), 1);
|
|
253812
|
+
function getJsxElements(sourceFile, tagNames) {
|
|
253813
|
+
const elements = [
|
|
253814
|
+
...sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxOpeningElement),
|
|
253815
|
+
...sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxSelfClosingElement)
|
|
253816
|
+
];
|
|
253817
|
+
return elements.filter((element) => tagNames.has(element.getTagNameNode().getText()));
|
|
253818
|
+
}
|
|
253819
|
+
__name(getJsxElements, "getJsxElements");
|
|
253820
|
+
function hasJsxUsage(sourceFile, tagNames) {
|
|
253821
|
+
const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxOpeningElement);
|
|
253822
|
+
for (const element of openingElements) {
|
|
253823
|
+
if (tagNames.has(element.getTagNameNode().getText())) return true;
|
|
253824
|
+
}
|
|
253825
|
+
const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph4.SyntaxKind.JsxSelfClosingElement);
|
|
253826
|
+
for (const element of selfClosingElements) {
|
|
253827
|
+
if (tagNames.has(element.getTagNameNode().getText())) return true;
|
|
253828
|
+
}
|
|
253829
|
+
return false;
|
|
253830
|
+
}
|
|
253831
|
+
__name(hasJsxUsage, "hasJsxUsage");
|
|
253832
|
+
function syncClosingTag(element, oldName, newName) {
|
|
253833
|
+
if (element.getKind() !== import_ts_morph4.SyntaxKind.JsxOpeningElement) return;
|
|
253834
|
+
const parent = element.getParent();
|
|
253835
|
+
if (parent?.getKind() !== import_ts_morph4.SyntaxKind.JsxElement) return;
|
|
253836
|
+
const jsxElement = parent.asKind(import_ts_morph4.SyntaxKind.JsxElement);
|
|
253837
|
+
const closingTag = jsxElement?.getClosingElement();
|
|
253838
|
+
if (closingTag?.getTagNameNode().getText() === oldName) {
|
|
253839
|
+
closingTag.getTagNameNode().replaceWithText(newName);
|
|
253840
|
+
}
|
|
253841
|
+
}
|
|
253842
|
+
__name(syncClosingTag, "syncClosingTag");
|
|
253843
|
+
|
|
253844
|
+
// codemods/shared/comments.ts
|
|
253845
|
+
var import_ts_morph5 = __toESM(require_ts_morph(), 1);
|
|
253822
253846
|
function getNearestStatement(node) {
|
|
253823
253847
|
let current = node;
|
|
253824
253848
|
while (current) {
|
|
253825
|
-
if (
|
|
253849
|
+
if (import_ts_morph5.Node.isStatement(current)) return current;
|
|
253826
253850
|
current = current.getParent();
|
|
253827
253851
|
}
|
|
253828
253852
|
return void 0;
|
|
253829
253853
|
}
|
|
253830
253854
|
__name(getNearestStatement, "getNearestStatement");
|
|
253831
|
-
function
|
|
253832
|
-
const openingElements = [
|
|
253833
|
-
...sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.JsxOpeningElement),
|
|
253834
|
-
...sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.JsxSelfClosingElement)
|
|
253835
|
-
];
|
|
253855
|
+
function collectStatementCommentPositions(sourceFile, nodes) {
|
|
253836
253856
|
const stmtCommentMeta = /* @__PURE__ */ new Map();
|
|
253837
|
-
for (const
|
|
253838
|
-
const
|
|
253839
|
-
const tagNameText = tagName.getText();
|
|
253840
|
-
if (!searchInputAliases.has(tagNameText)) continue;
|
|
253841
|
-
let hadUnstableOnSearch = false;
|
|
253842
|
-
for (const attr of element.getAttributes().slice()) {
|
|
253843
|
-
if (attr.getKind() !== import_ts_morph.SyntaxKind.JsxAttribute) continue;
|
|
253844
|
-
const jsxAttr = attr.asKindOrThrow(import_ts_morph.SyntaxKind.JsxAttribute);
|
|
253845
|
-
const name = jsxAttr.getNameNode().getText();
|
|
253846
|
-
if (name in PROP_RENAMES) {
|
|
253847
|
-
jsxAttr.getNameNode().replaceWithText(PROP_RENAMES[name]);
|
|
253848
|
-
} else if (PROPS_TO_REMOVE.has(name)) {
|
|
253849
|
-
jsxAttr.remove();
|
|
253850
|
-
hadUnstableOnSearch = true;
|
|
253851
|
-
}
|
|
253852
|
-
}
|
|
253853
|
-
if (!hadUnstableOnSearch) continue;
|
|
253854
|
-
const stmt = getNearestStatement(element);
|
|
253857
|
+
for (const node of nodes) {
|
|
253858
|
+
const stmt = getNearestStatement(node);
|
|
253855
253859
|
if (!stmt) continue;
|
|
253856
253860
|
const triviaStart = stmt.getPos();
|
|
253857
253861
|
if (stmtCommentMeta.has(triviaStart)) continue;
|
|
@@ -253861,42 +253865,337 @@ function transformJsxElements(sourceFile, searchInputAliases) {
|
|
|
253861
253865
|
const insertPos = triviaStart + (lastNewline === -1 ? 0 : lastNewline + 1);
|
|
253862
253866
|
stmtCommentMeta.set(triviaStart, { insertPos, indent });
|
|
253863
253867
|
}
|
|
253864
|
-
|
|
253868
|
+
return stmtCommentMeta;
|
|
253869
|
+
}
|
|
253870
|
+
__name(collectStatementCommentPositions, "collectStatementCommentPositions");
|
|
253871
|
+
function insertLineComments(sourceFile, positions, comment) {
|
|
253872
|
+
const sortedEntries = [...positions.values()].sort((a, b) => b.insertPos - a.insertPos);
|
|
253865
253873
|
for (const { insertPos, indent } of sortedEntries) {
|
|
253866
|
-
sourceFile.insertText(insertPos, `${indent}//${
|
|
253874
|
+
sourceFile.insertText(insertPos, `${indent}//${comment}
|
|
253867
253875
|
`);
|
|
253868
253876
|
}
|
|
253869
253877
|
}
|
|
253870
|
-
__name(
|
|
253871
|
-
|
|
253872
|
-
|
|
253873
|
-
|
|
253878
|
+
__name(insertLineComments, "insertLineComments");
|
|
253879
|
+
|
|
253880
|
+
// codemods/shared/props.ts
|
|
253881
|
+
var import_ts_morph6 = __toESM(require_ts_morph(), 1);
|
|
253882
|
+
function renameProp(attr, newName) {
|
|
253883
|
+
attr.getNameNode().replaceWithText(newName);
|
|
253884
|
+
}
|
|
253885
|
+
__name(renameProp, "renameProp");
|
|
253886
|
+
function removeProp(attr) {
|
|
253887
|
+
attr.remove();
|
|
253888
|
+
}
|
|
253889
|
+
__name(removeProp, "removeProp");
|
|
253890
|
+
function applyPropTransforms(element, propRenames, propsToRemove) {
|
|
253891
|
+
for (const attr of element.getAttributes().slice()) {
|
|
253892
|
+
if (attr.getKind() !== import_ts_morph6.SyntaxKind.JsxAttribute) continue;
|
|
253893
|
+
const jsxAttr = attr.asKindOrThrow(import_ts_morph6.SyntaxKind.JsxAttribute);
|
|
253894
|
+
const name = jsxAttr.getNameNode().getText();
|
|
253895
|
+
if (name in propRenames) {
|
|
253896
|
+
renameProp(jsxAttr, propRenames[name]);
|
|
253897
|
+
} else if (propsToRemove.has(name)) {
|
|
253898
|
+
removeProp(jsxAttr);
|
|
253899
|
+
}
|
|
253874
253900
|
}
|
|
253875
|
-
|
|
253876
|
-
|
|
253877
|
-
|
|
253878
|
-
|
|
253879
|
-
|
|
253880
|
-
|
|
253881
|
-
|
|
253882
|
-
|
|
253901
|
+
}
|
|
253902
|
+
__name(applyPropTransforms, "applyPropTransforms");
|
|
253903
|
+
|
|
253904
|
+
// codemods/shared/migration-engine.ts
|
|
253905
|
+
function createComponentMigration(config) {
|
|
253906
|
+
const {
|
|
253907
|
+
identifiers,
|
|
253908
|
+
props = [],
|
|
253909
|
+
importsToRemove = [],
|
|
253910
|
+
propRenames = {},
|
|
253911
|
+
propsToRemove = /* @__PURE__ */ new Set(),
|
|
253912
|
+
todoComment,
|
|
253913
|
+
useFindReferencesForIdentifiers = false,
|
|
253914
|
+
treatLocalReExportsAsUsage = false,
|
|
253915
|
+
alwaysRewriteMatchingImports = false,
|
|
253916
|
+
fallbackIdentifiers,
|
|
253917
|
+
createContext,
|
|
253918
|
+
customJsxTransform,
|
|
253919
|
+
afterTransform
|
|
253920
|
+
} = config;
|
|
253921
|
+
const quickRejectStrings = config.quickRejectStrings ?? identifiers.map((id) => id.from);
|
|
253922
|
+
const importsToRemoveSet = new Set(importsToRemove);
|
|
253923
|
+
return /* @__PURE__ */ __name(function transform(source, filePath = "file.tsx", options) {
|
|
253924
|
+
if (quickRejectStrings.length > 0 && !quickRejectStrings.some((s) => source.includes(s))) {
|
|
253925
|
+
return source;
|
|
253883
253926
|
}
|
|
253884
|
-
|
|
253885
|
-
|
|
253886
|
-
|
|
253887
|
-
|
|
253888
|
-
|
|
253889
|
-
|
|
253890
|
-
|
|
253891
|
-
|
|
253892
|
-
|
|
253893
|
-
|
|
253894
|
-
|
|
253895
|
-
|
|
253927
|
+
const facadePackage = options?.facadePackage;
|
|
253928
|
+
const ctx = createContext?.() ?? {};
|
|
253929
|
+
const sourceFile = createProjectFromSource(source, filePath);
|
|
253930
|
+
const aliasToIdentifier = /* @__PURE__ */ new Map();
|
|
253931
|
+
const allAliases = /* @__PURE__ */ new Set();
|
|
253932
|
+
let hasAnyElementsImport = false;
|
|
253933
|
+
for (const importDecl of sourceFile.getImportDeclarations()) {
|
|
253934
|
+
if (isElementsImport(importDecl.getModuleSpecifierValue(), facadePackage)) {
|
|
253935
|
+
hasAnyElementsImport = true;
|
|
253936
|
+
break;
|
|
253937
|
+
}
|
|
253938
|
+
}
|
|
253939
|
+
for (const identifier of identifiers) {
|
|
253940
|
+
const useFallback = fallbackIdentifiers === void 0 || fallbackIdentifiers.has(identifier.from);
|
|
253941
|
+
const aliases = getImportAliases(sourceFile, identifier.from, facadePackage, {
|
|
253942
|
+
fallbackToName: useFallback
|
|
253943
|
+
});
|
|
253944
|
+
for (const alias of aliases) {
|
|
253945
|
+
allAliases.add(alias);
|
|
253946
|
+
aliasToIdentifier.set(alias, identifier);
|
|
253947
|
+
}
|
|
253948
|
+
}
|
|
253949
|
+
const propsAliasMap = /* @__PURE__ */ new Map();
|
|
253950
|
+
const allPropsAliases = /* @__PURE__ */ new Set();
|
|
253951
|
+
for (const propsMigration of props) {
|
|
253952
|
+
const aliases = getImportAliases(sourceFile, propsMigration.from, facadePackage);
|
|
253953
|
+
propsAliasMap.set(propsMigration.from, aliases);
|
|
253954
|
+
for (const alias of aliases) {
|
|
253955
|
+
allPropsAliases.add(alias);
|
|
253956
|
+
}
|
|
253957
|
+
}
|
|
253958
|
+
const preCollectedRenames = [];
|
|
253959
|
+
if (useFindReferencesForIdentifiers) {
|
|
253960
|
+
for (const identifier of identifiers) {
|
|
253961
|
+
for (const importDecl of sourceFile.getImportDeclarations()) {
|
|
253962
|
+
const moduleSpecifier = importDecl.getModuleSpecifierValue();
|
|
253963
|
+
if (!isElementsImport(moduleSpecifier, facadePackage)) continue;
|
|
253964
|
+
for (const namedImport of importDecl.getNamedImports()) {
|
|
253965
|
+
if (namedImport.getName() !== identifier.from) continue;
|
|
253966
|
+
if (namedImport.getAliasNode()) continue;
|
|
253967
|
+
const nameNode = namedImport.getNameNode().asKind(import_ts_morph7.SyntaxKind.Identifier);
|
|
253968
|
+
if (!nameNode) continue;
|
|
253969
|
+
for (const referencedSymbol of nameNode.findReferences()) {
|
|
253970
|
+
for (const reference of referencedSymbol.getReferences()) {
|
|
253971
|
+
if (reference.isDefinition()) continue;
|
|
253972
|
+
const refNode = reference.getNode().asKind(import_ts_morph7.SyntaxKind.Identifier);
|
|
253973
|
+
if (!refNode) continue;
|
|
253974
|
+
const parent = refNode.getParent();
|
|
253975
|
+
if (!parent) continue;
|
|
253976
|
+
const parentKind = parent.getKind();
|
|
253977
|
+
if (parentKind === import_ts_morph7.SyntaxKind.ExportSpecifier) {
|
|
253978
|
+
const exportDeclaration = parent.getFirstAncestorByKind(import_ts_morph7.SyntaxKind.ExportDeclaration);
|
|
253979
|
+
if (exportDeclaration?.getModuleSpecifierValue()) continue;
|
|
253980
|
+
}
|
|
253981
|
+
if (parentKind === import_ts_morph7.SyntaxKind.ImportSpecifier || parentKind === import_ts_morph7.SyntaxKind.JsxOpeningElement || parentKind === import_ts_morph7.SyntaxKind.JsxSelfClosingElement || parentKind === import_ts_morph7.SyntaxKind.JsxClosingElement) {
|
|
253982
|
+
continue;
|
|
253983
|
+
}
|
|
253984
|
+
preCollectedRenames.push({ node: refNode, newName: identifier.to });
|
|
253985
|
+
}
|
|
253986
|
+
}
|
|
253987
|
+
}
|
|
253988
|
+
}
|
|
253989
|
+
}
|
|
253990
|
+
}
|
|
253991
|
+
const effectiveAliases = hasAnyElementsImport ? allAliases : /* @__PURE__ */ new Set();
|
|
253992
|
+
const effectivePropsAliases = hasAnyElementsImport ? allPropsAliases : /* @__PURE__ */ new Set();
|
|
253993
|
+
const effectiveTreatLocalReExportsAsUsage = treatLocalReExportsAsUsage || useFindReferencesForIdentifiers;
|
|
253994
|
+
const hasJsxOrIdentifierUsage = effectiveAliases.size > 0 && (hasJsxUsage(sourceFile, effectiveAliases) || hasIdentifierUsage(sourceFile, effectiveAliases, {
|
|
253995
|
+
treatLocalReExportsAsUsage: effectiveTreatLocalReExportsAsUsage
|
|
253996
|
+
}));
|
|
253997
|
+
const hasPropsUsage = effectivePropsAliases.size > 0 && hasIdentifierUsage(sourceFile, effectivePropsAliases, { treatLocalReExportsAsUsage });
|
|
253998
|
+
const hasMatchingSpecifier = alwaysRewriteMatchingImports && effectiveAliases.size > 0;
|
|
253999
|
+
const needsImport = hasJsxOrIdentifierUsage || hasPropsUsage || hasMatchingSpecifier;
|
|
254000
|
+
const importsToAdd = [];
|
|
254001
|
+
for (const importDecl of sourceFile.getImportDeclarations().slice()) {
|
|
254002
|
+
if (importDecl.wasForgotten()) continue;
|
|
254003
|
+
const specifier = importDecl.getModuleSpecifierValue();
|
|
254004
|
+
if (!isElementsImport(specifier, facadePackage)) continue;
|
|
254005
|
+
if (!facadePackage) {
|
|
254006
|
+
const isAlreadyAtTarget = identifiers.some((id) => specifier === id.targetSpecifier);
|
|
254007
|
+
if (isAlreadyAtTarget) continue;
|
|
254008
|
+
}
|
|
254009
|
+
const namedImportsToRemove = [];
|
|
254010
|
+
for (const namedImport of importDecl.getNamedImports()) {
|
|
254011
|
+
const originalName = namedImport.getName();
|
|
254012
|
+
const identifier = identifiers.find((id) => id.from === originalName);
|
|
254013
|
+
if (identifier) {
|
|
254014
|
+
if (needsImport) {
|
|
254015
|
+
importsToAdd.push({
|
|
254016
|
+
name: identifier.to,
|
|
254017
|
+
alias: namedImport.getAliasNode()?.getText(),
|
|
254018
|
+
isTypeOnly: namedImport.isTypeOnly(),
|
|
254019
|
+
targetSpecifier: resolveTargetSpecifier(specifier, identifier.targetSpecifier, facadePackage)
|
|
254020
|
+
});
|
|
254021
|
+
}
|
|
254022
|
+
namedImportsToRemove.push(namedImport);
|
|
254023
|
+
continue;
|
|
254024
|
+
}
|
|
254025
|
+
const propsMigration = props.find((p) => p.from === originalName);
|
|
254026
|
+
if (propsMigration) {
|
|
254027
|
+
if (propsMigration.to !== void 0) {
|
|
254028
|
+
const matchedIdentifier = identifiers.find((id) => propsMigration.to?.startsWith(id.to));
|
|
254029
|
+
const propsTargetSpecifier = propsMigration.targetSpecifier ?? matchedIdentifier?.targetSpecifier;
|
|
254030
|
+
if (propsTargetSpecifier === void 0) {
|
|
254031
|
+
throw new Error(
|
|
254032
|
+
`[createComponentMigration] Cannot resolve targetSpecifier for props migration "${propsMigration.from}" \u2192 "${propsMigration.to}". Set PropsMigration.targetSpecifier explicitly or ensure the "to" value starts with a known identifier name.`
|
|
254033
|
+
);
|
|
254034
|
+
}
|
|
254035
|
+
if (needsImport) {
|
|
254036
|
+
importsToAdd.push({
|
|
254037
|
+
name: matchedIdentifier?.to ?? identifiers[0].to,
|
|
254038
|
+
isTypeOnly: namedImport.isTypeOnly(),
|
|
254039
|
+
targetSpecifier: resolveTargetSpecifier(specifier, propsTargetSpecifier, facadePackage)
|
|
254040
|
+
});
|
|
254041
|
+
}
|
|
254042
|
+
}
|
|
254043
|
+
namedImportsToRemove.push(namedImport);
|
|
254044
|
+
continue;
|
|
254045
|
+
}
|
|
254046
|
+
if (importsToRemoveSet.has(originalName)) {
|
|
254047
|
+
namedImportsToRemove.push(namedImport);
|
|
254048
|
+
}
|
|
254049
|
+
}
|
|
254050
|
+
for (const namedImport of namedImportsToRemove) {
|
|
254051
|
+
namedImport.remove();
|
|
254052
|
+
}
|
|
254053
|
+
if (importDecl.getNamedImports().length === 0 && !importDecl.getDefaultImport() && !importDecl.getNamespaceImport()) {
|
|
254054
|
+
importDecl.remove();
|
|
254055
|
+
}
|
|
254056
|
+
}
|
|
254057
|
+
if (needsImport && importsToAdd.length === 0) {
|
|
254058
|
+
importsToAdd.push({
|
|
254059
|
+
name: identifiers[0].to,
|
|
254060
|
+
isTypeOnly: false,
|
|
254061
|
+
targetSpecifier: facadePackage ?? identifiers[0].targetSpecifier
|
|
254062
|
+
});
|
|
254063
|
+
}
|
|
254064
|
+
const groupedBySpecifier = /* @__PURE__ */ new Map();
|
|
254065
|
+
for (const { targetSpecifier, ...entry } of importsToAdd) {
|
|
254066
|
+
const group = groupedBySpecifier.get(targetSpecifier) ?? [];
|
|
254067
|
+
group.push(entry);
|
|
254068
|
+
groupedBySpecifier.set(targetSpecifier, group);
|
|
254069
|
+
}
|
|
254070
|
+
for (const [specifier, entries] of groupedBySpecifier) {
|
|
254071
|
+
addImportsToTarget(sourceFile, entries, specifier, { promoteDeclarationTypeOnly: true });
|
|
254072
|
+
}
|
|
254073
|
+
for (const propsMigration of props) {
|
|
254074
|
+
if (propsMigration.to === void 0) continue;
|
|
254075
|
+
const aliases = propsAliasMap.get(propsMigration.from);
|
|
254076
|
+
if (!aliases || aliases.size === 0) continue;
|
|
254077
|
+
transformTypeReferences(sourceFile, aliases, propsMigration.to);
|
|
254078
|
+
}
|
|
254079
|
+
if (useFindReferencesForIdentifiers) {
|
|
254080
|
+
for (const { node, newName } of preCollectedRenames) {
|
|
254081
|
+
if (!node.wasForgotten()) {
|
|
254082
|
+
node.replaceWithText(newName);
|
|
254083
|
+
}
|
|
254084
|
+
}
|
|
254085
|
+
} else {
|
|
254086
|
+
for (const identifier of identifiers) {
|
|
254087
|
+
transformIdentifierReferences(sourceFile, identifier.from, identifier.to, {
|
|
254088
|
+
useFindReferences: false,
|
|
254089
|
+
facadePackage,
|
|
254090
|
+
isElementsImportFn: isElementsImport
|
|
254091
|
+
});
|
|
254092
|
+
}
|
|
254093
|
+
}
|
|
254094
|
+
const allElements = getJsxElements(sourceFile, allAliases);
|
|
254095
|
+
const todoNodes = [];
|
|
254096
|
+
for (const element of allElements) {
|
|
254097
|
+
const tagNameText = element.getTagNameNode().getText();
|
|
254098
|
+
const identifier = aliasToIdentifier.get(tagNameText);
|
|
254099
|
+
if (!identifier) continue;
|
|
254100
|
+
applyPropTransforms(element, propRenames, propsToRemove);
|
|
254101
|
+
if (tagNameText === identifier.from) {
|
|
254102
|
+
element.getTagNameNode().replaceWithText(identifier.to);
|
|
254103
|
+
syncClosingTag(element, identifier.from, identifier.to);
|
|
254104
|
+
}
|
|
254105
|
+
customJsxTransform?.(element, sourceFile, facadePackage, ctx);
|
|
254106
|
+
if (todoComment) {
|
|
254107
|
+
const commentAppliesToThis = todoComment.forIdentifier === void 0 || todoComment.forIdentifier === identifier.from;
|
|
254108
|
+
if (commentAppliesToThis) {
|
|
254109
|
+
todoNodes.push(element);
|
|
254110
|
+
}
|
|
254111
|
+
}
|
|
254112
|
+
}
|
|
254113
|
+
if (todoComment && todoNodes.length > 0) {
|
|
254114
|
+
const positions = collectStatementCommentPositions(sourceFile, todoNodes);
|
|
254115
|
+
insertLineComments(sourceFile, positions, todoComment.text);
|
|
254116
|
+
}
|
|
254117
|
+
afterTransform?.(sourceFile, { facadePackage, context: ctx });
|
|
254118
|
+
return sourceFile.getFullText();
|
|
254119
|
+
}, "transform");
|
|
253896
254120
|
}
|
|
253897
|
-
__name(
|
|
254121
|
+
__name(createComponentMigration, "createComponentMigration");
|
|
254122
|
+
|
|
254123
|
+
// codemods/replace-lab-search-input/transform.ts
|
|
254124
|
+
var TARGET_SPECIFIER = "@reapit/elements/core/search-input";
|
|
254125
|
+
var baseTransform = createComponentMigration({
|
|
254126
|
+
identifiers: [
|
|
254127
|
+
{
|
|
254128
|
+
from: "SearchInput",
|
|
254129
|
+
to: "SearchInput",
|
|
254130
|
+
targetSpecifier: TARGET_SPECIFIER
|
|
254131
|
+
}
|
|
254132
|
+
],
|
|
254133
|
+
props: [
|
|
254134
|
+
{
|
|
254135
|
+
from: "SearchInputProps",
|
|
254136
|
+
to: "SearchInput.Props",
|
|
254137
|
+
targetSpecifier: TARGET_SPECIFIER
|
|
254138
|
+
}
|
|
254139
|
+
],
|
|
254140
|
+
propRenames: {
|
|
254141
|
+
inputSize: "size",
|
|
254142
|
+
isDisabled: "disabled"
|
|
254143
|
+
},
|
|
254144
|
+
// Local re-exports (`export { SearchInput }` without `from`) count as usage
|
|
254145
|
+
// and require a new import to be added.
|
|
254146
|
+
treatLocalReExportsAsUsage: true,
|
|
254147
|
+
createContext: /* @__PURE__ */ __name(() => ({ todoNodes: [] }), "createContext"),
|
|
254148
|
+
// unstable_onSearch is handled here so we can detect its presence before
|
|
254149
|
+
// removal and conditionally insert the TODO comment in afterTransform.
|
|
254150
|
+
customJsxTransform(element, _sourceFile, _facadePackage, context) {
|
|
254151
|
+
for (const attr of element.getAttributes().slice()) {
|
|
254152
|
+
if (attr.getKind() !== import_ts_morph8.SyntaxKind.JsxAttribute) continue;
|
|
254153
|
+
const jsxAttr = attr.asKindOrThrow(import_ts_morph8.SyntaxKind.JsxAttribute);
|
|
254154
|
+
if (jsxAttr.getNameNode().getText() === "unstable_onSearch") {
|
|
254155
|
+
jsxAttr.remove();
|
|
254156
|
+
context.todoNodes.push(element);
|
|
254157
|
+
}
|
|
254158
|
+
}
|
|
254159
|
+
},
|
|
254160
|
+
afterTransform(sourceFile, { facadePackage, context }) {
|
|
254161
|
+
for (const importDecl of sourceFile.getImportDeclarations()) {
|
|
254162
|
+
const specifier = importDecl.getModuleSpecifierValue();
|
|
254163
|
+
const effectiveTarget = facadePackage ?? TARGET_SPECIFIER;
|
|
254164
|
+
if (!isElementsImport(specifier, facadePackage)) continue;
|
|
254165
|
+
if (specifier !== effectiveTarget && specifier !== TARGET_SPECIFIER) continue;
|
|
254166
|
+
const namedImports = importDecl.getNamedImports();
|
|
254167
|
+
const aliasedEntry = namedImports.find((ni) => ni.getName() === "SearchInput" && ni.getAliasNode() != null);
|
|
254168
|
+
if (!aliasedEntry) continue;
|
|
254169
|
+
const alias = aliasedEntry.getAliasNode().getText();
|
|
254170
|
+
for (const typeRef of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.TypeReference)) {
|
|
254171
|
+
const typeName = typeRef.getTypeName();
|
|
254172
|
+
if (typeName.getText() === "SearchInput.Props") {
|
|
254173
|
+
typeName.replaceWithText(`${alias}.Props`);
|
|
254174
|
+
}
|
|
254175
|
+
}
|
|
254176
|
+
for (const heritage of sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.ExpressionWithTypeArguments)) {
|
|
254177
|
+
const expression = heritage.getExpression();
|
|
254178
|
+
if (expression.getText() === "SearchInput.Props") {
|
|
254179
|
+
expression.replaceWithText(`${alias}.Props`);
|
|
254180
|
+
}
|
|
254181
|
+
}
|
|
254182
|
+
for (const ni of importDecl.getNamedImports()) {
|
|
254183
|
+
if (ni.getName() === "SearchInput" && ni.getAliasNode() == null) {
|
|
254184
|
+
ni.remove();
|
|
254185
|
+
break;
|
|
254186
|
+
}
|
|
254187
|
+
}
|
|
254188
|
+
break;
|
|
254189
|
+
}
|
|
254190
|
+
if (context.todoNodes.length > 0) {
|
|
254191
|
+
const positions = collectStatementCommentPositions(sourceFile, context.todoNodes);
|
|
254192
|
+
insertLineComments(sourceFile, positions, " TODO: Replace the removed unstable_onSearch prop with onChange.");
|
|
254193
|
+
}
|
|
254194
|
+
}
|
|
254195
|
+
});
|
|
254196
|
+
var transform_default = baseTransform;
|
|
253898
254197
|
export {
|
|
253899
|
-
|
|
254198
|
+
transform_default as default
|
|
253900
254199
|
};
|
|
253901
254200
|
/*! Bundled license information:
|
|
253902
254201
|
|