xmlui 0.11.4 → 0.11.6
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/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-Cq0EMm3L.js → index-x4orhWfi.js} +1888 -2133
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-DrUirixi.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
- package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +122 -1
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-BGdap_gu.js} +1919 -2124
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-DlJ0S4Uy.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -763
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -569
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -183,8 +183,7 @@ class InputStream {
|
|
|
183
183
|
}
|
|
184
184
|
// Gets the tail of the input stream
|
|
185
185
|
getTail(start) {
|
|
186
|
-
|
|
187
|
-
return ((_a = this.source) == null ? void 0 : _a.substring(start)) ?? "";
|
|
186
|
+
return this.source?.substring(start) ?? "";
|
|
188
187
|
}
|
|
189
188
|
}
|
|
190
189
|
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
@@ -415,8 +414,11 @@ class Lexer {
|
|
|
415
414
|
tokenType = TokenType.Unknown;
|
|
416
415
|
}
|
|
417
416
|
phaseSwitch: switch (phase) {
|
|
417
|
+
// ====================================================================
|
|
418
|
+
// Process the first character
|
|
418
419
|
case 0:
|
|
419
420
|
switch (ch) {
|
|
421
|
+
// --- Go on with whitespaces
|
|
420
422
|
case " ":
|
|
421
423
|
case " ":
|
|
422
424
|
case "\n":
|
|
@@ -424,6 +426,7 @@ class Lexer {
|
|
|
424
426
|
phase = 1;
|
|
425
427
|
tokenType = TokenType.Ws;
|
|
426
428
|
break;
|
|
429
|
+
// --- Divide, BlockComment, or EolComment
|
|
427
430
|
case "/":
|
|
428
431
|
phase = 5;
|
|
429
432
|
tokenType = TokenType.Divide;
|
|
@@ -452,14 +455,17 @@ class Lexer {
|
|
|
452
455
|
phase = 58;
|
|
453
456
|
tokenType = TokenType.BitwiseXor;
|
|
454
457
|
break;
|
|
458
|
+
// --- BitwiseOr, LogicalOr
|
|
455
459
|
case "|":
|
|
456
460
|
phase = 7;
|
|
457
461
|
tokenType = TokenType.BitwiseOr;
|
|
458
462
|
break;
|
|
463
|
+
// --- BitwiseAnd, LogicalAnd
|
|
459
464
|
case "&":
|
|
460
465
|
phase = 9;
|
|
461
466
|
tokenType = TokenType.BitwiseAnd;
|
|
462
467
|
break;
|
|
468
|
+
// --- "?", "?", or "?."
|
|
463
469
|
case "?":
|
|
464
470
|
phase = 22;
|
|
465
471
|
tokenType = TokenType.QuestionMark;
|
|
@@ -472,6 +478,7 @@ class Lexer {
|
|
|
472
478
|
return completeToken(TokenType.LParent);
|
|
473
479
|
case ")":
|
|
474
480
|
return completeToken(TokenType.RParent);
|
|
481
|
+
// --- ":" or "::"
|
|
475
482
|
case ":":
|
|
476
483
|
phase = 20;
|
|
477
484
|
tokenType = TokenType.Colon;
|
|
@@ -488,22 +495,27 @@ class Lexer {
|
|
|
488
495
|
return completeToken(TokenType.LBrace);
|
|
489
496
|
case "}":
|
|
490
497
|
return completeToken(TokenType.RBrace);
|
|
498
|
+
// --- "=","==", "===", or "=>"
|
|
491
499
|
case "=":
|
|
492
500
|
phase = 10;
|
|
493
501
|
tokenType = TokenType.Assignment;
|
|
494
502
|
break;
|
|
503
|
+
// --- "!", "!=", or "!=="
|
|
495
504
|
case "!":
|
|
496
505
|
phase = 13;
|
|
497
506
|
tokenType = TokenType.LogicalNot;
|
|
498
507
|
break;
|
|
508
|
+
// --- "<", "<=", or "<<"
|
|
499
509
|
case "<":
|
|
500
510
|
phase = 14;
|
|
501
511
|
tokenType = TokenType.LessThan;
|
|
502
512
|
break;
|
|
513
|
+
// --- ">", ">=", ">>", or ">>>"
|
|
503
514
|
case ">":
|
|
504
515
|
phase = 15;
|
|
505
516
|
tokenType = TokenType.GreaterThan;
|
|
506
517
|
break;
|
|
518
|
+
// --- Decimal or Real literal
|
|
507
519
|
case "0":
|
|
508
520
|
phase = 21;
|
|
509
521
|
tokenType = TokenType.DecimalLiteral;
|
|
@@ -512,6 +524,7 @@ class Lexer {
|
|
|
512
524
|
phase = 18;
|
|
513
525
|
tokenType = TokenType.Dot;
|
|
514
526
|
break;
|
|
527
|
+
// --- String (both " and ' are accepted as string wrappers
|
|
515
528
|
case '"':
|
|
516
529
|
case "'":
|
|
517
530
|
stringState = ch;
|
|
@@ -531,16 +544,21 @@ class Lexer {
|
|
|
531
544
|
break;
|
|
532
545
|
}
|
|
533
546
|
break;
|
|
547
|
+
// ====================================================================
|
|
548
|
+
// Process comments
|
|
549
|
+
// --- Looking for the end of whitespace
|
|
534
550
|
case 1:
|
|
535
551
|
if (ch !== " " && ch !== " " && ch !== "\r" && ch !== "\n") {
|
|
536
552
|
return makeToken();
|
|
537
553
|
}
|
|
538
554
|
break;
|
|
555
|
+
// --- Wait for an "*" that may complete a block comment
|
|
539
556
|
case 3:
|
|
540
557
|
if (ch === "*") {
|
|
541
558
|
phase = 4;
|
|
542
559
|
}
|
|
543
560
|
break;
|
|
561
|
+
// --- Wait for a "/" that may complete a block comment
|
|
544
562
|
case 4:
|
|
545
563
|
if (ch === "/") {
|
|
546
564
|
return completeToken(TokenType.BlockComment);
|
|
@@ -551,11 +569,15 @@ class Lexer {
|
|
|
551
569
|
return completeToken();
|
|
552
570
|
}
|
|
553
571
|
break;
|
|
572
|
+
// ====================================================================
|
|
573
|
+
// Process identifiers
|
|
554
574
|
case 17:
|
|
555
575
|
if (!isIdContinuation(ch)) {
|
|
556
576
|
return makeToken();
|
|
557
577
|
}
|
|
558
578
|
break;
|
|
579
|
+
// ====================================================================
|
|
580
|
+
// Process miscellaneous tokens
|
|
559
581
|
case 20:
|
|
560
582
|
return ch === ":" ? completeToken(TokenType.Global) : makeToken();
|
|
561
583
|
case 5:
|
|
@@ -686,6 +708,8 @@ class Lexer {
|
|
|
686
708
|
return makeToken();
|
|
687
709
|
case 56:
|
|
688
710
|
return ch === "=" ? completeToken(TokenType.ShiftRightAssignment) : makeToken();
|
|
711
|
+
// ====================================================================
|
|
712
|
+
// --- Literals
|
|
689
713
|
case 21:
|
|
690
714
|
if (ch === "x") {
|
|
691
715
|
phase = 23;
|
|
@@ -804,6 +828,7 @@ class Lexer {
|
|
|
804
828
|
return makeToken();
|
|
805
829
|
}
|
|
806
830
|
break;
|
|
831
|
+
// A dollar sign is also a valid variable name. When it isn't a dollar left brace, we continue as if it was an identifier
|
|
807
832
|
case 6:
|
|
808
833
|
if (ch === "{") {
|
|
809
834
|
return completeToken(TokenType.DollarLBrace);
|
|
@@ -856,6 +881,7 @@ class Lexer {
|
|
|
856
881
|
tokenType = TokenType.Unknown;
|
|
857
882
|
}
|
|
858
883
|
break;
|
|
884
|
+
// Start of string character escape
|
|
859
885
|
case 36:
|
|
860
886
|
switch (ch) {
|
|
861
887
|
case "b":
|
|
@@ -883,6 +909,7 @@ class Lexer {
|
|
|
883
909
|
break;
|
|
884
910
|
}
|
|
885
911
|
break;
|
|
912
|
+
// --- First hexadecimal digit of string character escape
|
|
886
913
|
case 37:
|
|
887
914
|
if (isHexadecimalDigit(ch)) {
|
|
888
915
|
phase = 38;
|
|
@@ -890,6 +917,7 @@ class Lexer {
|
|
|
890
917
|
return completeToken(TokenType.Unknown);
|
|
891
918
|
}
|
|
892
919
|
break;
|
|
920
|
+
// --- Second hexadecimal digit of character escape
|
|
893
921
|
case 38:
|
|
894
922
|
if (isHexadecimalDigit(ch)) {
|
|
895
923
|
phase = 35;
|
|
@@ -897,6 +925,7 @@ class Lexer {
|
|
|
897
925
|
return completeToken(TokenType.Unknown);
|
|
898
926
|
}
|
|
899
927
|
break;
|
|
928
|
+
// --- First hexadecimal digit of Unicode string character escape
|
|
900
929
|
case 39:
|
|
901
930
|
if (ch === "{") {
|
|
902
931
|
phase = 43;
|
|
@@ -908,6 +937,7 @@ class Lexer {
|
|
|
908
937
|
return completeToken(TokenType.Unknown);
|
|
909
938
|
}
|
|
910
939
|
break;
|
|
940
|
+
// --- Second hexadecimal digit of Unicode string character escape
|
|
911
941
|
case 40:
|
|
912
942
|
if (isHexadecimalDigit(ch)) {
|
|
913
943
|
phase = 41;
|
|
@@ -915,6 +945,7 @@ class Lexer {
|
|
|
915
945
|
return completeToken(TokenType.Unknown);
|
|
916
946
|
}
|
|
917
947
|
break;
|
|
948
|
+
// --- Third hexadecimal digit of Unicode string character escape
|
|
918
949
|
case 41:
|
|
919
950
|
if (isHexadecimalDigit(ch)) {
|
|
920
951
|
phase = 42;
|
|
@@ -922,6 +953,7 @@ class Lexer {
|
|
|
922
953
|
return completeToken(TokenType.Unknown);
|
|
923
954
|
}
|
|
924
955
|
break;
|
|
956
|
+
// --- Fourth hexadecimal digit of Unicode string character escape
|
|
925
957
|
case 42:
|
|
926
958
|
if (isHexadecimalDigit(ch)) {
|
|
927
959
|
phase = 35;
|
|
@@ -929,6 +961,7 @@ class Lexer {
|
|
|
929
961
|
return completeToken(TokenType.Unknown);
|
|
930
962
|
}
|
|
931
963
|
break;
|
|
964
|
+
// --- First hexadecimal digit of Unicode codepoint string character escape
|
|
932
965
|
case 43:
|
|
933
966
|
if (isHexadecimalDigit(ch)) {
|
|
934
967
|
phase = 44;
|
|
@@ -936,6 +969,7 @@ class Lexer {
|
|
|
936
969
|
return completeToken(TokenType.Unknown);
|
|
937
970
|
}
|
|
938
971
|
break;
|
|
972
|
+
// --- Second hexadecimal digit of Unicode codepoint string character escape
|
|
939
973
|
case 44:
|
|
940
974
|
if (ch === "}") {
|
|
941
975
|
phase = 35;
|
|
@@ -945,6 +979,7 @@ class Lexer {
|
|
|
945
979
|
return completeToken(TokenType.Unknown);
|
|
946
980
|
}
|
|
947
981
|
break;
|
|
982
|
+
// --- Third hexadecimal digit of Unicode codepoint string character escape
|
|
948
983
|
case 45:
|
|
949
984
|
if (ch === "}") {
|
|
950
985
|
phase = 35;
|
|
@@ -954,6 +989,7 @@ class Lexer {
|
|
|
954
989
|
return completeToken(TokenType.Unknown);
|
|
955
990
|
}
|
|
956
991
|
break;
|
|
992
|
+
// --- Fourth hexadecimal digit of Unicode codepoint string character escape
|
|
957
993
|
case 46:
|
|
958
994
|
if (ch === "}") {
|
|
959
995
|
phase = 35;
|
|
@@ -963,6 +999,7 @@ class Lexer {
|
|
|
963
999
|
return completeToken(TokenType.Unknown);
|
|
964
1000
|
}
|
|
965
1001
|
break;
|
|
1002
|
+
// --- Fifth hexadecimal digit of Unicode codepoint string character escape
|
|
966
1003
|
case 47:
|
|
967
1004
|
if (ch === "}") {
|
|
968
1005
|
phase = 35;
|
|
@@ -972,6 +1009,7 @@ class Lexer {
|
|
|
972
1009
|
return completeToken(TokenType.Unknown);
|
|
973
1010
|
}
|
|
974
1011
|
break;
|
|
1012
|
+
// --- Sixth hexadecimal digit of Unicode codepoint string character escape
|
|
975
1013
|
case 48:
|
|
976
1014
|
if (ch === "}") {
|
|
977
1015
|
phase = 35;
|
|
@@ -981,6 +1019,7 @@ class Lexer {
|
|
|
981
1019
|
return completeToken(TokenType.Unknown);
|
|
982
1020
|
}
|
|
983
1021
|
break;
|
|
1022
|
+
// --- Closing bracket of Unicode codepoint string character escape
|
|
984
1023
|
case 49:
|
|
985
1024
|
if (ch === "}") {
|
|
986
1025
|
phase = 35;
|
|
@@ -988,6 +1027,8 @@ class Lexer {
|
|
|
988
1027
|
return completeToken(TokenType.Unknown);
|
|
989
1028
|
}
|
|
990
1029
|
break;
|
|
1030
|
+
// ====================================================================
|
|
1031
|
+
// --- We cannot continue
|
|
991
1032
|
default:
|
|
992
1033
|
return makeToken();
|
|
993
1034
|
}
|
|
@@ -3931,7 +3972,6 @@ class Parser {
|
|
|
3931
3972
|
}
|
|
3932
3973
|
}
|
|
3933
3974
|
convertToArrayDestructure(seq) {
|
|
3934
|
-
var _a;
|
|
3935
3975
|
const items = seq.type === T_SEQUENCE_EXPRESSION ? seq.exprs : seq.items;
|
|
3936
3976
|
const result = this.createExpressionNode(
|
|
3937
3977
|
T_DESTRUCTURE,
|
|
@@ -4006,12 +4046,11 @@ class Parser {
|
|
|
4006
4046
|
this.reportError("W017");
|
|
4007
4047
|
return null;
|
|
4008
4048
|
}
|
|
4009
|
-
if (arrayD)
|
|
4049
|
+
if (arrayD) result.aDestr?.push(arrayD);
|
|
4010
4050
|
}
|
|
4011
4051
|
return result;
|
|
4012
4052
|
}
|
|
4013
4053
|
convertToObjectDestructure(objLit) {
|
|
4014
|
-
var _a;
|
|
4015
4054
|
const result = this.createExpressionNode(
|
|
4016
4055
|
T_DESTRUCTURE,
|
|
4017
4056
|
{ oDestr: [] },
|
|
@@ -4100,7 +4139,7 @@ class Parser {
|
|
|
4100
4139
|
this.reportError("W018");
|
|
4101
4140
|
return null;
|
|
4102
4141
|
}
|
|
4103
|
-
if (objD)
|
|
4142
|
+
if (objD) result.oDestr?.push(objD);
|
|
4104
4143
|
}
|
|
4105
4144
|
return result;
|
|
4106
4145
|
}
|
|
@@ -4108,8 +4147,7 @@ class Parser {
|
|
|
4108
4147
|
* Tests if the specified token can be the start of an expression
|
|
4109
4148
|
*/
|
|
4110
4149
|
isExpressionStart(token) {
|
|
4111
|
-
|
|
4112
|
-
return ((_a = tokenTraits[token.type]) == null ? void 0 : _a.expressionStart) ?? false;
|
|
4150
|
+
return tokenTraits[token.type]?.expressionStart ?? false;
|
|
4113
4151
|
}
|
|
4114
4152
|
}
|
|
4115
4153
|
var SyntaxKind = /* @__PURE__ */ ((SyntaxKind2) => {
|
|
@@ -4214,7 +4252,6 @@ function assertUnreachable(x) {
|
|
|
4214
4252
|
throw new Error("Didn't expect to get here");
|
|
4215
4253
|
}
|
|
4216
4254
|
function toDbgString(node, getText, indentationLvl = 0) {
|
|
4217
|
-
var _a;
|
|
4218
4255
|
const prefix = `${" ".repeat(indentationLvl)} ${getSyntaxKindStrRepr(node.kind)} @${node.start}..${node.end}`;
|
|
4219
4256
|
if (!isInnerNode(node.kind)) {
|
|
4220
4257
|
let tokenText = getText(node);
|
|
@@ -4223,13 +4260,12 @@ function toDbgString(node, getText, indentationLvl = 0) {
|
|
|
4223
4260
|
}
|
|
4224
4261
|
return prefix + ` "${tokenText}"`;
|
|
4225
4262
|
} else {
|
|
4226
|
-
return prefix + "\n" +
|
|
4263
|
+
return prefix + "\n" + node.children?.map((c) => toDbgString(c, getText, indentationLvl + 1)).join("\n");
|
|
4227
4264
|
}
|
|
4228
4265
|
}
|
|
4229
4266
|
function tagNameNodesWithoutErrorsMatch(name1, name2, getText) {
|
|
4230
|
-
|
|
4231
|
-
const
|
|
4232
|
-
const children2 = ((_b = name2.children) == null ? void 0 : _b.filter((c) => c.kind !== SyntaxKind.ErrorNode)) ?? [];
|
|
4267
|
+
const children1 = name1.children?.filter((c) => c.kind !== SyntaxKind.ErrorNode) ?? [];
|
|
4268
|
+
const children2 = name2.children?.filter((c) => c.kind !== SyntaxKind.ErrorNode) ?? [];
|
|
4233
4269
|
if (children1.length !== children2.length) {
|
|
4234
4270
|
return false;
|
|
4235
4271
|
}
|
|
@@ -4288,16 +4324,15 @@ function findLastToken(node) {
|
|
|
4288
4324
|
}
|
|
4289
4325
|
class Node {
|
|
4290
4326
|
constructor(kind, pos, end, triviaBefore, children) {
|
|
4291
|
-
var _a, _b;
|
|
4292
4327
|
this.kind = kind;
|
|
4293
4328
|
this.pos = pos;
|
|
4294
4329
|
this.end = end;
|
|
4295
4330
|
this.triviaBefore = triviaBefore;
|
|
4296
4331
|
this.children = children;
|
|
4297
4332
|
if (triviaBefore) {
|
|
4298
|
-
this.start =
|
|
4333
|
+
this.start = triviaBefore[0]?.start ?? pos;
|
|
4299
4334
|
} else if (children) {
|
|
4300
|
-
this.start =
|
|
4335
|
+
this.start = children[0]?.start ?? pos;
|
|
4301
4336
|
} else {
|
|
4302
4337
|
this.start = pos;
|
|
4303
4338
|
}
|
|
@@ -4700,6 +4735,7 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4700
4735
|
}
|
|
4701
4736
|
const ch = codePointUnchecked(pos);
|
|
4702
4737
|
switch (ch) {
|
|
4738
|
+
// --- Collect line break
|
|
4703
4739
|
case CharacterCodes.lineFeed:
|
|
4704
4740
|
case CharacterCodes.carriageReturn:
|
|
4705
4741
|
if (skipTrivia) {
|
|
@@ -4713,6 +4749,7 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4713
4749
|
}
|
|
4714
4750
|
return token = SyntaxKind.NewLineTrivia;
|
|
4715
4751
|
}
|
|
4752
|
+
// --- Collect whitespace
|
|
4716
4753
|
case CharacterCodes.tab:
|
|
4717
4754
|
case CharacterCodes.verticalTab:
|
|
4718
4755
|
case CharacterCodes.formFeed:
|
|
@@ -4744,11 +4781,13 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4744
4781
|
}
|
|
4745
4782
|
return token = SyntaxKind.WhitespaceTrivia;
|
|
4746
4783
|
}
|
|
4784
|
+
// --- Collect string literal
|
|
4747
4785
|
case CharacterCodes.doubleQuote:
|
|
4748
4786
|
case CharacterCodes.singleQuote:
|
|
4749
4787
|
case CharacterCodes.backtick:
|
|
4750
4788
|
tokenValue = scanString();
|
|
4751
4789
|
return token = SyntaxKind.StringLiteral;
|
|
4790
|
+
// --- Collext XML entities
|
|
4752
4791
|
case CharacterCodes.ampersand:
|
|
4753
4792
|
if (charCodeUnchecked(pos + 1) === CharacterCodes.a && charCodeUnchecked(pos + 2) === CharacterCodes.m && charCodeUnchecked(pos + 3) === CharacterCodes.p && charCodeUnchecked(pos + 4) === CharacterCodes.semicolon) {
|
|
4754
4793
|
pos += 5;
|
|
@@ -4769,12 +4808,15 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4769
4808
|
pos++;
|
|
4770
4809
|
error(Diag_Invalid_Character, 1);
|
|
4771
4810
|
return token = SyntaxKind.Unknown;
|
|
4811
|
+
// --- Collect equal token
|
|
4772
4812
|
case CharacterCodes.equals:
|
|
4773
4813
|
pos++;
|
|
4774
4814
|
return token = SyntaxKind.Equal;
|
|
4815
|
+
// --- Collect colon token
|
|
4775
4816
|
case CharacterCodes.colon:
|
|
4776
4817
|
pos++;
|
|
4777
4818
|
return token = SyntaxKind.Colon;
|
|
4819
|
+
// --- Collect tokens starting with '<'
|
|
4778
4820
|
case CharacterCodes.lessThan:
|
|
4779
4821
|
if (charCodeUnchecked(pos + 1) === CharacterCodes.slash) {
|
|
4780
4822
|
pos += 2;
|
|
@@ -4832,6 +4874,7 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4832
4874
|
pos++;
|
|
4833
4875
|
error(Diag_Invalid_Character, 1);
|
|
4834
4876
|
return token = SyntaxKind.Unknown;
|
|
4877
|
+
// --- Collect node closing token
|
|
4835
4878
|
case CharacterCodes.greaterThan:
|
|
4836
4879
|
pos++;
|
|
4837
4880
|
return token = SyntaxKind.NodeEnd;
|
|
@@ -5148,6 +5191,7 @@ function parseXmlUiMarkup(text) {
|
|
|
5148
5191
|
loop: while (true) {
|
|
5149
5192
|
switch (peek().kind) {
|
|
5150
5193
|
case SyntaxKind.EndOfFileToken:
|
|
5194
|
+
// same as RECOVER_OPEN_TAG
|
|
5151
5195
|
case SyntaxKind.OpenNodeStart:
|
|
5152
5196
|
case SyntaxKind.NodeEnd:
|
|
5153
5197
|
case SyntaxKind.NodeClose:
|
|
@@ -5390,7 +5434,7 @@ function parseXmlUiMarkup(text) {
|
|
|
5390
5434
|
return token;
|
|
5391
5435
|
}
|
|
5392
5436
|
const trivia = token.triviaBefore;
|
|
5393
|
-
const triviaLength =
|
|
5437
|
+
const triviaLength = trivia?.length ?? 0;
|
|
5394
5438
|
let i = 0;
|
|
5395
5439
|
let leadingComments = [];
|
|
5396
5440
|
let firstNonCommentTriviaIdx = -1;
|
|
@@ -5568,7 +5612,7 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5568
5612
|
}
|
|
5569
5613
|
switch (subject.type) {
|
|
5570
5614
|
case T_BLOCK_STATEMENT: {
|
|
5571
|
-
state =
|
|
5615
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5572
5616
|
if (state.cancel) return state;
|
|
5573
5617
|
if (!state.skipChildren) {
|
|
5574
5618
|
for (const statement of subject.stmts) {
|
|
@@ -5576,28 +5620,28 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5576
5620
|
if (state.cancel) return state;
|
|
5577
5621
|
}
|
|
5578
5622
|
}
|
|
5579
|
-
state =
|
|
5623
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5580
5624
|
return state;
|
|
5581
5625
|
}
|
|
5582
5626
|
case T_EMPTY_STATEMENT: {
|
|
5583
|
-
state =
|
|
5627
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5584
5628
|
return state;
|
|
5585
5629
|
}
|
|
5586
5630
|
case T_EXPRESSION_STATEMENT: {
|
|
5587
|
-
state =
|
|
5631
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5588
5632
|
if (state.cancel) return state;
|
|
5589
5633
|
if (!state.skipChildren) {
|
|
5590
5634
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
5591
5635
|
if (state.cancel) return state;
|
|
5592
5636
|
}
|
|
5593
|
-
state =
|
|
5637
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5594
5638
|
return state;
|
|
5595
5639
|
}
|
|
5596
5640
|
case T_ARROW_EXPRESSION_STATEMENT: {
|
|
5597
5641
|
return state;
|
|
5598
5642
|
}
|
|
5599
5643
|
case T_LET_STATEMENT: {
|
|
5600
|
-
state =
|
|
5644
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5601
5645
|
if (state.cancel) return state;
|
|
5602
5646
|
if (!state.skipChildren) {
|
|
5603
5647
|
for (const declaration of subject.decls) {
|
|
@@ -5605,11 +5649,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5605
5649
|
if (state.cancel) return state;
|
|
5606
5650
|
}
|
|
5607
5651
|
}
|
|
5608
|
-
state =
|
|
5652
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5609
5653
|
return state;
|
|
5610
5654
|
}
|
|
5611
5655
|
case T_CONST_STATEMENT: {
|
|
5612
|
-
state =
|
|
5656
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5613
5657
|
if (state.cancel) return state;
|
|
5614
5658
|
if (!state.skipChildren) {
|
|
5615
5659
|
for (const declaration of subject.decls) {
|
|
@@ -5617,11 +5661,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5617
5661
|
if (state.cancel) return state;
|
|
5618
5662
|
}
|
|
5619
5663
|
}
|
|
5620
|
-
state =
|
|
5664
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5621
5665
|
return state;
|
|
5622
5666
|
}
|
|
5623
5667
|
case T_VAR_STATEMENT: {
|
|
5624
|
-
state =
|
|
5668
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5625
5669
|
if (state.cancel) return state;
|
|
5626
5670
|
if (!state.skipChildren) {
|
|
5627
5671
|
for (const declaration of subject.decls) {
|
|
@@ -5629,11 +5673,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5629
5673
|
if (state.cancel) return state;
|
|
5630
5674
|
}
|
|
5631
5675
|
}
|
|
5632
|
-
state =
|
|
5676
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5633
5677
|
return state;
|
|
5634
5678
|
}
|
|
5635
5679
|
case T_IF_STATEMENT: {
|
|
5636
|
-
state =
|
|
5680
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5637
5681
|
if (state.cancel) return state;
|
|
5638
5682
|
if (!state.skipChildren) {
|
|
5639
5683
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
@@ -5647,11 +5691,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5647
5691
|
}
|
|
5648
5692
|
if (state.cancel) return state;
|
|
5649
5693
|
}
|
|
5650
|
-
state =
|
|
5694
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5651
5695
|
return state;
|
|
5652
5696
|
}
|
|
5653
5697
|
case T_RETURN_STATEMENT: {
|
|
5654
|
-
state =
|
|
5698
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5655
5699
|
if (state.cancel) return state;
|
|
5656
5700
|
if (!state.skipChildren) {
|
|
5657
5701
|
if (subject.expr) {
|
|
@@ -5659,19 +5703,19 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5659
5703
|
}
|
|
5660
5704
|
if (state.cancel) return state;
|
|
5661
5705
|
}
|
|
5662
|
-
state =
|
|
5706
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5663
5707
|
return state;
|
|
5664
5708
|
}
|
|
5665
5709
|
case T_BREAK_STATEMENT: {
|
|
5666
|
-
state =
|
|
5710
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5667
5711
|
return state;
|
|
5668
5712
|
}
|
|
5669
5713
|
case T_CONTINUE_STATEMENT: {
|
|
5670
|
-
state =
|
|
5714
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5671
5715
|
return state;
|
|
5672
5716
|
}
|
|
5673
5717
|
case T_WHILE_STATEMENT: {
|
|
5674
|
-
state =
|
|
5718
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5675
5719
|
if (state.cancel) return state;
|
|
5676
5720
|
if (!state.skipChildren) {
|
|
5677
5721
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
@@ -5679,11 +5723,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5679
5723
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5680
5724
|
if (state.cancel) return state;
|
|
5681
5725
|
}
|
|
5682
|
-
state =
|
|
5726
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5683
5727
|
return state;
|
|
5684
5728
|
}
|
|
5685
5729
|
case T_DO_WHILE_STATEMENT: {
|
|
5686
|
-
state =
|
|
5730
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5687
5731
|
if (state.cancel) return state;
|
|
5688
5732
|
if (!state.skipChildren) {
|
|
5689
5733
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
@@ -5691,11 +5735,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5691
5735
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
5692
5736
|
if (state.cancel) return state;
|
|
5693
5737
|
}
|
|
5694
|
-
state =
|
|
5738
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5695
5739
|
return state;
|
|
5696
5740
|
}
|
|
5697
5741
|
case T_FOR_STATEMENT: {
|
|
5698
|
-
state =
|
|
5742
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5699
5743
|
if (state.cancel) return state;
|
|
5700
5744
|
if (!state.skipChildren) {
|
|
5701
5745
|
if (subject.init) {
|
|
@@ -5713,11 +5757,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5713
5757
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5714
5758
|
if (state.cancel) return state;
|
|
5715
5759
|
}
|
|
5716
|
-
state =
|
|
5760
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5717
5761
|
return state;
|
|
5718
5762
|
}
|
|
5719
5763
|
case T_FOR_IN_STATEMENT: {
|
|
5720
|
-
state =
|
|
5764
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5721
5765
|
if (state.cancel) return state;
|
|
5722
5766
|
if (!state.skipChildren) {
|
|
5723
5767
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
@@ -5725,11 +5769,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5725
5769
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5726
5770
|
if (state.cancel) return state;
|
|
5727
5771
|
}
|
|
5728
|
-
state =
|
|
5772
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5729
5773
|
return state;
|
|
5730
5774
|
}
|
|
5731
5775
|
case T_FOR_OF_STATEMENT: {
|
|
5732
|
-
state =
|
|
5776
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5733
5777
|
if (state.cancel) return state;
|
|
5734
5778
|
if (!state.skipChildren) {
|
|
5735
5779
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
@@ -5737,21 +5781,21 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5737
5781
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5738
5782
|
if (state.cancel) return state;
|
|
5739
5783
|
}
|
|
5740
|
-
state =
|
|
5784
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5741
5785
|
return state;
|
|
5742
5786
|
}
|
|
5743
5787
|
case T_THROW_STATEMENT: {
|
|
5744
|
-
state =
|
|
5788
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5745
5789
|
if (state.cancel) return state;
|
|
5746
5790
|
if (!state.skipChildren) {
|
|
5747
5791
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
5748
5792
|
if (state.cancel) return state;
|
|
5749
5793
|
}
|
|
5750
|
-
state =
|
|
5794
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5751
5795
|
return state;
|
|
5752
5796
|
}
|
|
5753
5797
|
case T_TRY_STATEMENT: {
|
|
5754
|
-
state =
|
|
5798
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5755
5799
|
if (state.cancel) return state;
|
|
5756
5800
|
if (!state.skipChildren) {
|
|
5757
5801
|
if (subject.tryB) {
|
|
@@ -5774,11 +5818,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5774
5818
|
}
|
|
5775
5819
|
if (state.cancel) return state;
|
|
5776
5820
|
}
|
|
5777
|
-
state =
|
|
5821
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5778
5822
|
return state;
|
|
5779
5823
|
}
|
|
5780
5824
|
case T_SWITCH_STATEMENT: {
|
|
5781
|
-
state =
|
|
5825
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5782
5826
|
if (state.cancel) return state;
|
|
5783
5827
|
if (!state.skipChildren) {
|
|
5784
5828
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
@@ -5808,11 +5852,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5808
5852
|
}
|
|
5809
5853
|
}
|
|
5810
5854
|
}
|
|
5811
|
-
state =
|
|
5855
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5812
5856
|
return state;
|
|
5813
5857
|
}
|
|
5814
5858
|
case T_FUNCTION_DECLARATION: {
|
|
5815
|
-
state =
|
|
5859
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5816
5860
|
if (state.cancel) return state;
|
|
5817
5861
|
if (!state.skipChildren) {
|
|
5818
5862
|
for (const expr of subject.args) {
|
|
@@ -5822,21 +5866,22 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5822
5866
|
state = visitNode(subject.stmt, state, stmtVisitor, exprVisitor, subject, "statement");
|
|
5823
5867
|
if (state.cancel) return state;
|
|
5824
5868
|
}
|
|
5825
|
-
state =
|
|
5869
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5826
5870
|
return state;
|
|
5827
5871
|
}
|
|
5872
|
+
// ================= Expressions =================
|
|
5828
5873
|
case T_UNARY_EXPRESSION: {
|
|
5829
|
-
state =
|
|
5874
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5830
5875
|
if (state.cancel) return state;
|
|
5831
5876
|
if (!state.skipChildren) {
|
|
5832
5877
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
5833
5878
|
if (state.cancel) return state;
|
|
5834
5879
|
}
|
|
5835
|
-
state =
|
|
5880
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5836
5881
|
return state;
|
|
5837
5882
|
}
|
|
5838
5883
|
case T_BINARY_EXPRESSION: {
|
|
5839
|
-
state =
|
|
5884
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5840
5885
|
if (state.cancel) return state;
|
|
5841
5886
|
if (!state.skipChildren) {
|
|
5842
5887
|
state = visitNode(subject.left, state, stmtVisitor, exprVisitor, subject, "left");
|
|
@@ -5844,11 +5889,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5844
5889
|
state = visitNode(subject.right, state, stmtVisitor, exprVisitor, subject, "right");
|
|
5845
5890
|
if (state.cancel) return state;
|
|
5846
5891
|
}
|
|
5847
|
-
state =
|
|
5892
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5848
5893
|
return state;
|
|
5849
5894
|
}
|
|
5850
5895
|
case T_SEQUENCE_EXPRESSION: {
|
|
5851
|
-
state =
|
|
5896
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5852
5897
|
if (state.cancel) return state;
|
|
5853
5898
|
if (!state.skipChildren) {
|
|
5854
5899
|
for (const expr of subject.exprs) {
|
|
@@ -5856,11 +5901,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5856
5901
|
if (state.cancel) return state;
|
|
5857
5902
|
}
|
|
5858
5903
|
}
|
|
5859
|
-
state =
|
|
5904
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5860
5905
|
return state;
|
|
5861
5906
|
}
|
|
5862
5907
|
case T_CONDITIONAL_EXPRESSION: {
|
|
5863
|
-
state =
|
|
5908
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5864
5909
|
if (state.cancel) return state;
|
|
5865
5910
|
if (!state.skipChildren) {
|
|
5866
5911
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
@@ -5870,11 +5915,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5870
5915
|
state = visitNode(subject.elseE, state, stmtVisitor, exprVisitor, subject, "alternate");
|
|
5871
5916
|
if (state.cancel) return state;
|
|
5872
5917
|
}
|
|
5873
|
-
state =
|
|
5918
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5874
5919
|
return state;
|
|
5875
5920
|
}
|
|
5876
5921
|
case T_FUNCTION_INVOCATION_EXPRESSION: {
|
|
5877
|
-
state =
|
|
5922
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5878
5923
|
if (state.cancel) return state;
|
|
5879
5924
|
if (!state.skipChildren) {
|
|
5880
5925
|
for (const arg of subject.arguments) {
|
|
@@ -5884,21 +5929,21 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5884
5929
|
state = visitNode(subject.obj, state, stmtVisitor, exprVisitor, subject, "object");
|
|
5885
5930
|
if (state.cancel) return state;
|
|
5886
5931
|
}
|
|
5887
|
-
state =
|
|
5932
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5888
5933
|
return state;
|
|
5889
5934
|
}
|
|
5890
5935
|
case T_MEMBER_ACCESS_EXPRESSION: {
|
|
5891
|
-
state =
|
|
5936
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5892
5937
|
if (state.cancel) return state;
|
|
5893
5938
|
if (!state.skipChildren) {
|
|
5894
5939
|
state = visitNode(subject.obj, state, stmtVisitor, exprVisitor, subject, "object");
|
|
5895
5940
|
if (state.cancel) return state;
|
|
5896
5941
|
}
|
|
5897
|
-
state =
|
|
5942
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5898
5943
|
return state;
|
|
5899
5944
|
}
|
|
5900
5945
|
case T_CALCULATED_MEMBER_ACCESS_EXPRESSION: {
|
|
5901
|
-
state =
|
|
5946
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5902
5947
|
if (state.cancel) return state;
|
|
5903
5948
|
if (!state.skipChildren) {
|
|
5904
5949
|
state = visitNode(subject.obj, state, stmtVisitor, exprVisitor, subject, "object");
|
|
@@ -5906,19 +5951,19 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5906
5951
|
state = visitNode(subject.member, state, stmtVisitor, exprVisitor, subject, "member");
|
|
5907
5952
|
if (state.cancel) return state;
|
|
5908
5953
|
}
|
|
5909
|
-
state =
|
|
5954
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5910
5955
|
return state;
|
|
5911
5956
|
}
|
|
5912
5957
|
case T_IDENTIFIER: {
|
|
5913
|
-
state =
|
|
5958
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5914
5959
|
return state;
|
|
5915
5960
|
}
|
|
5916
5961
|
case T_LITERAL: {
|
|
5917
|
-
state =
|
|
5962
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5918
5963
|
return state;
|
|
5919
5964
|
}
|
|
5920
5965
|
case T_ARRAY_LITERAL: {
|
|
5921
|
-
state =
|
|
5966
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5922
5967
|
if (state.cancel) return state;
|
|
5923
5968
|
if (!state.skipChildren) {
|
|
5924
5969
|
for (const item of subject.items) {
|
|
@@ -5926,11 +5971,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5926
5971
|
if (state.cancel) return state;
|
|
5927
5972
|
}
|
|
5928
5973
|
}
|
|
5929
|
-
state =
|
|
5974
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5930
5975
|
return state;
|
|
5931
5976
|
}
|
|
5932
5977
|
case T_OBJECT_LITERAL: {
|
|
5933
|
-
state =
|
|
5978
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5934
5979
|
if (state.cancel) return state;
|
|
5935
5980
|
if (!state.skipChildren) {
|
|
5936
5981
|
for (const prop of subject.props) {
|
|
@@ -5946,21 +5991,21 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5946
5991
|
}
|
|
5947
5992
|
}
|
|
5948
5993
|
}
|
|
5949
|
-
state =
|
|
5994
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5950
5995
|
return state;
|
|
5951
5996
|
}
|
|
5952
5997
|
case T_SPREAD_EXPRESSION: {
|
|
5953
|
-
state =
|
|
5998
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5954
5999
|
if (state.cancel) return state;
|
|
5955
6000
|
if (!state.skipChildren) {
|
|
5956
6001
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
5957
6002
|
if (state.cancel) return state;
|
|
5958
6003
|
}
|
|
5959
|
-
state =
|
|
6004
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5960
6005
|
return state;
|
|
5961
6006
|
}
|
|
5962
6007
|
case T_ASSIGNMENT_EXPRESSION: {
|
|
5963
|
-
state =
|
|
6008
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5964
6009
|
if (state.cancel) return state;
|
|
5965
6010
|
if (!state.skipChildren) {
|
|
5966
6011
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
@@ -5968,15 +6013,15 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5968
6013
|
state = visitNode(subject.leftValue, state, stmtVisitor, exprVisitor, subject, "leftValue");
|
|
5969
6014
|
if (state.cancel) return state;
|
|
5970
6015
|
}
|
|
5971
|
-
state =
|
|
6016
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5972
6017
|
return state;
|
|
5973
6018
|
}
|
|
5974
6019
|
case T_NO_ARG_EXPRESSION: {
|
|
5975
|
-
state =
|
|
6020
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5976
6021
|
return state;
|
|
5977
6022
|
}
|
|
5978
6023
|
case T_ARROW_EXPRESSION: {
|
|
5979
|
-
state =
|
|
6024
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5980
6025
|
if (state.cancel) return state;
|
|
5981
6026
|
if (!state.skipChildren) {
|
|
5982
6027
|
for (const expr of subject.args) {
|
|
@@ -5986,22 +6031,22 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5986
6031
|
state = visitNode(subject.statement, state, stmtVisitor, exprVisitor, subject, "statement");
|
|
5987
6032
|
if (state.cancel) return state;
|
|
5988
6033
|
}
|
|
5989
|
-
state =
|
|
6034
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5990
6035
|
return state;
|
|
5991
6036
|
}
|
|
5992
6037
|
case T_PREFIX_OP_EXPRESSION:
|
|
5993
6038
|
case T_POSTFIX_OP_EXPRESSION: {
|
|
5994
|
-
state =
|
|
6039
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5995
6040
|
if (state.cancel) return state;
|
|
5996
6041
|
if (!state.skipChildren) {
|
|
5997
6042
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
5998
6043
|
if (state.cancel) return state;
|
|
5999
6044
|
}
|
|
6000
|
-
state =
|
|
6045
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6001
6046
|
return state;
|
|
6002
6047
|
}
|
|
6003
6048
|
case T_VAR_DECLARATION: {
|
|
6004
|
-
state =
|
|
6049
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
6005
6050
|
if (state.cancel) return state;
|
|
6006
6051
|
if (!state.skipChildren) {
|
|
6007
6052
|
if (subject.aDestr !== void 0) {
|
|
@@ -6021,13 +6066,13 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
6021
6066
|
}
|
|
6022
6067
|
if (state.cancel) return state;
|
|
6023
6068
|
}
|
|
6024
|
-
state =
|
|
6069
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6025
6070
|
return state;
|
|
6026
6071
|
}
|
|
6027
6072
|
case T_DESTRUCTURE:
|
|
6028
6073
|
case T_OBJECT_DESTRUCTURE:
|
|
6029
6074
|
case T_ARRAY_DESTRUCTURE: {
|
|
6030
|
-
state =
|
|
6075
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
6031
6076
|
if (state.cancel) return state;
|
|
6032
6077
|
if (!state.skipChildren) {
|
|
6033
6078
|
if (subject.aDestr !== void 0) {
|
|
@@ -6043,11 +6088,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
6043
6088
|
}
|
|
6044
6089
|
}
|
|
6045
6090
|
}
|
|
6046
|
-
state =
|
|
6091
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6047
6092
|
return state;
|
|
6048
6093
|
}
|
|
6049
6094
|
case T_REACTIVE_VAR_DECLARATION: {
|
|
6050
|
-
state =
|
|
6095
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
6051
6096
|
if (state.cancel) return state;
|
|
6052
6097
|
if (!state.skipChildren) {
|
|
6053
6098
|
if (subject.expr) {
|
|
@@ -6055,7 +6100,7 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
6055
6100
|
}
|
|
6056
6101
|
if (state.cancel) return state;
|
|
6057
6102
|
}
|
|
6058
|
-
state =
|
|
6103
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6059
6104
|
return state;
|
|
6060
6105
|
}
|
|
6061
6106
|
case T_TEMPLATE_LITERAL_EXPRESSION:
|
|
@@ -6122,7 +6167,6 @@ function parseScriptModule(moduleName, source) {
|
|
|
6122
6167
|
}
|
|
6123
6168
|
return parsedModule2;
|
|
6124
6169
|
function addErrorMessage(code, stmt, ...args) {
|
|
6125
|
-
var _a, _b, _c;
|
|
6126
6170
|
let errorText = errorMessages$1[code];
|
|
6127
6171
|
if (args) {
|
|
6128
6172
|
args.forEach(
|
|
@@ -6132,9 +6176,9 @@ function parseScriptModule(moduleName, source) {
|
|
|
6132
6176
|
errors.push({
|
|
6133
6177
|
code,
|
|
6134
6178
|
text: errorMessages$1[code].replace(/\{(\d+)}/g, (_, index) => args[index]),
|
|
6135
|
-
position:
|
|
6136
|
-
line:
|
|
6137
|
-
column:
|
|
6179
|
+
position: stmt.startToken?.startPosition,
|
|
6180
|
+
line: stmt.startToken?.startLine,
|
|
6181
|
+
column: stmt.startToken?.startColumn
|
|
6138
6182
|
});
|
|
6139
6183
|
}
|
|
6140
6184
|
}
|
|
@@ -6173,7 +6217,7 @@ function collectCodeBehindFromSource(moduleName, source) {
|
|
|
6173
6217
|
});
|
|
6174
6218
|
return result;
|
|
6175
6219
|
function addFunctionDeclaration(stmt) {
|
|
6176
|
-
if (
|
|
6220
|
+
if (collectedFunctions?.[stmt.id.name] !== void 0) {
|
|
6177
6221
|
return;
|
|
6178
6222
|
}
|
|
6179
6223
|
if (stmt.id.name in result.functions) {
|
|
@@ -6434,7 +6478,6 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6434
6478
|
return component;
|
|
6435
6479
|
}
|
|
6436
6480
|
function collectTraits(usesStack2, comp, element2) {
|
|
6437
|
-
var _a;
|
|
6438
6481
|
const isCompound = !isComponent(comp);
|
|
6439
6482
|
const attributes = getAttributes(element2);
|
|
6440
6483
|
namespaceStack.push(/* @__PURE__ */ new Map());
|
|
@@ -6488,10 +6531,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6488
6531
|
usesStack2,
|
|
6489
6532
|
comp,
|
|
6490
6533
|
child,
|
|
6491
|
-
(name) =>
|
|
6492
|
-
var _a2;
|
|
6493
|
-
return isComponent(comp) ? (_a2 = comp.props) == null ? void 0 : _a2[name] : void 0;
|
|
6494
|
-
},
|
|
6534
|
+
(name) => isComponent(comp) ? comp.props?.[name] : void 0,
|
|
6495
6535
|
(name, value) => {
|
|
6496
6536
|
if (!isComponent(comp)) return;
|
|
6497
6537
|
comp.props ?? (comp.props = {});
|
|
@@ -6504,10 +6544,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6504
6544
|
usesStack2,
|
|
6505
6545
|
comp,
|
|
6506
6546
|
child,
|
|
6507
|
-
(name) =>
|
|
6508
|
-
var _a2;
|
|
6509
|
-
return isComponent(comp) ? (_a2 = comp.events) == null ? void 0 : _a2[name] : void 0;
|
|
6510
|
-
},
|
|
6547
|
+
(name) => isComponent(comp) ? comp.events?.[name] : void 0,
|
|
6511
6548
|
(name, value) => {
|
|
6512
6549
|
if (!isComponent(comp)) return;
|
|
6513
6550
|
comp.events ?? (comp.events = {});
|
|
@@ -6525,10 +6562,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6525
6562
|
usesStack2,
|
|
6526
6563
|
comp,
|
|
6527
6564
|
child,
|
|
6528
|
-
(name) =>
|
|
6529
|
-
var _a2;
|
|
6530
|
-
return isComponent(comp) ? (_a2 = comp.vars) == null ? void 0 : _a2[name] : void 0;
|
|
6531
|
-
},
|
|
6565
|
+
(name) => isComponent(comp) ? comp.vars?.[name] : void 0,
|
|
6532
6566
|
(name, value) => {
|
|
6533
6567
|
if (!isComponent(comp)) return;
|
|
6534
6568
|
comp.vars ?? (comp.vars = {});
|
|
@@ -6547,10 +6581,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6547
6581
|
usesStack2,
|
|
6548
6582
|
comp,
|
|
6549
6583
|
child,
|
|
6550
|
-
(name) =>
|
|
6551
|
-
var _a2;
|
|
6552
|
-
return isComponent(comp) ? (_a2 = comp.api) == null ? void 0 : _a2[name] : void 0;
|
|
6553
|
-
},
|
|
6584
|
+
(name) => isComponent(comp) ? comp.api?.[name] : void 0,
|
|
6554
6585
|
(name, value) => {
|
|
6555
6586
|
comp.api ?? (comp.api = {});
|
|
6556
6587
|
comp.api[name] = value;
|
|
@@ -6578,7 +6609,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6578
6609
|
comp.scriptError = err;
|
|
6579
6610
|
}
|
|
6580
6611
|
}
|
|
6581
|
-
const moduleErrors =
|
|
6612
|
+
const moduleErrors = comp.scriptCollected?.moduleErrors ?? {};
|
|
6582
6613
|
if (Object.keys(moduleErrors).length > 0) {
|
|
6583
6614
|
comp.scriptError = moduleErrors;
|
|
6584
6615
|
}
|
|
@@ -6700,7 +6731,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6700
6731
|
}
|
|
6701
6732
|
const nameAttr = attrProps.find((attr) => attr.name === "name");
|
|
6702
6733
|
if (allowName) {
|
|
6703
|
-
if (!
|
|
6734
|
+
if (!nameAttr?.value) {
|
|
6704
6735
|
reportError$1("T012", elementName);
|
|
6705
6736
|
return null;
|
|
6706
6737
|
}
|
|
@@ -6710,7 +6741,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6710
6741
|
return null;
|
|
6711
6742
|
}
|
|
6712
6743
|
}
|
|
6713
|
-
const name = nameAttr
|
|
6744
|
+
const name = nameAttr?.value;
|
|
6714
6745
|
const valueAttr = attrProps.find((attr) => attr.name === "value");
|
|
6715
6746
|
if (valueAttr && valueAttr.value === void 0) {
|
|
6716
6747
|
reportError$1("T019", elementName);
|
|
@@ -6727,7 +6758,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6727
6758
|
value: nestedComps.length === 1 ? nestedComps[0] : nestedComps
|
|
6728
6759
|
};
|
|
6729
6760
|
}
|
|
6730
|
-
let value = valueAttr
|
|
6761
|
+
let value = valueAttr?.value;
|
|
6731
6762
|
if (value === null) {
|
|
6732
6763
|
return null;
|
|
6733
6764
|
}
|
|
@@ -6737,7 +6768,6 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6737
6768
|
return { name, value: collectObjectOrArray(usesStack2, childNodes) };
|
|
6738
6769
|
}
|
|
6739
6770
|
function collectLoadersElements(usesStack2, comp, loaders) {
|
|
6740
|
-
var _a;
|
|
6741
6771
|
if (!isComponent(comp)) {
|
|
6742
6772
|
reportError$1("T009", "loaders");
|
|
6743
6773
|
return;
|
|
@@ -6746,7 +6776,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6746
6776
|
if (children.length === 0) {
|
|
6747
6777
|
comp.loaders ?? (comp.loaders = []);
|
|
6748
6778
|
}
|
|
6749
|
-
const hasAttribute =
|
|
6779
|
+
const hasAttribute = loaders.children?.some((c) => c.kind === SyntaxKind.AttributeListNode);
|
|
6750
6780
|
if (hasAttribute) {
|
|
6751
6781
|
reportError$1("T014", "attributes");
|
|
6752
6782
|
return;
|
|
@@ -6782,10 +6812,10 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6782
6812
|
if (!valueInfo) {
|
|
6783
6813
|
return;
|
|
6784
6814
|
}
|
|
6785
|
-
nameValidator
|
|
6815
|
+
nameValidator?.(valueInfo?.name ?? "");
|
|
6786
6816
|
const name = valueInfo.name;
|
|
6787
6817
|
const value = valueInfo.value;
|
|
6788
|
-
if (
|
|
6818
|
+
if (valueInfo?.value !== void 0) {
|
|
6789
6819
|
setter(name, mergeValue(getter(name), value));
|
|
6790
6820
|
} else {
|
|
6791
6821
|
const children = getChildNodes(child);
|
|
@@ -6802,7 +6832,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6802
6832
|
}
|
|
6803
6833
|
const attributes = getAttributes(usesNode).map(segmentAttr);
|
|
6804
6834
|
const valueAttr = attributes.find((attr) => attr.name === "value");
|
|
6805
|
-
if (!
|
|
6835
|
+
if (!valueAttr?.value || attributes.length !== 1) {
|
|
6806
6836
|
reportError$1("T015", "uses");
|
|
6807
6837
|
return;
|
|
6808
6838
|
}
|
|
@@ -6949,8 +6979,10 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6949
6979
|
for (let i = 0; i < text.length; ++i) {
|
|
6950
6980
|
if (text.charCodeAt(i) === CharacterCodes.ampersand) {
|
|
6951
6981
|
switch (text.charCodeAt(i + 1)) {
|
|
6982
|
+
//&a
|
|
6952
6983
|
case CharacterCodes.a:
|
|
6953
6984
|
switch (text.charCodeAt(i + 2)) {
|
|
6985
|
+
//am
|
|
6954
6986
|
case CharacterCodes.m:
|
|
6955
6987
|
if (text.charCodeAt(i + 3) === CharacterCodes.p && text.charCodeAt(i + 4) === CharacterCodes.semicolon) {
|
|
6956
6988
|
newText = newText + text.substring(startOfSubstr, i) + "&";
|
|
@@ -6958,6 +6990,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6958
6990
|
startOfSubstr = i + 1;
|
|
6959
6991
|
}
|
|
6960
6992
|
break;
|
|
6993
|
+
//ap
|
|
6961
6994
|
case CharacterCodes.p:
|
|
6962
6995
|
if (text.charCodeAt(i + 3) === CharacterCodes.o && text.charCodeAt(i + 4) === CharacterCodes.s && text.charCodeAt(i + 5) === CharacterCodes.semicolon) {
|
|
6963
6996
|
newText = newText + text.substring(startOfSubstr, i) + "'";
|
|
@@ -6967,6 +7000,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6967
7000
|
break;
|
|
6968
7001
|
}
|
|
6969
7002
|
break;
|
|
7003
|
+
//&g
|
|
6970
7004
|
case CharacterCodes.g:
|
|
6971
7005
|
if (text.charCodeAt(i + 2) === CharacterCodes.t && text.charCodeAt(i + 3) === CharacterCodes.semicolon) {
|
|
6972
7006
|
newText = newText + text.substring(startOfSubstr, i) + ">";
|
|
@@ -6974,6 +7008,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6974
7008
|
startOfSubstr = i + 1;
|
|
6975
7009
|
}
|
|
6976
7010
|
break;
|
|
7011
|
+
//&l
|
|
6977
7012
|
case CharacterCodes.l:
|
|
6978
7013
|
if (text.charCodeAt(i + 2) === CharacterCodes.t && text.charCodeAt(i + 3) === CharacterCodes.semicolon) {
|
|
6979
7014
|
newText = newText + text.substring(startOfSubstr, i) + "<";
|
|
@@ -6981,6 +7016,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6981
7016
|
startOfSubstr = i + 1;
|
|
6982
7017
|
}
|
|
6983
7018
|
break;
|
|
7019
|
+
//&q
|
|
6984
7020
|
case CharacterCodes.q:
|
|
6985
7021
|
if (text.charCodeAt(i + 2) === CharacterCodes.u && text.charCodeAt(i + 3) === CharacterCodes.o && text.charCodeAt(i + 4) === CharacterCodes.t && text.charCodeAt(i + 5) === CharacterCodes.semicolon) {
|
|
6986
7022
|
newText = newText + text.substring(startOfSubstr, i) + '"';
|
|
@@ -6988,6 +7024,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6988
7024
|
startOfSubstr = i + 1;
|
|
6989
7025
|
}
|
|
6990
7026
|
break;
|
|
7027
|
+
//&n
|
|
6991
7028
|
case CharacterCodes.n:
|
|
6992
7029
|
if (text.charCodeAt(i + 2) === CharacterCodes.b && text.charCodeAt(i + 3) === CharacterCodes.s && text.charCodeAt(i + 4) === CharacterCodes.p && text.charCodeAt(i + 5) === CharacterCodes.semicolon) {
|
|
6993
7030
|
newText = newText + text.substring(startOfSubstr, i) + " ";
|
|
@@ -7188,16 +7225,13 @@ function wrapWithFragment(wrappedChildren) {
|
|
|
7188
7225
|
};
|
|
7189
7226
|
}
|
|
7190
7227
|
function getAttributes(node) {
|
|
7191
|
-
|
|
7192
|
-
return ((_b = (_a = node.children) == null ? void 0 : _a.find((c) => c.kind === SyntaxKind.AttributeListNode)) == null ? void 0 : _b.children) ?? [];
|
|
7228
|
+
return node.children?.find((c) => c.kind === SyntaxKind.AttributeListNode)?.children ?? [];
|
|
7193
7229
|
}
|
|
7194
7230
|
function getChildNodes(node) {
|
|
7195
|
-
|
|
7196
|
-
return ((_b = (_a = node.children) == null ? void 0 : _a.find((c) => c.kind === SyntaxKind.ContentListNode)) == null ? void 0 : _b.children) ?? [];
|
|
7231
|
+
return node.children?.find((c) => c.kind === SyntaxKind.ContentListNode)?.children ?? [];
|
|
7197
7232
|
}
|
|
7198
7233
|
function withNewChildNodes(node, newChildren) {
|
|
7199
|
-
|
|
7200
|
-
const childrenListIdx = (_a = node.children) == null ? void 0 : _a.findIndex((c) => c.kind === SyntaxKind.ContentListNode);
|
|
7234
|
+
const childrenListIdx = node.children?.findIndex((c) => c.kind === SyntaxKind.ContentListNode);
|
|
7201
7235
|
if (childrenListIdx === void 0 || childrenListIdx === -1) {
|
|
7202
7236
|
return node;
|
|
7203
7237
|
}
|
|
@@ -7215,9 +7249,8 @@ function withNewChildNodes(node, newChildren) {
|
|
|
7215
7249
|
]);
|
|
7216
7250
|
}
|
|
7217
7251
|
function desugarKeyOnlyAttrs(attrs) {
|
|
7218
|
-
var _a;
|
|
7219
7252
|
for (let attr of attrs) {
|
|
7220
|
-
if (
|
|
7253
|
+
if (attr.children?.length === 1) {
|
|
7221
7254
|
const eq = {
|
|
7222
7255
|
kind: SyntaxKind.Equal
|
|
7223
7256
|
};
|