Skip to content

Create JSX Text with factory #29425

Description

@Kingwl

Search Terms

Tsx, Factory

Suggestion

i'd like to create a tsx ast by factory, but i cann't make it easy

  1. JSXText Node have not the factory and there are not text hold in it
  2. JsxFragmentOpenning and JSXFragmentClose*** Node do not have the factory too
  • could we extend JSXText that such a JSXTextWithText?
  • could we writeup more factory (JsxFragmentOpenning )

Use Cases

Examples

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

Metadata

Metadata

Labels

Domain: APIRelates to the public API for TypeScriptHelp WantedYou can do thisSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions