├── .github └── workflows │ └── tests.yml ├── .gitignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── .vscodeignore ├── CHANGELOG.md ├── LICENSE.txt ├── README.md ├── build-test.ts ├── build.ts ├── languagetools-subtree.sh ├── module_shims ├── chokidar.ts ├── coffeescript.ts ├── fast-glob.ts ├── fs.ts ├── less.ts ├── lodash.ts ├── os.ts ├── path.ts ├── postcss-load-config.ts ├── pug.ts ├── stream.ts ├── stylus.ts ├── sugarss.ts ├── url.ts └── util.ts ├── package-lock.json ├── package.json ├── publish.sh ├── src └── web │ ├── extension.ts │ ├── preshim.ts │ ├── prettier_fixed.ts │ ├── server.ts │ ├── shim_globals.ts │ └── test │ └── suite │ ├── extension.test.ts │ └── index.ts ├── static ├── logo.png ├── preview-right-dark.svg └── preview-right-light.svg ├── test ├── CompA.svelte ├── CompB.svelte ├── Unformatted.svelte ├── tsconfig.json └── tsmod.ts ├── tsconfig.json └── vendored ├── langauge-tools ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ ├── feature_request.md │ │ └── something-else.md │ └── workflows │ │ ├── CI.yml │ │ ├── Deploy.yml │ │ ├── DeployExtensionsProd.yml │ │ ├── DeploySvelte2tsxProd.yml │ │ ├── DeploySvelteCheckProd.yml │ │ ├── DeploySvelteLanguageServerProd.yml │ │ └── DeployTypescriptPluginProd.yaml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode │ ├── launch.json │ ├── settings.json │ └── tasks.json ├── LICENSE ├── README.md ├── docs │ ├── README.md │ ├── internal │ │ ├── deployment.md │ │ └── overview.md │ └── preprocessors │ │ ├── in-general.md │ │ ├── other-css-preprocessors.md │ │ ├── scss-less.md │ │ └── typescript.md ├── package.json ├── packages │ ├── language-server │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── bin │ │ │ └── server.js │ │ ├── package.json │ │ ├── scripts │ │ │ └── .eslintrc.js │ │ ├── src │ │ │ ├── importPackage.ts │ │ │ ├── index.ts │ │ │ ├── lib │ │ │ │ ├── DiagnosticsManager.ts │ │ │ │ ├── FallbackWatcher.ts │ │ │ │ ├── documents │ │ │ │ │ ├── Document.ts │ │ │ │ │ ├── DocumentBase.ts │ │ │ │ │ ├── DocumentManager.ts │ │ │ │ │ ├── DocumentMapper.ts │ │ │ │ │ ├── configLoader.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── parseHtml.ts │ │ │ │ │ └── utils.ts │ │ │ │ └── semanticToken │ │ │ │ │ └── semanticTokenLegend.ts │ │ │ ├── logger.ts │ │ │ ├── ls-config.ts │ │ │ ├── plugins │ │ │ │ ├── PluginHost.ts │ │ │ │ ├── css │ │ │ │ │ ├── CSSDocument.ts │ │ │ │ │ ├── CSSPlugin.ts │ │ │ │ │ ├── StyleAttributeDocument.ts │ │ │ │ │ ├── features │ │ │ │ │ │ ├── getIdClassCompletion.ts │ │ │ │ │ │ └── svelte-selectors.ts │ │ │ │ │ ├── global-vars.ts │ │ │ │ │ └── service.ts │ │ │ │ ├── html │ │ │ │ │ ├── HTMLPlugin.ts │ │ │ │ │ └── dataProvider.ts │ │ │ │ ├── index.ts │ │ │ │ ├── interfaces.ts │ │ │ │ ├── svelte │ │ │ │ │ ├── SvelteDocument.ts │ │ │ │ │ ├── SveltePlugin.ts │ │ │ │ │ └── features │ │ │ │ │ │ ├── SvelteTags.ts │ │ │ │ │ │ ├── getCodeActions │ │ │ │ │ │ ├── getQuickfixes.ts │ │ │ │ │ │ ├── getRefactorings.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── getCompletions.ts │ │ │ │ │ │ ├── getDiagnostics.ts │ │ │ │ │ │ ├── getHoverInfo.ts │ │ │ │ │ │ ├── getModifierData.ts │ │ │ │ │ │ ├── getSelectionRanges.ts │ │ │ │ │ │ └── utils.ts │ │ │ │ └── typescript │ │ │ │ │ ├── ComponentInfoProvider.ts │ │ │ │ │ ├── DocumentMapper.ts │ │ │ │ │ ├── DocumentSnapshot.ts │ │ │ │ │ ├── LSAndTSDocResolver.ts │ │ │ │ │ ├── SnapshotManager.ts │ │ │ │ │ ├── TypeScriptPlugin.ts │ │ │ │ │ ├── features │ │ │ │ │ ├── CodeActionsProvider.ts │ │ │ │ │ ├── CompletionProvider.ts │ │ │ │ │ ├── DiagnosticsProvider.ts │ │ │ │ │ ├── FindReferencesProvider.ts │ │ │ │ │ ├── HoverProvider.ts │ │ │ │ │ ├── RenameProvider.ts │ │ │ │ │ ├── SelectionRangeProvider.ts │ │ │ │ │ ├── SemanticTokensProvider.ts │ │ │ │ │ ├── SignatureHelpProvider.ts │ │ │ │ │ ├── UpdateImportsProvider.ts │ │ │ │ │ ├── getDirectiveCommentCompletions.ts │ │ │ │ │ ├── getJsDocTemplateCompletion.ts │ │ │ │ │ └── utils.ts │ │ │ │ │ ├── module-loader.ts │ │ │ │ │ ├── previewer.ts │ │ │ │ │ ├── service.ts │ │ │ │ │ ├── svelte-sys.ts │ │ │ │ │ └── utils.ts │ │ │ ├── server.ts │ │ │ ├── svelte-check.ts │ │ │ └── utils.ts │ │ ├── test │ │ │ ├── .eslintrc.js │ │ │ ├── lib │ │ │ │ └── documents │ │ │ │ │ ├── Document.test.ts │ │ │ │ │ ├── DocumentManager.test.ts │ │ │ │ │ ├── DocumentMapper.test.ts │ │ │ │ │ ├── configLoader.test.ts │ │ │ │ │ ├── parseHtml.test.ts │ │ │ │ │ └── utils.test.ts │ │ │ ├── plugins │ │ │ │ ├── PluginHost.test.ts │ │ │ │ ├── css │ │ │ │ │ ├── CSSPlugin.test.ts │ │ │ │ │ └── features │ │ │ │ │ │ └── getIdClassCompletion.test.ts │ │ │ │ ├── html │ │ │ │ │ └── HTMLPlugin.test.ts │ │ │ │ ├── svelte │ │ │ │ │ ├── SvelteDocument.test.ts │ │ │ │ │ ├── SveltePlugin.test.ts │ │ │ │ │ ├── features │ │ │ │ │ │ ├── getCodeAction.test.ts │ │ │ │ │ │ ├── getCompletions.test.ts │ │ │ │ │ │ ├── getDiagnostics.test.ts │ │ │ │ │ │ ├── getHoverInfo.test.ts │ │ │ │ │ │ └── getSelectionRange.test.ts │ │ │ │ │ └── testfiles │ │ │ │ │ │ ├── diagnostics-module-and-instance.svelte │ │ │ │ │ │ ├── diagnostics-module.svelte │ │ │ │ │ │ ├── diagnostics.svelte │ │ │ │ │ │ ├── svelte-ignore-code-action-ts.svelte │ │ │ │ │ │ ├── svelte-ignore-code-action.svelte │ │ │ │ │ │ └── tsconfig.json │ │ │ │ └── typescript │ │ │ │ │ ├── TypescriptPlugin.test.ts │ │ │ │ │ ├── features │ │ │ │ │ ├── CodeActionsProvider.test.ts │ │ │ │ │ ├── CompletionProvider.test.ts │ │ │ │ │ ├── DiagnosticsProvider.test.ts │ │ │ │ │ ├── FindReferencesProvider.test.ts │ │ │ │ │ ├── HoverProvider.test.ts │ │ │ │ │ ├── RenameProvider.test.ts │ │ │ │ │ ├── SelectionRangeProvider.test.ts │ │ │ │ │ ├── SemanticTokensProvider.test.ts │ │ │ │ │ ├── SignatureHelpProvider.test.ts │ │ │ │ │ ├── UpdateImportsProvider.test.ts │ │ │ │ │ ├── getDirectiveCommentCompletions.test.ts │ │ │ │ │ └── preferences.test.ts │ │ │ │ │ ├── module-loader.test.ts │ │ │ │ │ ├── svelte-sys.test.ts │ │ │ │ │ ├── testfiles │ │ │ │ │ ├── code-actions │ │ │ │ │ │ ├── codeaction-checkJs.svelte │ │ │ │ │ │ ├── codeactions.svelte │ │ │ │ │ │ ├── organize-imports-module-store.svelte │ │ │ │ │ │ ├── organize-imports-unchanged1.svelte │ │ │ │ │ │ ├── organize-imports-unchanged2.svelte │ │ │ │ │ │ └── organize-imports-with-module.svelte │ │ │ │ │ ├── completions │ │ │ │ │ │ ├── ComponentDef.ts │ │ │ │ │ │ ├── UpperCase │ │ │ │ │ │ │ ├── dirCasing.svelte │ │ │ │ │ │ │ └── toImport.ts │ │ │ │ │ │ ├── completions-auto-optional-chain.svelte │ │ │ │ │ │ ├── completions-in-reactive-statement.svelte │ │ │ │ │ │ ├── completions.svelte │ │ │ │ │ │ ├── completionsstyle.svelte │ │ │ │ │ │ ├── component-events-completion-ts-def.svelte │ │ │ │ │ │ ├── component-events-completion.svelte │ │ │ │ │ │ ├── component-events-event-dispatcher.svelte │ │ │ │ │ │ ├── component-events-interface.svelte │ │ │ │ │ │ ├── importcompletions-2nd-import.svelte │ │ │ │ │ │ ├── importcompletions.svelte │ │ │ │ │ │ ├── importcompletions1.svelte │ │ │ │ │ │ ├── importcompletions2.svelte │ │ │ │ │ │ ├── importcompletions3.svelte │ │ │ │ │ │ ├── importcompletions4.svelte │ │ │ │ │ │ ├── importcompletions5.svelte │ │ │ │ │ │ ├── importcompletions6.svelte │ │ │ │ │ │ ├── importcompletions7.svelte │ │ │ │ │ │ ├── importcompletions8.svelte │ │ │ │ │ │ ├── importcompletions9.svelte │ │ │ │ │ │ ├── importstatementcompletions.svelte │ │ │ │ │ │ ├── jsdoc-completions.svelte │ │ │ │ │ │ ├── mustache.svelte │ │ │ │ │ │ ├── string-completion.svelte │ │ │ │ │ │ ├── to-import.ts │ │ │ │ │ │ ├── toImport.json │ │ │ │ │ │ └── ts-directive-comment.svelte │ │ │ │ │ ├── definitions.svelte │ │ │ │ │ ├── definitions.ts │ │ │ │ │ ├── diagnostics │ │ │ │ │ │ ├── $$events.svelte │ │ │ │ │ │ ├── $$generic-unused.svelte │ │ │ │ │ │ ├── $$props-invalid1.svelte │ │ │ │ │ │ ├── $$props-invalid2.svelte │ │ │ │ │ │ ├── $$props-invalid3.svelte │ │ │ │ │ │ ├── $$props-valid.svelte │ │ │ │ │ │ ├── $$slots.svelte │ │ │ │ │ │ ├── bind-to-$store.svelte │ │ │ │ │ │ ├── checkJs-no-strict │ │ │ │ │ │ │ ├── props_importer-js.svelte │ │ │ │ │ │ │ ├── props_importer-ts.svelte │ │ │ │ │ │ │ └── tsconfig.json │ │ │ │ │ │ ├── checkJs │ │ │ │ │ │ │ ├── props_importer-js.svelte │ │ │ │ │ │ │ ├── props_importer-ts.svelte │ │ │ │ │ │ │ └── tsconfig.json │ │ │ │ │ │ ├── diagnostics-$$events.svelte │ │ │ │ │ │ ├── diagnostics-$store-control-flow.svelte │ │ │ │ │ │ ├── diagnostics-$store.svelte │ │ │ │ │ │ ├── diagnostics-bind-this.svelte │ │ │ │ │ │ ├── diagnostics-coffeescript.svelte │ │ │ │ │ │ ├── diagnostics-directive-types.svelte │ │ │ │ │ │ ├── diagnostics-each.svelte │ │ │ │ │ │ ├── diagnostics-falsepositives.svelte │ │ │ │ │ │ ├── diagnostics-generics.svelte │ │ │ │ │ │ ├── diagnostics-if-control-flow-imported.svelte │ │ │ │ │ │ ├── diagnostics-if-control-flow-shadowed.svelte │ │ │ │ │ │ ├── diagnostics-if-control-flow.svelte │ │ │ │ │ │ ├── diagnostics-ignore-generated-imported.svelte │ │ │ │ │ │ ├── diagnostics-ignore-generated.svelte │ │ │ │ │ │ ├── diagnostics-intrinsic.svelte │ │ │ │ │ │ ├── diagnostics-js-notypecheck.svelte │ │ │ │ │ │ ├── diagnostics-js-typecheck.svelte │ │ │ │ │ │ ├── diagnostics-module.svelte │ │ │ │ │ │ ├── diagnostics-parsererror.svelte │ │ │ │ │ │ ├── diagnostics-pug.svelte │ │ │ │ │ │ ├── diagnostics-slots-imported.svelte │ │ │ │ │ │ ├── diagnostics-slots.svelte │ │ │ │ │ │ ├── diagnostics-strictEvents.svelte │ │ │ │ │ │ ├── diagnostics-tag.svelte │ │ │ │ │ │ ├── diagnostics.svelte │ │ │ │ │ │ ├── different-ts-service.svelte │ │ │ │ │ │ ├── different-ts-service │ │ │ │ │ │ │ ├── different-ts-service.svelte │ │ │ │ │ │ │ └── tsconfig.json │ │ │ │ │ │ ├── generics.svelte │ │ │ │ │ │ ├── props_to-import-js.svelte │ │ │ │ │ │ ├── props_to-import-ts.svelte │ │ │ │ │ │ ├── shared-comp.svelte │ │ │ │ │ │ ├── shared-ts-file.ts │ │ │ │ │ │ ├── strictEvents.svelte │ │ │ │ │ │ ├── tsconfig.json │ │ │ │ │ │ ├── unresolvedimport.svelte │ │ │ │ │ │ ├── untyped-js.svelte │ │ │ │ │ │ ├── using-$$props.svelte │ │ │ │ │ │ ├── using-$$slots.svelte │ │ │ │ │ │ ├── using-untyped-js.svelte │ │ │ │ │ │ └── with-svelte-config │ │ │ │ │ │ │ ├── acceesors │ │ │ │ │ │ │ ├── accessors-and-option.svelte │ │ │ │ │ │ │ ├── accessors.svelte │ │ │ │ │ │ │ └── svelte.config.js │ │ │ │ │ │ │ ├── accessors-consumer.svelte │ │ │ │ │ │ │ └── customElement │ │ │ │ │ │ │ ├── customElement.svelte │ │ │ │ │ │ │ └── svelte.config.js │ │ │ │ │ ├── documentation.svelte │ │ │ │ │ ├── documentation.ts │ │ │ │ │ ├── documentsymbols.svelte │ │ │ │ │ ├── empty.svelte │ │ │ │ │ ├── find-references-$store.svelte │ │ │ │ │ ├── find-references-ignore-generated.svelte │ │ │ │ │ ├── find-references.svelte │ │ │ │ │ ├── hover │ │ │ │ │ │ ├── hover-$store.svelte │ │ │ │ │ │ ├── hover-events-interface.svelte │ │ │ │ │ │ └── hoverinfo.svelte │ │ │ │ │ ├── imported-file.svelte │ │ │ │ │ ├── performance.svelte │ │ │ │ │ ├── preferences │ │ │ │ │ │ ├── code-action.svelte │ │ │ │ │ │ ├── definition │ │ │ │ │ │ │ └── index.ts │ │ │ │ │ │ ├── imports.svelte │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── tsconfig.json │ │ │ │ │ ├── rename │ │ │ │ │ │ ├── rename-ignore-generated.svelte │ │ │ │ │ │ ├── rename-prop-with-slot-events.svelte │ │ │ │ │ │ ├── rename-shorthand.svelte │ │ │ │ │ │ ├── rename-slot-events-importer.svelte │ │ │ │ │ │ ├── rename.svelte │ │ │ │ │ │ ├── rename2.svelte │ │ │ │ │ │ ├── rename3.svelte │ │ │ │ │ │ ├── rename4.svelte │ │ │ │ │ │ ├── rename5.svelte │ │ │ │ │ │ └── rename6.svelte │ │ │ │ │ ├── selection-range │ │ │ │ │ │ └── selection-range.svelte │ │ │ │ │ ├── semantic-tokens │ │ │ │ │ │ ├── imported.svelte │ │ │ │ │ │ ├── jsToken.svelte │ │ │ │ │ │ └── tokens.svelte │ │ │ │ │ ├── signature-help │ │ │ │ │ │ └── signature-help.svelte │ │ │ │ │ ├── svelte-native │ │ │ │ │ │ ├── svelte-native.svelte │ │ │ │ │ │ └── tsconfig.json │ │ │ │ │ ├── tsconfig.json │ │ │ │ │ └── updateimports.svelte │ │ │ │ │ ├── typescript-performance.test.ts │ │ │ │ │ └── utils.test.ts │ │ │ └── utils.test.ts │ │ ├── tsconfig.json │ │ └── wallaby.js │ ├── svelte-check │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── bin │ │ │ └── svelte-check │ │ ├── package.json │ │ ├── rollup.config.js │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── options.ts │ │ │ └── writers.ts │ │ ├── test │ │ │ ├── Index.svelte │ │ │ └── tsconfig.json │ │ └── tsconfig.json │ ├── svelte-vscode │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .vscode │ │ │ └── launch.json │ │ ├── .vscodeignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── icons │ │ │ ├── logo-nightly.png │ │ │ ├── logo.png │ │ │ ├── preview-right-dark.svg │ │ │ └── preview-right-light.svg │ │ ├── language-configuration.json │ │ ├── package-json-schema.json │ │ ├── package.json │ │ ├── prettier-options-schema.json │ │ ├── scripts │ │ │ └── .eslintrc.js │ │ ├── src │ │ │ ├── CompiledCodeContentProvider.ts │ │ │ ├── extension.ts │ │ │ ├── html │ │ │ │ ├── autoClose.ts │ │ │ │ └── htmlEmptyTagsShared.ts │ │ │ ├── tsplugin.ts │ │ │ └── utils.ts │ │ ├── syntaxes │ │ │ ├── README.md │ │ │ ├── markdown-svelte.json │ │ │ ├── postcss.src.yaml │ │ │ ├── pug-svelte-dotblock.json │ │ │ ├── pug-svelte-tags.json │ │ │ ├── pug-svelte.json │ │ │ └── svelte.tmLanguage.src.yaml │ │ └── tsconfig.json │ ├── svelte2tsx │ │ ├── .editorconfig │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.d.ts │ │ ├── package.json │ │ ├── repl │ │ │ ├── debug.ts │ │ │ └── index.svelte │ │ ├── rollup.config.js │ │ ├── src │ │ │ ├── emitDts.ts │ │ │ ├── estree.d.ts │ │ │ ├── htmlxtojsx │ │ │ │ ├── index.ts │ │ │ │ ├── nodes │ │ │ │ │ ├── action-directive.ts │ │ │ │ │ ├── animation-directive.ts │ │ │ │ │ ├── attribute.ts │ │ │ │ │ ├── await.ts │ │ │ │ │ ├── binding.ts │ │ │ │ │ ├── class-directive.ts │ │ │ │ │ ├── comment.ts │ │ │ │ │ ├── component.ts │ │ │ │ │ ├── debug.ts │ │ │ │ │ ├── each.ts │ │ │ │ │ ├── element.ts │ │ │ │ │ ├── event-handler.ts │ │ │ │ │ ├── if-else.ts │ │ │ │ │ ├── if-scope.ts │ │ │ │ │ ├── key.ts │ │ │ │ │ ├── raw-html.ts │ │ │ │ │ ├── slot.ts │ │ │ │ │ ├── svelte-tag.ts │ │ │ │ │ ├── template-scope.ts │ │ │ │ │ ├── text.ts │ │ │ │ │ └── transition-directive.ts │ │ │ │ ├── svgattributes.ts │ │ │ │ └── utils │ │ │ │ │ └── node-utils.ts │ │ │ ├── index.ts │ │ │ ├── interfaces.ts │ │ │ ├── svelte2tsx │ │ │ │ ├── addComponentExport.ts │ │ │ │ ├── createRenderFunction.ts │ │ │ │ ├── index.ts │ │ │ │ ├── knownevents.ts │ │ │ │ ├── nodes │ │ │ │ │ ├── ComponentDocumentation.ts │ │ │ │ │ ├── ComponentEvents.ts │ │ │ │ │ ├── ExportedNames.ts │ │ │ │ │ ├── Generics.ts │ │ │ │ │ ├── ImplicitStoreValues.ts │ │ │ │ │ ├── ImplicitTopLevelNames.ts │ │ │ │ │ ├── Scripts.ts │ │ │ │ │ ├── Stores.ts │ │ │ │ │ ├── TemplateScope.ts │ │ │ │ │ ├── event-handler.ts │ │ │ │ │ ├── handleScopeAndResolveForSlot.ts │ │ │ │ │ ├── handleTypeAssertion.ts │ │ │ │ │ └── slot.ts │ │ │ │ ├── processInstanceScriptContent.ts │ │ │ │ ├── processModuleScriptTag.ts │ │ │ │ └── utils │ │ │ │ │ ├── Scope.ts │ │ │ │ │ ├── error.ts │ │ │ │ │ └── tsAst.ts │ │ │ └── utils │ │ │ │ ├── htmlxparser.ts │ │ │ │ ├── ignore.ts │ │ │ │ ├── magic-string.ts │ │ │ │ └── svelteAst.ts │ │ ├── svelte-jsx.d.ts │ │ ├── svelte-native-jsx.d.ts │ │ ├── svelte-shims.d.ts │ │ ├── test │ │ │ ├── build.ts │ │ │ ├── emitDts │ │ │ │ ├── index.ts │ │ │ │ └── samples │ │ │ │ │ ├── javascript-libRoot │ │ │ │ │ ├── config.json │ │ │ │ │ ├── expected │ │ │ │ │ │ ├── Test.svelte.d.ts │ │ │ │ │ │ └── index.d.ts │ │ │ │ │ ├── jsconfig.json │ │ │ │ │ └── src │ │ │ │ │ │ ├── Test2.svelte │ │ │ │ │ │ └── lib │ │ │ │ │ │ ├── Test.svelte │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── javascript │ │ │ │ │ ├── expected │ │ │ │ │ │ ├── Test.svelte.d.ts │ │ │ │ │ │ ├── Test2.svelte.d.ts │ │ │ │ │ │ ├── TestNoScript.svelte.d.ts │ │ │ │ │ │ ├── TestNoTypes.svelte.d.ts │ │ │ │ │ │ └── index.d.ts │ │ │ │ │ ├── jsconfig.json │ │ │ │ │ └── src │ │ │ │ │ │ ├── Test.svelte │ │ │ │ │ │ ├── Test2.svelte │ │ │ │ │ │ ├── TestNoScript.svelte │ │ │ │ │ │ ├── TestNoTypes.svelte │ │ │ │ │ │ ├── foo.d.ts │ │ │ │ │ │ └── index.js │ │ │ │ │ └── typescript │ │ │ │ │ ├── expected │ │ │ │ │ ├── Interfaces.svelte.d.ts │ │ │ │ │ ├── Test.svelte.d.ts │ │ │ │ │ ├── Test2.svelte.d.ts │ │ │ │ │ └── index.d.ts │ │ │ │ │ ├── src │ │ │ │ │ ├── Interfaces.svelte │ │ │ │ │ ├── Test.svelte │ │ │ │ │ ├── Test2.svelte │ │ │ │ │ ├── foo.d.ts │ │ │ │ │ └── index.ts │ │ │ │ │ └── tsconfig.json │ │ │ ├── helpers.ts │ │ │ ├── htmlx2jsx │ │ │ │ ├── index.ts │ │ │ │ └── samples │ │ │ │ │ ├── action-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── action-nested │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── action-params │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── action-svelte-body │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── animation-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── animation-params │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-element │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-foreign-ns │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-invalid-jsx-name │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-multiple │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-nullish-coalescing │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-number │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-optional-chaining │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-quoted │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-shorthand │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attribute-text │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── auto-closing-tag │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-basic-catch │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-basic │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-destruct-array │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-destruct-default │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-destruct-object │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-destruct-rest │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-no-then │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-parentheses │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-pending-catch │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-block-pending │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-group-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-group │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-oneway │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-this-component │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-this-svelte-body │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-this-svelte-component │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-this-svelte-self │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-this │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── blocks-without-whitespace-inbetween │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── class-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── class-parentheses │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── class │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── comment │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── comments-around-if │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-default-slot-empty │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-default-slot-let-destructure │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-default-slot-let │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-default-slot │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-multi-slot │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-named-slot │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-no-slots │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-infer-props │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-shadowed-prop │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── custom-css-properties │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── debug-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── directive-quoted │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── doctype │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-basic-sequence │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-basic │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-index │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-key-else │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-key │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-nullish-coalescing │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── each-block-optional-chaining │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── editing-mustache │ │ │ │ │ ├── expected.error.json │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── element-only │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── empty-source │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-component-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-component-infer-props │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-component │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-modifiers │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-quoted │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler-svelte-component │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-handler │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── expression-nullish-coalescing-optional-chaining │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── html-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-comma-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-else-block-nested │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-else-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-else-if-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-else-if-nullish-coalescing │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-else-if-optional-chaining │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-nested-await-block-shadowed │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-nested-await-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-nested-each-block-shadowed │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-nested-each-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-nested-slot-let-shadowed │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── if-nested-slot-let │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── key-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── namespaced-attributes │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── nested-if-else-if-and-each-block │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── quotes-inside-quotes │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── sapper-noscroll │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── sapper-prefetch │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── script-with-src │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── simple-expression │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── svelte-fragment │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── sveltekit-anchor-attrs │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── svg-attributes │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── tokens-not-allowed-in-jsx │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── transition-animate-fallbacks │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── transition-bare │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── transition-modifiers │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── transition-params │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ │ │ └── void-elements │ │ │ │ │ ├── expected.jsx │ │ │ │ │ └── input.svelte │ │ │ ├── htmlxparser │ │ │ │ └── index.ts │ │ │ ├── sourcemaps │ │ │ │ ├── composer.ts │ │ │ │ ├── helpers.ts │ │ │ │ ├── index.ts │ │ │ │ ├── parser.ts │ │ │ │ ├── process.ts │ │ │ │ ├── readme.md │ │ │ │ └── samples │ │ │ │ │ ├── action-directive │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── await-block │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── component-props │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── each-block │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── element-attributes │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── event-binding │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── if-block │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── import-equal │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── large-sample-1 │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── let │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── property-shorthand │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── reactive-statements │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── reserved-variables │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ ├── simple-element │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ │ │ └── slots │ │ │ │ │ ├── input.svelte │ │ │ │ │ ├── mappings.jsx │ │ │ │ │ └── test.jsx │ │ │ ├── svelte2tsx │ │ │ │ ├── index.ts │ │ │ │ ├── samples │ │ │ │ │ ├── $store-as-directive │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── $store-assign │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── $store-index │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── $store-inside-block-without-braces │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── $store-no-instance-only-module-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── accessors-config-attr-false │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── accessors-config │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── array-binding-export │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ast-offset-none │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ast-offset-some │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── attributes-foreign-ns │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── await-with-$store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-assignment-$store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── binding-group-store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── circle-drawer-example │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── commented-out-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-default-slot │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-events-interface-constant │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-events-interface-dispatcher │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-events-interface-string-literals │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-events-interface │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-events-strictEvents │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-events-type │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-multiple-slots │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-$$slot-interface │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-$$slot-type │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-crazy-attributes │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-forward-with-props │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-inside-await │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-inside-each │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-let-forward-named-slot │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-let-forward │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-nest-scope │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-no-space │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-object-key │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-slot-var-shadowing │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-with-documentation │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-with-indented-multiline-documentation │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── component-with-multiline-documentation │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── creates-dts │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── creates-no-script-dts │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── custom-css-properties-with-$store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── debug-block │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── editing-mustache │ │ │ │ │ │ ├── expected.error.json │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-and-forwarded-event │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-bubble-component-multi │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-bubble-component-with-props │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-bubble-component │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-bubble-element │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-bubble-svelte-element │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-dispatcher-events-alias │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-dispatcher-events │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── event-dispatchers │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── export-class │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── export-doc │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── export-js-required-props │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── export-list │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── export-references-local │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── export-with-default-multi │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── filename-is-invalid-identifier │ │ │ │ │ │ ├── 1_a[slug]Test-upper--upper3asd4.svelte │ │ │ │ │ │ └── expected.tsx │ │ │ │ │ ├── filename-is-invalid-identifiers-only │ │ │ │ │ │ ├── 0.svelte │ │ │ │ │ │ └── expected.tsx │ │ │ │ │ ├── import-equal │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── import-single-quote │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── imports │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── module-script-and-script-in-line │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── module-script-and-script-in-line2 │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── module-script-and-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── module-script-and-script2 │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── nested-$-variables-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── nested-$-variables-template │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── object-binding-export │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-$store-destructuring │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-assignment-type-cast │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-block │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-break-$ │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-declare-destructuring │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-declare-express-starts-with-object │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-declare-object │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-declare-same-name-as-import │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-declare │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-statements-store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── reactive-store-set │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── renamed-exports │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── script-and-module-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── script-inside-head-after-toplevel-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── script-on-bottom │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── script-style-like-component │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── self-closing-component │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── single-element │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── single-export │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── slot-bind-this │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── store-destructuring │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── store-from-module │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── store-from-reactive-assignment │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── store-import │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── store-property-access │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── stores-mustache │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── style-after-selfclosing-iframe │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── style-attribute-bare │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── style-attribute │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── style │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── transforms-interfaces-dts │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-$$Props-interface │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-$$Props-type │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-$$generics-dts │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-$$generics │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-creates-dts │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-event-dispatcher-typed │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-event-dispatchers-same-event │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-event-dispatchers │ │ │ │ │ │ ├── expected.js │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-arrow-function │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-boolean │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-const │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-doc-typedef │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-doc │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-has-initializer │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-has-type │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-interface │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-list │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-export-required-props │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-multiple-export │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-style-and-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-type-assertion │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-typed-export-with-default │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── ts-uses-$$props │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── typeof-$store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$$props-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$$props │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$$restProps-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$$restProps │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$$slots-script │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$$slots │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$property │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$store-in-event-binding │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$store-multiple-variable-declaration │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$store-with-assignment-operators │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$store-with-increments │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$store-with-unary-operators │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-$store │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-accessors-attr-not-present │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-accessors-attr-present │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-accessors-mustachetag-false │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-accessors-mustachetag-true │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-accessors-no-svelte-options │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ ├── uses-svelte-components-let-forward │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ │ └── uses-svelte-components │ │ │ │ │ │ ├── expected.tsx │ │ │ │ │ │ └── input.svelte │ │ │ │ └── tsconfig.json │ │ │ ├── test.ts │ │ │ └── tsconfig.json │ │ └── tsconfig.json │ └── typescript-plugin │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── internal.md │ │ ├── package.json │ │ ├── src │ │ ├── index.ts │ │ ├── language-service │ │ │ ├── completions.ts │ │ │ ├── definition.ts │ │ │ ├── diagnostics.ts │ │ │ ├── find-references.ts │ │ │ ├── implementation.ts │ │ │ ├── index.ts │ │ │ └── rename.ts │ │ ├── logger.ts │ │ ├── module-loader.ts │ │ ├── source-mapper.ts │ │ ├── svelte-snapshots.ts │ │ ├── svelte-sys.ts │ │ └── utils.ts │ │ └── tsconfig.json ├── tsconfig.json └── yarn.lock └── tsvfs.ts /.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | dist 3 | tmp.* 4 | node_modules 5 | .vscode-test-web/ 6 | *.vsix 7 | *.swp -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "dbaeumer.vscode-eslint", 6 | "eamodio.tsl-problem-matcher" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "out": false // set this to true to hide the "out" folder with the compiled JS files 5 | }, 6 | "search.exclude": { 7 | "out": true // set this to false to include "out" folder in search results 8 | }, 9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts 10 | "typescript.tsc.autoDetect": "off" 11 | } -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test-web/** 3 | src/** 4 | out/** 5 | vendored/** 6 | module_shims/** 7 | test/** 8 | tmp* 9 | *.vsix 10 | build.ts 11 | node_modules/** 12 | .gitignore 13 | vsc-extension-quickstart.md 14 | webpack.config.js 15 | .yarnrc 16 | **/tsconfig.json 17 | **/.eslintrc.json 18 | **/*.map 19 | # **/*.ts 20 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | 4 | 5 | ## [0.3.2] 6 | - merged latest language tools (Nov 6. 2021, v0.14.11) 7 | - e2e tests 8 | 9 | ## [0.2.1] 10 | - goto defenition/declartion - fix in vscode.dev vfs 11 | 12 | ## [0.2.0] 13 | - tsconfig lib support - project base 'tsconfig.json' should now be parsed and matching lib decalation files added 14 | - goto defenition/declartion 15 | 16 | ## [0.1.0] 17 | - typescript virtual filesystem and module resultion -------------------------------------------------------------------------------- /languagetools-subtree.sh: -------------------------------------------------------------------------------- 1 | # inital was 2 | # git subtree add --prefix vendored/langauge-tools https://github.com/sveltejs/language-tools.git master --squash 3 | git subtree pull --prefix vendored/langauge-tools https://github.com/sveltejs/language-tools.git master --squash 4 | 5 | 6 | -------------------------------------------------------------------------------- /module_shims/chokidar.ts: -------------------------------------------------------------------------------- 1 | export const watch = (...args:any[]) => { 2 | return {addListener:(...args:any[])=>{}} 3 | }; 4 | export class FSWatcher{ 5 | 6 | } -------------------------------------------------------------------------------- /module_shims/coffeescript.ts: -------------------------------------------------------------------------------- 1 | export default {} -------------------------------------------------------------------------------- /module_shims/fast-glob.ts: -------------------------------------------------------------------------------- 1 | const sync = (...args)=>[] 2 | 3 | exports = { 4 | sync 5 | } -------------------------------------------------------------------------------- /module_shims/less.ts: -------------------------------------------------------------------------------- 1 | export default {} -------------------------------------------------------------------------------- /module_shims/lodash.ts: -------------------------------------------------------------------------------- 1 | export * from "lodash-es" -------------------------------------------------------------------------------- /module_shims/os.ts: -------------------------------------------------------------------------------- 1 | // import { platform } from "os"; 2 | 3 | export const EOL = "\n"; 4 | export function platform() { 5 | return "browser"; 6 | } 7 | -------------------------------------------------------------------------------- /module_shims/path.ts: -------------------------------------------------------------------------------- 1 | export { 2 | default, 3 | posix, 4 | basename, 5 | delimiter, 6 | dirname, 7 | extname, 8 | format, 9 | isAbsolute, 10 | join, 11 | normalize, 12 | parse, 13 | relative, 14 | resolve, 15 | sep, 16 | _makeLong, 17 | win32, 18 | } from "path-browserify"; 19 | -------------------------------------------------------------------------------- /module_shims/postcss-load-config.ts: -------------------------------------------------------------------------------- 1 | export default {} -------------------------------------------------------------------------------- /module_shims/pug.ts: -------------------------------------------------------------------------------- 1 | export default {} -------------------------------------------------------------------------------- /module_shims/stream.ts: -------------------------------------------------------------------------------- 1 | exports = require("stream-browserify") -------------------------------------------------------------------------------- /module_shims/stylus.ts: -------------------------------------------------------------------------------- 1 | export default {} -------------------------------------------------------------------------------- /module_shims/sugarss.ts: -------------------------------------------------------------------------------- 1 | export default {} -------------------------------------------------------------------------------- /module_shims/url.ts: -------------------------------------------------------------------------------- 1 | 2 | const pathToFileURL =(surl:string) =>{ 3 | return new URL(surl, 'file:') 4 | } 5 | 6 | exports = { 7 | URL, 8 | pathToFileURL 9 | } -------------------------------------------------------------------------------- /module_shims/util.ts: -------------------------------------------------------------------------------- 1 | 2 | exports ={ 3 | TextDecoder 4 | } -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | npm install 5 | rm -rf dist 6 | npm run compile 7 | npm run test:full-headless 8 | 9 | rm -rf dist 10 | npm run compile 11 | newver=$(npm version patch -m "[ci skip] %s") 12 | git push 13 | git push origin --tags 14 | 15 | vsce publish -------------------------------------------------------------------------------- /static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/static/logo.png -------------------------------------------------------------------------------- /test/CompA.svelte: -------------------------------------------------------------------------------- 1 | 6 | this is comp {myname} 7 | 8 | it inlcudes 9 |
10 | 11 | 12 | an import: {moduleExport} 13 |
14 | 15 | -------------------------------------------------------------------------------- /test/CompB.svelte: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | this is comp {myname} 11 | param {paramNum} -------------------------------------------------------------------------------- /test/Unformatted.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 | this is comp {myname} 11 | param {paramNum} 12 | 13 | -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["DOM", "ES2015"], 4 | "target": "ES2015", 5 | "module": "ES2015" 6 | } 7 | } -------------------------------------------------------------------------------- /test/tsmod.ts: -------------------------------------------------------------------------------- 1 | export const PI_REAL = 3.1 -------------------------------------------------------------------------------- /vendored/langauge-tools/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | indent_style = space 7 | indent_size = 4 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | 11 | [package.json] 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/.eslintignore: -------------------------------------------------------------------------------- 1 | **/dist/* 2 | node_modules 3 | packages/svelte2tsx/test/**/* 4 | packages/svelte2tsx/index.* 5 | declare module '*.svelte' 6 | packages/svelte2tsx/svelte-shims.d.ts 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /vendored/langauge-tools/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | open_collective: svelte 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/.github/ISSUE_TEMPLATE/something-else.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Something else 3 | about: Anything that doesn't fit into the other issue categories 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": false, 3 | "printWidth": 100, 4 | "tabWidth": 4, 5 | "semi": true, 6 | "trailingComma": "none", 7 | "singleQuote": true 8 | } 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "typescript.preferences.quoteStyle": "single" 3 | } 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | .vscode/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /src 3 | /test 4 | /dist/test 5 | wallaby.js 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | See https://github.com/sveltejs/language-tools/releases 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/bin/server.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | 3 | // eslint-disable-next-line @typescript-eslint/no-var-requires 4 | const { startServer } = require('../dist/src/server'); 5 | 6 | startServer(); 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/scripts/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: false, 3 | rules: { 4 | '@typescript-eslint/no-var-requires': 'off' 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './server'; 2 | export { offsetAt } from './lib/documents'; 3 | export { SvelteCheck, SvelteCheckOptions, SvelteCheckDiagnosticSource } from './svelte-check'; 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/src/lib/documents/index.ts: -------------------------------------------------------------------------------- 1 | export * from './DocumentManager'; 2 | export * from './Document'; 3 | export * from './DocumentBase'; 4 | export * from './DocumentMapper'; 5 | export * from './utils'; 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/src/logger.ts: -------------------------------------------------------------------------------- 1 | export class Logger { 2 | private static logErrorsOnly = false; 3 | static setLogErrorsOnly(logErrorsOnly: boolean) { 4 | Logger.logErrorsOnly = logErrorsOnly; 5 | } 6 | 7 | static log(...args: any) { 8 | if (!Logger.logErrorsOnly) { 9 | console.log(...args); 10 | } 11 | } 12 | 13 | static error(...args: any) { 14 | console.error(...args); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/src/plugins/index.ts: -------------------------------------------------------------------------------- 1 | export * from './css/CSSPlugin'; 2 | export * from './typescript/TypeScriptPlugin'; 3 | export * from './typescript/LSAndTSDocResolver'; 4 | export * from './svelte/SveltePlugin'; 5 | export * from './html/HTMLPlugin'; 6 | export * from './PluginHost'; 7 | export * from './interfaces'; 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: false, 3 | rules: { 4 | '@typescript-eslint/no-non-null-assertion': 'off' 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/svelte/testfiles/diagnostics-module-and-instance.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/svelte/testfiles/diagnostics-module.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/svelte/testfiles/diagnostics.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/svelte/testfiles/svelte-ignore-code-action-ts.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | {#if true} 11 | 12 | 13 | about 16 | {/if} 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/svelte/testfiles/svelte-ignore-code-action.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | {#if true} 4 | 5 | 6 | about 9 | {/if} 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/svelte/testfiles/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | /** 5 | This is actually not needed, but makes the tests faster 6 | because TS does not look up other types. 7 | */ 8 | "types": ["svelte"] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/code-actions/codeaction-checkJs.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/code-actions/codeactions.svelte: -------------------------------------------------------------------------------- 1 | 12 | {abc()} 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/code-actions/organize-imports-module-store.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 |

{$_('test')}

12 |

{$_d('test')}

13 |

{$_e('test')}

14 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/code-actions/organize-imports-unchanged1.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {c} 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/code-actions/organize-imports-unchanged2.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | {c}{d} 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/code-actions/organize-imports-with-module.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | 11 | {c} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/UpperCase/dirCasing.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/UpperCase/toImport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/UpperCase/toImport.ts -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/completions-auto-optional-chain.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/completions.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/completionsstyle.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/component-events-completion-ts-def.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/component-events-completion.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/component-events-event-dispatcher.svelte: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/component-events-interface.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions-2nd-import.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions1.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions2.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions3.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions4.svelte: -------------------------------------------------------------------------------- 1 | 3 | 2 | import ImportedFile from '../imported-file.svelte'; 3 | 4 | 2 | 3 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions8.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importcompletions9.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/importstatementcompletions.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/jsdoc-completions.svelte: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/mustache.svelte: -------------------------------------------------------------------------------- 1 | 5 | {a?.} 6 | {b.} 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/string-completion.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/to-import.ts: -------------------------------------------------------------------------------- 1 | export class ScndImport {} 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/toImport.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/completions/ts-directive-comment.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | //@ 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/definitions.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 | {$store} 15 | {#if $store} 16 | {/if} 17 | {$blubb} 18 | {#if $blubb} 19 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/definitions.ts: -------------------------------------------------------------------------------- 1 | export function blubb() { 2 | return true; 3 | } 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/$$generic-unused.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/$$props-invalid1.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/$$props-invalid2.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/$$props-invalid3.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/$$props-valid.svelte: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/checkJs-no-strict/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "checkJs": true, 4 | /** 5 | This is actually not needed, but makes the tests faster 6 | because TS does not look up other types. 7 | */ 8 | "types": ["svelte"] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/checkJs/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | "checkJs": true, 5 | /** 6 | This is actually not needed, but makes the tests faster 7 | because TS does not look up other types. 8 | */ 9 | "types": ["svelte"] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-$$events.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | e} on:foo={e => e.detail === 'bar'} /> 7 | 8 | e} on:foo={e => e.detail === true} /> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-$store.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | 12 | {$store} 13 | {#if $store} 14 | {/if} 15 | 16 | {$noStoreModule} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-directive-types.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 | 12 | 13 |

14 | 15 |

16 | 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-falsepositives.svelte: -------------------------------------------------------------------------------- 1 | 6 |

7 | {bla} 8 | {noUsedBeforeDeclare} 9 | {anotherUsed} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-if-control-flow-imported.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-ignore-generated-imported.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-intrinsic.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-js-notypecheck.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-js-typecheck.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-module.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-parsererror.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-pug.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-slots-imported.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | {prop} 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-strictEvents.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | e} on:click={e => e} /> 7 | 8 | e} /> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics-tag.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/diagnostics.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/different-ts-service.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/different-ts-service/different-ts-service.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/different-ts-service/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /** 4 | This is actually not needed, but makes the tests faster 5 | because TS does not look up other types. 6 | */ 7 | "types": ["svelte"] 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/props_to-import-js.svelte: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/props_to-import-ts.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/shared-comp.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/shared-ts-file.ts: -------------------------------------------------------------------------------- 1 | export function ba() {} 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/strictEvents.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | /** 5 | This is actually not needed, but makes the tests faster 6 | because TS does not look up other types. 7 | */ 8 | "types": ["svelte"] 9 | }, 10 | "exclude": ["different-ts-service/**"] 11 | } 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/unresolvedimport.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/untyped-js.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/using-untyped-js.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | {untyped.worksBecauseAny} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/with-svelte-config/acceesors/accessors-and-option.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/with-svelte-config/acceesors/accessors.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/with-svelte-config/acceesors/svelte.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | /** 3 | * @type {import('svelte/types/compiler/interfaces').CompileOptions} 4 | */ 5 | compilerOptions: { 6 | accessors: true 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/with-svelte-config/customElement/customElement.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/diagnostics/with-svelte-config/customElement/svelte.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | /** 3 | * @type {import('svelte/types/compiler/interfaces').CompileOptions} 4 | */ 5 | compilerOptions: { 6 | customElement: true 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/documentation.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/documentation.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * bars 3 | * @author John 4 | */ 5 | export function foo() { return false; } 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/documentsymbols.svelte: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/empty.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/empty.svelte -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/find-references-$store.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | {$findMe} 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/find-references-ignore-generated.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {#if a} 7 | {#await promise} 8 | {#if typeof a === 'string'} 9 | {promise} 10 | {/if} 11 | {/await} 12 | {/if} 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/find-references.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/hover/hover-$store.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | {$b} 12 | {#if typeof $b === 'string'} 13 | {$b} 14 | {/if} 15 | {b} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/hover/hover-events-interface.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/hover/hoverinfo.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/imported-file.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/preferences/code-action.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/preferences/definition/index.ts: -------------------------------------------------------------------------------- 1 | export function definition() {} 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/preferences/imports.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/preferences/index.ts: -------------------------------------------------------------------------------- 1 | import { definition } from './definition'; 2 | definition(); 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/preferences/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | /** 5 | This is actually not needed, but makes the tests faster 6 | because TS does not look up other types. 7 | */ 8 | "types": ["svelte"], 9 | 10 | "baseUrl": ".", 11 | "paths": { 12 | "~/*": ["./*"] 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename-ignore-generated.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {#if a} 7 | {#await promise} 8 | {#if typeof a === 'string'} 9 | {promise} 10 | {/if} 11 | {/await} 12 | {/if} 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename-prop-with-slot-events.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename-shorthand.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename-slot-events-importer.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | e} let:aSlot>{aSlot} 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {innerProp} 7 | {#if innerProp} 8 | {/if} 9 | {#await innerProp then x}{x} 10 | {/await} 11 | {#each innerProp as prop} 12 | {/each} 13 |

14 | 15 | {exportedProp} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename2.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 |
9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename3.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename4.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 |
8 | 9 | 10 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename5.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | {$store} 8 | {#if $store} 9 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/rename/rename6.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/selection-range/selection-range.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/semantic-tokens/imported.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/semantic-tokens/jsToken.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/svelte-native/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "jsxFactory": "svelteNative", 4 | /** 5 | This is actually not needed, but makes the tests faster 6 | because TS does not look up other types. 7 | */ 8 | "types": ["svelte"] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/test/plugins/typescript/testfiles/updateimports.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node12/tsconfig.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node", 5 | "strict": true, 6 | "declaration": true, 7 | "outDir": "dist", 8 | "esModuleInterop": true, 9 | "sourceMap": true, 10 | "composite": true, 11 | "skipLibCheck": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/language-server/wallaby.js: -------------------------------------------------------------------------------- 1 | module.exports = function (_w) { 2 | return { 3 | files: ['src/**/*.ts'], 4 | tests: ['test/**/*.ts'], 5 | env: { 6 | type: 'node' 7 | } 8 | }; 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | .vscode/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /src 3 | /test 4 | tsconfig.json 5 | rollup.config.js 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | See https://github.com/sveltejs/language-tools/releases 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/bin/svelte-check: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../dist/src/index.js'); 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/test/Index.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {a} 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node12/tsconfig.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node", 5 | "strict": true, 6 | "allowJs": true, 7 | "checkJs": true 8 | }, 9 | "files": ["./Index.svelte"] 10 | } 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-check/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node12/tsconfig.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node", 5 | "strict": true, 6 | "esModuleInterop": true 7 | }, 8 | "include": ["src/**/*"] 9 | } 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | rules: { 3 | 'import/no-unresolved': [2, { ignore: ['vscode'] }] 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/.gitignore: -------------------------------------------------------------------------------- 1 | /dist 2 | /node_modules 3 | /syntaxes/svelte.tmLanguage.json 4 | /syntaxes/postcss.json 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/.vscodeignore: -------------------------------------------------------------------------------- 1 | **/tsconfig.json 2 | /src 3 | /scripts 4 | /.vscode 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | See https://github.com/sveltejs/language-tools/releases 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/icons/logo-nightly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/vendored/langauge-tools/packages/svelte-vscode/icons/logo-nightly.png -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/icons/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/vendored/langauge-tools/packages/svelte-vscode/icons/logo.png -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/package-json-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema", 3 | "properties": { 4 | "prettier": { 5 | "description": "Prettier-Plugin-Svelte configuration", 6 | "$ref": "./prettier-options-schema.json" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/scripts/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: false, 3 | rules: { 4 | '@typescript-eslint/no-var-requires': 'off' 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/src/utils.ts: -------------------------------------------------------------------------------- 1 | export function atob(encoded: string) { 2 | const buffer = Buffer.from(encoded, 'base64'); 3 | return buffer.toString('utf8'); 4 | } 5 | 6 | export function btoa(decoded: string) { 7 | const buffer = Buffer.from(decoded, 'utf8'); 8 | return buffer.toString('base64'); 9 | } 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte-vscode/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node12/tsconfig.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node", 5 | "strict": true, 6 | "declaration": true, 7 | "outDir": "dist", 8 | "sourceMap": true, 9 | "composite": true 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/.editorconfig: -------------------------------------------------------------------------------- 1 | [test/**/*.{tsx,jsx,html}] 2 | trim_trailing_whitespace = false 3 | [test/**/*.html] 4 | insert_final_newline = false 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | rules: { 3 | 'import/no-unresolved': [2, { ignore: ['estree'] }] 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /index.js 4 | /index.js.map 5 | /index.mjs 6 | test/typecheck/samples/**/input.svelte.tsx 7 | test/sourcemaps/samples/*/output.tsx 8 | test/sourcemaps/samples/*/test.edit.jsx 9 | repl/output 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | See https://github.com/sveltejs/language-tools/releases 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/repl/index.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | {#if value} 6 | 7 | {/if} 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/src/htmlxtojsx/nodes/comment.ts: -------------------------------------------------------------------------------- 1 | import MagicString from 'magic-string'; 2 | import { BaseNode } from '../../interfaces'; 3 | 4 | /** 5 | * Removes comment 6 | */ 7 | export function handleComment(str: MagicString, node: BaseNode): void { 8 | str.overwrite(node.start, node.end, '', { contentOnly: true }); 9 | } 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/src/htmlxtojsx/nodes/raw-html.ts: -------------------------------------------------------------------------------- 1 | import MagicString from 'magic-string'; 2 | import { BaseNode } from '../../interfaces'; 3 | 4 | /** 5 | * {@html ...} ---> {...} 6 | */ 7 | export function handleRawHtml(htmlx: string, str: MagicString, rawBlock: BaseNode): void { 8 | const tokenStart = htmlx.indexOf('@html', rawBlock.start); 9 | str.remove(tokenStart, tokenStart + '@html'.length); 10 | } 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/src/index.ts: -------------------------------------------------------------------------------- 1 | export { svelte2tsx } from './svelte2tsx'; 2 | export { emitDts } from './emitDts'; 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/src/utils/ignore.ts: -------------------------------------------------------------------------------- 1 | export const IGNORE_START_COMMENT = '/*Ωignore_startΩ*/'; 2 | export const IGNORE_END_COMMENT = '/*Ωignore_endΩ*/'; 3 | 4 | /** 5 | * Surrounds given string with a start/end comment which marks it 6 | * to be ignored by tooling. 7 | */ 8 | export function surroundWithIgnoreComments(str: string): string { 9 | return IGNORE_START_COMMENT + str + IGNORE_END_COMMENT; 10 | } 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/build.ts: -------------------------------------------------------------------------------- 1 | export { svelte2tsx } from '../src/svelte2tsx'; 2 | export { htmlx2jsx } from '../src/htmlxtojsx'; 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript-libRoot/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "libRoot": "src/lib" 3 | } 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript-libRoot/expected/index.d.ts: -------------------------------------------------------------------------------- 1 | export { default as Test } from "./Test.svelte"; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript-libRoot/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "checkJs": true 4 | }, 5 | "include": ["./src/**/*.d.ts", "./src/**/*.js", "./src/**/*.ts", "./src/**/*.svelte"] 6 | } 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript-libRoot/src/Test2.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript-libRoot/src/lib/Test.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript-libRoot/src/lib/index.js: -------------------------------------------------------------------------------- 1 | export { default as Test } from './Test.svelte'; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/expected/index.d.ts: -------------------------------------------------------------------------------- 1 | export { default as Test } from "./Test.svelte"; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "checkJs": true 4 | }, 5 | "include": ["./src/**/*.d.ts", "./src/**/*.js", "./src/**/*.ts", "./src/**/*.svelte"] 6 | } 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/src/Test.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/src/Test2.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/src/TestNoScript.svelte: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/src/TestNoTypes.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/src/foo.d.ts: -------------------------------------------------------------------------------- 1 | export type Foo = boolean; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/javascript/src/index.js: -------------------------------------------------------------------------------- 1 | export { default as Test } from './Test.svelte'; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/typescript/expected/index.d.ts: -------------------------------------------------------------------------------- 1 | export { default as Test } from './Test.svelte'; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/typescript/src/Interfaces.svelte: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/typescript/src/Test.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/typescript/src/Test2.svelte: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/typescript/src/foo.d.ts: -------------------------------------------------------------------------------- 1 | export type Foo = boolean; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/emitDts/samples/typescript/src/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Test } from './Test.svelte'; 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/index.ts: -------------------------------------------------------------------------------- 1 | import { htmlx2jsx } from '../build'; 2 | import { test_samples } from '../helpers'; 3 | 4 | describe('htmlx2jsx', () => { 5 | test_samples( 6 | __dirname, 7 | (input, { emitOnTemplateError, preserveAttributeCase }) => { 8 | return htmlx2jsx(input, { emitOnTemplateError, preserveAttributeCase }); 9 | }, 10 | 'jsx' 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-bare/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-nested/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |

5 | 6 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-params/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 |

Hello

3 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-params/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 |

Hello

3 |

Hello

4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-svelte-body/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/action-svelte-body/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/animation-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/animation-bare/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/animation-params/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 |

Hello

3 |

Hello

4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-bare/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-element/expected.jsx: -------------------------------------------------------------------------------- 1 | <>
2 |
3 |
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-element/input.svelte: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-foreign-ns/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-foreign-ns/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-invalid-jsx-name/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-invalid-jsx-name/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-multiple/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-multiple/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-nullish-coalescing/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-nullish-coalescing/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-number/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-number/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-optional-chaining/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-optional-chaining/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-quoted/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-quoted/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-shorthand/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-shorthand/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-text/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/attribute-text/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/auto-closing-tag/expected.jsx: -------------------------------------------------------------------------------- 1 | <>
2 |

test1 3 |

test2 4 |

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/auto-closing-tag/input.svelte: -------------------------------------------------------------------------------- 1 |
2 |

test1 3 |

test2 4 |

5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-basic-catch/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (somePromise); __sveltets_1_awaitThen(_$$p, (value) => {<> 2 |

Promise Resolved

3 | }, () => {<> 4 |

Promise Errored

5 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-basic-catch/input.svelte: -------------------------------------------------------------------------------- 1 | {#await somePromise then value} 2 |

Promise Resolved

3 | {:catch} 4 |

Promise Errored

5 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-basic/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (somePromise); __sveltets_1_awaitThen(_$$p, (value) => {<> 2 |

Promise Resolved

3 | })}} 4 | 5 | {() => {let _$$p = (somePromise); <> 6 |

Loading...

7 | ; __sveltets_1_awaitThen(_$$p, () => {<> 8 |

Promise Resolved

9 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-basic/input.svelte: -------------------------------------------------------------------------------- 1 | {#await somePromise then value} 2 |

Promise Resolved

3 | {/await} 4 | 5 | {#await somePromise} 6 |

Loading...

7 | {:then} 8 |

Promise Resolved

9 | {/await} 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-destruct-array/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (thePromise); <> 2 | loading 3 | ; __sveltets_1_awaitThen(_$$p, ([ a, b ]) => {<> 4 | then 5 | }, ([c, [d, e]]) => {<> 6 | catch 7 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-destruct-array/input.svelte: -------------------------------------------------------------------------------- 1 | {#await thePromise} 2 | loading 3 | {:then [ a, b ]} 4 | then 5 | {:catch [c, [d, e]]} 6 | catch 7 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-destruct-default/input.svelte: -------------------------------------------------------------------------------- 1 | {#await object then { a = 3, b = 4, c }} 2 | then 3 | {/await} 4 | 5 | {#await array then [a, b, c = 3]} 6 | then 7 | {/await} 8 | 9 | {#await objectReject then value} 10 | then 11 | {:catch { a = 3, b = 4, c }} 12 | catch 13 | {/await} 14 | 15 | {#await arrayReject then value} 16 | then 17 | {:catch [a, b, c = 3]} 18 | catch 19 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-destruct-object/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (thePromise); <> 2 | loading 3 | ; __sveltets_1_awaitThen(_$$p, ({ result, error }) => {<> 4 | then 5 | }, ({ error: { message, code } }) => {<> 6 | catch 7 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-destruct-object/input.svelte: -------------------------------------------------------------------------------- 1 | {#await thePromise} 2 | loading 3 | {:then { result, error }} 4 | then 5 | {:catch { error: { message, code } }} 6 | catch 7 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-destruct-rest/input.svelte: -------------------------------------------------------------------------------- 1 | {#await object then { a, ...rest }} 2 | then 3 | {/await} 4 | 5 | {#await array then [a, b, ...rest]} 6 | then 7 | {/await} 8 | 9 | {#await objectReject then value} 10 | then 11 | {:catch { a, ...rest }} 12 | catch 13 | {/await} 14 | 15 | {#await arrayReject then value} 16 | then 17 | {:catch [a, b, ...rest]} 18 | catch 19 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-no-then/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (aPromise); <> 2 |
Spinner...
3 | ; __sveltets_1_awaitThen(_$$p, () => {<>})}} 4 | 5 | {() => {let _$$p = (aPromise); <> 6 |
Spinner...
7 | ; __sveltets_1_awaitThen(_$$p, () => {<>}, (error) => {<> 8 |
Ups: {error}
9 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-no-then/input.svelte: -------------------------------------------------------------------------------- 1 | {#await aPromise} 2 |
Spinner...
3 | {/await} 4 | 5 | {#await aPromise} 6 |
Spinner...
7 | {:catch error} 8 |
Ups: {error}
9 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-parentheses/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (somePromise); __sveltets_1_awaitThen(_$$p, (value) => {<> 2 |

Promise Resolved

3 | })}} 4 | 5 | {() => {let _$$p = (somePromise); <> 6 |

Loading...

7 | ; __sveltets_1_awaitThen(_$$p, () => {<> 8 |

Promise Resolved

9 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-parentheses/input.svelte: -------------------------------------------------------------------------------- 1 | {#await (somePromise) then value} 2 |

Promise Resolved

3 | {/await} 4 | 5 | {#await (somePromise)} 6 |

Loading...

7 | {:then} 8 |

Promise Resolved

9 | {/await} 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-pending-catch/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (somePromise); <> 2 |

Promise Pending

3 | ; __sveltets_1_awaitThen(_$$p, (value) => {<> 4 |

Promise Resolved {value}

5 | }, (error) => {<> 6 |

Promise Errored {error}

7 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-pending-catch/input.svelte: -------------------------------------------------------------------------------- 1 | {#await somePromise} 2 |

Promise Pending

3 | {:then value} 4 |

Promise Resolved {value}

5 | {:catch error} 6 |

Promise Errored {error}

7 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-pending/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => {let _$$p = (somePromise); <> 2 |

Promise Pending

3 | ; __sveltets_1_awaitThen(_$$p, (value) => {<> 4 |

Promise Resolved {value}

5 | })}} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/await-block-pending/input.svelte: -------------------------------------------------------------------------------- 1 | {#await somePromise} 2 |

Promise Pending

3 | {:then value} 4 |

Promise Resolved {value}

5 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-bare/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-group-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-group-bare/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-group/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-group/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-oneway/input.svelte: -------------------------------------------------------------------------------- 1 |
7 | 8 | 17 | 18 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-component/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-component/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-svelte-body/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-svelte-body/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-svelte-component/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-svelte-component/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-svelte-self/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(false) ? <> 2 | 3 | : <>} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this-svelte-self/input.svelte: -------------------------------------------------------------------------------- 1 | {#if false} 2 | 3 | {/if} 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding-this/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | 3 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/binding/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/blocks-without-whitespace-inbetween/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(name == "world") ? <>! : <>}{__sveltets_1_each(x, (y) => <>!)}{() => {let _$$p = (x); __sveltets_1_awaitThen(_$$p, (y) => {<>!})}}{(bla) ? <>* : <>} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/blocks-without-whitespace-inbetween/input.svelte: -------------------------------------------------------------------------------- 1 | {#if name == "world"}!{/if}{#each x as y}!{/each}{#await x then y}!{/await}{#if bla}*{/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/class-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/class-bare/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/class-parentheses/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/class-parentheses/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/class/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/class/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 |

Hello

3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/comment/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/comment/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/comments-around-if/expected.jsx: -------------------------------------------------------------------------------- 1 | <>
{(true) ? <>Hey! : (!true) ? <>there... : <> }
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/comments-around-if/input.svelte: -------------------------------------------------------------------------------- 1 |
{#if true}Hey!{:else if !true}there...{/if}
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot-empty/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot-empty/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot-let-destructure/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => { let {thing:{ a }} = /*Ωignore_startΩ*/new Component({target: __sveltets_1_any(''), props: {}})/*Ωignore_endΩ*/.$$slot_def['default'];<> 2 |

Hello { a }

3 | }}
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot-let-destructure/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |

Hello { a }

3 |
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot-let/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{() => { let {name:n, thing} = /*Ωignore_startΩ*/new Component({target: __sveltets_1_any(''), props: {}})/*Ωignore_endΩ*/.$$slot_def['default'];<> 2 |

Hello {thing} {n}

3 | }}
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot-let/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |

Hello {thing} {n}

3 |
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 |

Hello

3 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-default-slot/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |

Hello

3 |
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-named-slot/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | {foo} {baz} {bla} 4 | 5 | 6 | {blubb} 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-no-slots/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-no-slots/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/component-slot-infer-props/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | {foo} {bar} 4 | 5 |
6 | {foo} 7 |
8 |
9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/custom-css-properties/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/custom-css-properties/input.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/debug-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{myfile} 2 | {myfile}{someOtherFile} 3 | {myfile}{someOtherFile}{someThirdFile} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/debug-block/input.svelte: -------------------------------------------------------------------------------- 1 | {@debug myfile} 2 | {@debug myfile , someOtherFile } 3 | {@debug myfile, someOtherFile, someThirdFile } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/directive-quoted/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/doctype/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | 3 |

Svelte

4 | 5 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/doctype/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Svelte

5 | 6 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-basic-sequence/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each((true, items), (item) => <> 2 |
{item}
3 | )} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-basic-sequence/input.svelte: -------------------------------------------------------------------------------- 1 | {#each true, items as item} 2 |
{item}
3 | {/each} 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-basic/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each(items, (item) => <> 2 |
{item}
3 | )} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-basic/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item} 2 |
{item}
3 | {/each} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-index/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each(items, (item,i) => <> 2 |
{item}{i}
3 | )} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-index/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item,i} 2 |
{item}{i}
3 | {/each} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-key-else/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each(items, (item,i) => (item.id) && <> 2 |
{item}{i}
3 | )} 4 |
No Items
5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-key-else/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item,i (item.id)} 2 |
{item}{i}
3 | {:else} 4 |
No Items
5 | {/each} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-key/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each(items, (item,i) => (item.id) && <> 2 |
{item}{i}
3 | )} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-key/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item,i (item.id)} 2 |
{item}{i}
3 | {/each} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-nullish-coalescing/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each(items ?? [], (item) => <> 2 |
{item}
3 | )} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-nullish-coalescing/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items ?? [] as item} 2 |
{item}
3 | {/each} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-optional-chaining/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_each(someObject?.items, (item) => <> 2 |
{item}
3 | )} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/each-block-optional-chaining/input.svelte: -------------------------------------------------------------------------------- 1 | {#each someObject?.items as item} 2 |
{item}
3 | {/each} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/editing-mustache/expected.error.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ParseError", 3 | "code": "parse-error", 4 | "start": { 5 | "line": 1, 6 | "column": 8, 7 | "character": 8 8 | }, 9 | "end": { 10 | "line": 1, 11 | "column": 8, 12 | "character": 8 13 | }, 14 | "pos": 8, 15 | "frame": "1: {abc. }\n ^\n2: {abc?. }\n3: {abc ?}" 16 | } 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/editing-mustache/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{abc. } 2 | {abc?. } 3 | {abc ?} 4 | {a+} 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/editing-mustache/input.svelte: -------------------------------------------------------------------------------- 1 | {abc. } 2 | {abc?. } 3 | {abc ?} 4 | {a+} 5 | } 6 | }} 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/element-only/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/element-only/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/empty-source/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/empty-source/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-bare/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-component-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-component-bare/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-component-infer-props/input.svelte: -------------------------------------------------------------------------------- 1 | e} /> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-component/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{/*Ωignore_startΩ*/new Component({target: __sveltets_1_any(''), props: {}})/*Ωignore_endΩ*/.$on('event', () => click())}{/*Ωignore_startΩ*/new Component({target: __sveltets_1_any(''), props: {}})/*Ωignore_endΩ*/.$on('UpperCaseEvent', () => log('hi'))} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-component/input.svelte: -------------------------------------------------------------------------------- 1 | click()} on:UpperCaseEvent={() => log('hi')}/> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-modifiers/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-modifiers/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-quoted/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-quoted/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-svelte-component/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{__sveltets_1_instanceOf(__sveltets_1_componentType()).$on('submit', handleSubmit)} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler-svelte-component/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

console.log("click")} onUpperCaseEvent={() => log('hi')}>Hello

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/event-handler/input.svelte: -------------------------------------------------------------------------------- 1 |

console.log("click")} on:UpperCaseEvent={() => log('hi')}>Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/expression-nullish-coalescing-optional-chaining/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello {your?.name ?? 'Unknown'}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/expression-nullish-coalescing-optional-chaining/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello {your?.name ?? 'Unknown'}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/html-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{ myfile + someOtherFile } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/html-block/input.svelte: -------------------------------------------------------------------------------- 1 | {@html myfile + someOtherFile } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(name == "world") ? <> 2 |

Hello {name}

3 | : <>} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#if name == "world"} 2 |

Hello {name}

3 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-comma-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(true, false) ? <> 2 |

Hello {name}

3 | : <>} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-comma-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#if (true, false)} 2 |

Hello {name}

3 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(name == "world") ? <> 2 |

Hello {name}

3 | : <> 4 |

hello {name}

5 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#if name == "world"} 2 |

Hello {name}

3 | {:else} 4 |

hello {name}

5 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-if-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(name1 == "world") ? <> 2 |

Hello {name2}

3 | : (name3 == "person") ? <> 4 |

hello {name4}

5 | : <> } 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-if-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#if name1 == "world"} 2 |

Hello {name2}

3 | {:else if name3 == "person"} 4 |

hello {name4}

5 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-if-nullish-coalescing/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{((name1 ?? "bla") == "world") ? <> 2 |

Hello {name2}

3 | : (name3 ?? "blubb") ? <> 4 |

hello {name4}

5 | : <> } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-if-nullish-coalescing/input.svelte: -------------------------------------------------------------------------------- 1 | {#if (name1 ?? "bla") == "world"} 2 |

Hello {name2}

3 | {:else if name3 ?? "blubb"} 4 |

hello {name4}

5 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-if-optional-chaining/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(obj?.name1 == "world") ? <> 2 |

Hello {name2}

3 | : (obj?.name3 == "person") ? <> 4 |

hello {name4}

5 | : <> } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/if-else-if-optional-chaining/input.svelte: -------------------------------------------------------------------------------- 1 | {#if obj?.name1 == "world"} 2 |

Hello {name2}

3 | {:else if obj?.name3 == "person"} 4 |

hello {name4}

5 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/key-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{value} 2 |

hello

3 | 4 | {$store} 5 |

hello

6 | 7 | {expr.obj} 8 |

hello

9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/key-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#key value} 2 |

hello

3 | {/key} 4 | {#key $store} 5 |

hello

6 | {/key} 7 | {#key expr.obj} 8 |

hello

9 | {/key} 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/namespaced-attributes/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/namespaced-attributes/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/nested-if-else-if-and-each-block/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{(true) ? <> 2 | {(true) ? <> : (true) ? <> : <> } 3 | : <> 4 | {__sveltets_1_each([], (_) => /*Ωignore_startΩ*/(!(true)) && /*Ωignore_endΩ*/<>)} 5 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/nested-if-else-if-and-each-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#if true} 2 | {#if true}{:else if true}{/if} 3 | {:else} 4 | {#each [] as _}{/each} 5 | {/if} 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/quotes-inside-quotes/expected.jsx: -------------------------------------------------------------------------------- 1 | <>{/*Ωignore_startΩ*/new Component({target: __sveltets_1_any(''), props: {'placeholder':"'"}})/*Ωignore_endΩ*/.$on('keydown', () => {})} 2 | {/*Ωignore_startΩ*/new Component({target: __sveltets_1_any(''), props: {'placeholder':'"'}})/*Ωignore_endΩ*/.$on('keydown', () => {})} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/quotes-inside-quotes/input.svelte: -------------------------------------------------------------------------------- 1 | {}} /> 2 | {}} /> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sapper-noscroll/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sapper-noscroll/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sapper-prefetch/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sapper-prefetch/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/script-with-src/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/script-with-src/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/simple-expression/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello {name}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/simple-expression/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello {name}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sveltekit-anchor-attrs/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/sveltekit-anchor-attrs/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/svg-attributes/expected.jsx: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/svg-attributes/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/tokens-not-allowed-in-jsx/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/tokens-not-allowed-in-jsx/input.svelte: -------------------------------------------------------------------------------- 1 | }> 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/transition-bare/expected.jsx: -------------------------------------------------------------------------------- 1 | <>

Hello

2 |

Hello

3 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/transition-bare/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 |

Hello

3 |

Hello

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/transition-modifiers/expected.jsx: -------------------------------------------------------------------------------- 1 | <>
2 | {item} 3 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/transition-modifiers/input.svelte: -------------------------------------------------------------------------------- 1 |
2 | {item} 3 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/transition-params/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello

2 |

Hello

3 |

Hello

4 |

Hello

5 |

Hello

6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/void-elements/expected.jsx: -------------------------------------------------------------------------------- 1 | <> 2 | 3 |
4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/htmlx2jsx/samples/void-elements/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/action-directive/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 12 | 13 | 16 | 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/await-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#await promise then value} 2 | 3 | {/await} 4 | 5 | {#await promise} 6 | 7 | {:then} 8 | 9 | {/await} 10 | 11 | {#await $promise} 12 | 13 | {/await} 14 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/component-props/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/element-attributes/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 10 | 11 | 14 | 15 | 18 | 19 | 22 | 23 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/event-binding/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/if-block/input.svelte: -------------------------------------------------------------------------------- 1 | {#if foo} 2 | 3 | {/if} 4 | 5 | {#if $foo}{/if} 6 | 7 | {#if foo} 8 | 9 | {:else if bar} 10 | 11 | {:else} 12 | 13 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/import-equal/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/import-equal/test.jsx: -------------------------------------------------------------------------------- 1 | /** tested-ranges: [] */ 2 | /** origin-hash: 2qcima */ -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/let/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/property-shorthand/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/reactive-statements/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/reserved-variables/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | {#if $$slots.foo} 9 | {$$restProps.bar} 10 | 13 | {/if} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/simple-element/input.svelte: -------------------------------------------------------------------------------- 1 |

Hello World

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/sourcemaps/samples/slots/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | fallback 4 | 5 | fallback 6 | 7 | fallback 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/index.ts: -------------------------------------------------------------------------------- 1 | import { svelte2tsx } from '../build'; 2 | import { get_svelte2tsx_config, test_samples } from '../helpers'; 3 | 4 | describe('svelte2tsx', () => { 5 | test_samples( 6 | __dirname, 7 | (input, config) => { 8 | return svelte2tsx(input, get_svelte2tsx_config(config, config.sampleName)); 9 | }, 10 | 'tsx' 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/$store-as-directive/input.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 |
16 |
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/$store-index/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <>{someRecordOrArr[(__sveltets_1_store_get(store), $store)]} 4 | {someObject['$store']} 5 | {someObject.$store} 6 | return { props: {}, slots: {}, getters: {}, events: {} }} 7 | 8 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 9 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/$store-index/input.svelte: -------------------------------------------------------------------------------- 1 | {someRecordOrArr[$store]} 2 | {someObject['$store']} 3 | {someObject.$store} 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/$store-no-instance-only-module-script/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {$store1} 7 | {$store2} 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/accessors-config-attr-false/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/accessors-config/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/array-binding-export/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | let [a,b,c] = [1,2,3]; 5 | ; 6 | () => (<>); 7 | return { props: {a: a , b: b , c: c}, slots: {}, getters: {}, events: {} }} 8 | 9 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(['a','b','c'], __sveltets_1_with_any_event(render()))) { 10 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/array-binding-export/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ast-offset-none/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | ;(__sveltets_1_store_get(var), $var); 4 | () => (<>); 5 | return { props: {}, slots: {}, getters: {}, events: {} }} 6 | 7 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 8 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ast-offset-none/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ast-offset-some/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | ;(__sveltets_1_store_get(var), $var); 4 | () => (<>); 5 | return { props: {}, slots: {}, getters: {}, events: {} }} 6 | 7 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 8 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ast-offset-some/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/attributes-foreign-ns/input.svelte: -------------------------------------------------------------------------------- 1 | hello 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/await-with-$store/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {#await $store} 7 |

loading

8 | {:then data} 9 | {data} 10 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/binding-assignment-$store/input.svelte: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |
6 |
7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/binding-group-store/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/commented-out-script/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | // } // <- error here 5 | ; 6 | () => (<> 7 | 8 | ); 9 | return { props: {}, slots: {}, getters: {}, events: {} }} 10 | 11 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 12 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/commented-out-script/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-default-slot/input.svelte: -------------------------------------------------------------------------------- 1 | 4 |
5 | Hello 6 |
7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface-constant/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'a', type: 'boolean', doc: '\nSome doc\n' }, 6 | { name: 'b', type: 'string', doc: undefined }, 7 | { name: 'c', type: 'Event', doc: undefined } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface-constant/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface-dispatcher/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface-string-literals/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'a-b', type: 'boolean', doc: '\nSome doc\n' }, 6 | { name: 'b', type: 'string', doc: undefined }, 7 | { name: 'c', type: 'Event', doc: undefined } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface-string-literals/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'a', type: 'boolean', doc: '\nSome *doc*\n' }, 6 | { name: 'b', type: 'string', doc: undefined }, 7 | { name: 'c', type: 'Event', doc: undefined } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-interface/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-strictEvents/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-type/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'a', type: 'boolean', doc: '\nSome *doc*\n' }, 6 | { name: 'b', type: 'string', doc: undefined }, 7 | { name: 'c', type: 'Event', doc: undefined } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-events-type/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-multiple-slots/input.svelte: -------------------------------------------------------------------------------- 1 | 6 |
7 | Hello 8 | 9 | 10 |
11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-$$slot-interface/input.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | 16 |
17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-$$slot-type/input.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | 16 |
17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-crazy-attributes/input.svelte: -------------------------------------------------------------------------------- 1 | 4 |
5 | Hello 6 |
7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-forward-with-props/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-inside-await/input.svelte: -------------------------------------------------------------------------------- 1 | {#await promise then value} 2 | Hello 3 | {:catch err} 4 | Hello 5 | {/await} 6 | {#await promise2 then { b }} 7 | Hello 8 | {/await} 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-inside-each/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item} 2 | Hello 3 | {/each} 4 | {#each items2 as { a }} 5 | Hello 6 | {/each} 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-let-forward-named-slot/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 |
6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-let-forward/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-nest-scope/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item} 2 | {#each item as { a }} 3 | Hello 4 | {/each} 5 | 6 | {/each} 7 | { c } 8 | {#await promise then d} 9 | {d} 10 | {/await} 11 | 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-no-space/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
xx
-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-object-key/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as item} 2 | Hello 3 | {/each} 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-slot-var-shadowing/input.svelte: -------------------------------------------------------------------------------- 1 | {#each items as items} 2 | Hello 3 | {/each} 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-with-documentation/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 |
At least I am documented
4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-with-indented-multiline-documentation/input.svelte: -------------------------------------------------------------------------------- 1 | 15 | 16 |
At least I am documented
17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/component-with-multiline-documentation/input.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 |
At least I am documented
11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/creates-dts/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/creates-no-script-dts/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | {#await Promise.resolve(0) then n} 3 | {n} 4 | {/await} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/custom-css-properties-with-$store/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/debug-block/input.svelte: -------------------------------------------------------------------------------- 1 | {@debug myfile} 2 | {@debug $myfile , someOtherFile } 3 | {@debug myfile, $someOtherFile, someThirdFile } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/editing-mustache/expected.error.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ParseError", 3 | "code": "parse-error", 4 | "start": { 5 | "line": 1, 6 | "column": 4, 7 | "character": 4 8 | }, 9 | "end": { 10 | "line": 1, 11 | "column": 4, 12 | "character": 4 13 | }, 14 | "pos": 4, 15 | "frame": "1: {a?.}\n ^" 16 | } 17 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/editing-mustache/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <>{a?.} 4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/editing-mustache/input.svelte: -------------------------------------------------------------------------------- 1 | {a?.} 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-and-forwarded-event/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-component-multi/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-component-with-props/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-component/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-element/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <> 4 | return { props: {}, slots: {}, getters: {}, events: {'click':__sveltets_1_mapElementEvent('click')} }} 5 | 6 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-element/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-bubble-svelte-element/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-dispatcher-events-alias/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'btn', type: 'CustomEvent' }, 6 | { name: 'hi', type: 'CustomEvent' }, 7 | { name: 'bye', type: 'CustomEvent' } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-dispatcher-events-alias/input.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-dispatcher-events/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'btn', type: 'CustomEvent' }, 6 | { name: 'hi', type: 'CustomEvent' }, 7 | { name: 'bye', type: 'CustomEvent' } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-dispatcher-events/input.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-dispatchers/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'click', type: 'Event' }, 6 | { name: 'hi', type: 'CustomEvent' }, 7 | { name: 'bye', type: 'CustomEvent' } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/event-dispatchers/input.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/export-class/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/export-doc/input.svelte: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/export-js-required-props/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/export-references-local/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/export-with-default-multi/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/filename-is-invalid-identifier/1_a[slug]Test-upper--upper3asd4.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/filename-is-invalid-identifier/1_a[slug]Test-upper--upper3asd4.svelte -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/filename-is-invalid-identifier/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <> 4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class AslugTestUpperUpper3asd4__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/filename-is-invalid-identifiers-only/0.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asafamr/svelte-vscode-web/8b476153ad7c0dae868a6fdf24c2ea699be1ccad/vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/filename-is-invalid-identifiers-only/0.svelte -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/filename-is-invalid-identifiers-only/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <> 4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class A0__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/import-equal/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | import A; 5 | import C = require(''); 6 | ; 7 | () => (<>); 8 | return { props: {}, slots: {}, getters: {}, events: {} }} 9 | 10 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 11 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/import-equal/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/import-single-quote/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/imports/input.svelte: -------------------------------------------------------------------------------- 1 |

hello {world}

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script-in-line/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;let b = 5;;<>;function render() { 3 | let world = "name"; 4 | () => (<>

hello {world}

); 5 | return { props: {world: world}, slots: {}, getters: {}, events: {} }} 6 | 7 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(['world'], __sveltets_1_with_any_event(render()))) { 8 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script-in-line/input.svelte: -------------------------------------------------------------------------------- 1 |

hello {world}

2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script-in-line2/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;let b = 5;;<>;function render() { 3 | let world = "name"; 4 | () => (<>

hello {world}

); 5 | return { props: {world: world}, slots: {}, getters: {}, events: {} }} 6 | 7 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(['world'], __sveltets_1_with_any_event(render()))) { 8 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script-in-line2/input.svelte: -------------------------------------------------------------------------------- 1 |

hello {world}

2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 8 |

hello {world}

9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/module-script-and-script2/input.svelte: -------------------------------------------------------------------------------- 1 |

hello {world}

2 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/object-binding-export/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | let { name: rename } = { name: "world" }; 5 | ; 6 | () => (<>); 7 | return { props: {rename: rename}, slots: {}, getters: {}, events: {} }} 8 | 9 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(['rename'], __sveltets_1_with_any_event(render()))) { 10 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/object-binding-export/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-$store-destructuring/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-assignment-type-cast/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-block/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | let a: 1 | 2 = 1; 5 | ;() => {$: { 6 | console.log(a + 1); 7 | }} 8 | ; 9 | () => (<>); 10 | return { props: {}, slots: {}, getters: {}, events: {} }} 11 | 12 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 13 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-block/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-break-$/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | ;() => {$: { break $; }} 5 | ; 6 | () => (<>); 7 | return { props: {}, slots: {}, getters: {}, events: {} }} 8 | 9 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 10 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-break-$/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare-destructuring/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare-express-starts-with-object/input.svelte: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare-object/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | 5 | let b = __sveltets_1_invalidate(() => ({ a: 1 })); 6 | ; 7 | () => (<>); 8 | return { props: {}, slots: {}, getters: {}, events: {} }} 9 | 10 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 11 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare-object/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare-same-name-as-import/input.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-declare/input.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-statements-store/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/reactive-store-set/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/renamed-exports/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/script-and-module-script/input.svelte: -------------------------------------------------------------------------------- 1 | 5 |

hello {world}

6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/script-inside-head-after-toplevel-script/input.svelte: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 8 | 9 | 10 | 11 | 14 | 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/script-on-bottom/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | let world = "name" 5 | ; 6 | () => (<>

hello {world}

7 | ); 8 | return { props: {world: world}, slots: {}, getters: {}, events: {} }} 9 | 10 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(['world'], __sveltets_1_with_any_event(render()))) { 11 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/script-on-bottom/input.svelte: -------------------------------------------------------------------------------- 1 |

hello {world}

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/script-style-like-component/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/style-attribute-bare/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <> 4 | 5 | 6 | {true === true} 7 | return { props: {}, slots: {}, getters: {}, events: {} }} 8 | 9 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 10 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/style-attribute-bare/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | {true === true} 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/style-attribute/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <> 4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/style-attribute/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/style/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | <> 4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/style/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-$$generics-dts/input.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-$$generics/input.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-event-dispatcher-typed/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'hi', type: 'CustomEvent', doc: '\nA DOC\n' }, 6 | { name: 'bye', type: 'CustomEvent', doc: '\nANOTHER DOC\n' }, 7 | { name: 'btn', type: 'CustomEvent', doc: undefined } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-event-dispatchers-same-event/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'click', type: 'Event' }, 6 | { name: 'hi', type: 'CustomEvent' }, 7 | { name: 'bye', type: 'CustomEvent' } 8 | ]); 9 | }; 10 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-event-dispatchers/expected.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | 3 | module.exports = function ({ events }) { 4 | assert.deepEqual(events.getAll(), [ 5 | { name: 'click', type: 'Event' }, 6 | { name: 'hi', type: 'CustomEvent', doc: '\nA DOC\n' }, 7 | { name: 'btn', type: 'CustomEvent', doc: undefined }, 8 | { name: 'bye', type: 'CustomEvent' } 9 | ]); 10 | }; 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-arrow-function/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-boolean/input.svelte: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-const/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-doc-typedef/input.svelte: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-doc/input.svelte: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-has-initializer/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | let a = ''; 5 | ; 6 | () => (<>); 7 | return { props: {a: a} as {a?: typeof a}, slots: {}, getters: {}, events: {} }} 8 | 9 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_with_any_event(render())) { 10 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-has-initializer/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-has-type/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-interface/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>; 3 | export interface A {} 4 | ;<>;function render() { 5 | <> 6 | return { props: {}, slots: {}, getters: {}, events: {} }} 7 | 8 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_with_any_event(render())) { 9 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-interface/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-export-required-props/input.svelte: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-multiple-export/input.svelte: -------------------------------------------------------------------------------- 1 | 5 |

{number1} + {number2} = {number1 + number2}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-style-and-script/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { 3 | 4 | let foo:string; 5 | ; 6 | () => (<> 7 | ); 8 | return { props: {foo: foo} as {foo: string}, slots: {}, getters: {}, events: {} }} 9 | 10 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_with_any_event(render())) { 11 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-style-and-script/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-type-assertion/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-typed-export-with-default/input.svelte: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-uses-$$props/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { let $$props = __sveltets_1_allPropsType(); 3 | ; 4 | () => (<> 5 |

{$$props['name']}

); 6 | return { props: {}, slots: {}, getters: {}, events: {} }} 7 | 8 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_with_any(__sveltets_1_with_any_event(render()))) { 9 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/ts-uses-$$props/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |

{$$props['name']}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/typeof-$store/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$props-script/input.svelte: -------------------------------------------------------------------------------- 1 |

{name}

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$props/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { let $$props = __sveltets_1_allPropsType(); 3 | <>

{$$props['name']}

4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial_with_any(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$props/input.svelte: -------------------------------------------------------------------------------- 1 |

{$$props['name']}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$restProps-script/input.svelte: -------------------------------------------------------------------------------- 1 |

{name}

2 | 5 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$restProps/expected.tsx: -------------------------------------------------------------------------------- 1 | /// 2 | <>;function render() { let $$restProps = __sveltets_1_restPropsType(); 3 | <>

{$$restProps['name']}

4 | return { props: {}, slots: {}, getters: {}, events: {} }} 5 | 6 | export default class Input__SvelteComponent_ extends __sveltets_1_createSvelte2TsxComponent(__sveltets_1_partial_with_any(__sveltets_1_with_any_event(render()))) { 7 | } -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$restProps/input.svelte: -------------------------------------------------------------------------------- 1 |

{$$restProps['name']}

2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$slots-script/input.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 |

{name}

7 | 8 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$$slots/input.svelte: -------------------------------------------------------------------------------- 1 |

{$$slots.foo}

2 |

{$$slots['dashed-name']}

3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$property/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$store-in-event-binding/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$store-multiple-variable-declaration/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | {$store1} 9 | {$store2} 10 | {$store3} 11 | {$store4} 12 | {$store5} 13 | {$store6} 14 | {$store7} 15 | {$store8} 16 | {$store9} 17 | {$store10} -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$store-with-increments/input.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-$store/input.svelte: -------------------------------------------------------------------------------- 1 | 2 |

$b=$b.concat(5)}>{$b}

-------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-accessors-attr-not-present/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-accessors-attr-present/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-accessors-mustachetag-false/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-accessors-mustachetag-true/input.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-accessors-no-svelte-options/input.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-svelte-components-let-forward/input.svelte: -------------------------------------------------------------------------------- 1 | {#if true} 2 | 3 | 4 | 5 | {/if} 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/svelte2tsx/samples/uses-svelte-components/input.svelte: -------------------------------------------------------------------------------- 1 | {#if true} 2 | 3 | {/if} 4 | 5 |

content

6 |
7 | {}} /> 8 | {}} /> 9 | 10 |

Hi

11 |
12 | 13 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/svelte2tsx/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "types": ["@types/node", "@types/mocha"], 4 | "target": "es6", 5 | "module": "commonjs", 6 | "moduleResolution": "node", 7 | "esModuleInterop": true 8 | }, 9 | "exclude": ["samples/**"], 10 | "include": ["*.ts"] 11 | } 12 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/typescript-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/typescript-plugin/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /src 3 | tsconfig.json 4 | .gitignore 5 | internal.md 6 | dist/tsconfig.tsbuildinfo 7 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/typescript-plugin/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | See https://github.com/sveltejs/language-tools/releases 4 | -------------------------------------------------------------------------------- /vendored/langauge-tools/packages/typescript-plugin/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/node12/tsconfig.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node", 5 | "esModuleInterop": true, 6 | "strict": true, 7 | "declaration": true, 8 | "outDir": "dist", 9 | "sourceMap": false, 10 | "composite": true 11 | }, 12 | "include": ["./src/**/*"], 13 | "exclude": ["./node_modules"] 14 | } 15 | -------------------------------------------------------------------------------- /vendored/langauge-tools/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "references": [ 3 | { "path": "./packages/language-server" }, 4 | { "path": "./packages/svelte-vscode" } 5 | ], 6 | "files": [], 7 | "include": [], 8 | "exclude": ["**/node_modules"] 9 | } 10 | --------------------------------------------------------------------------------