dsherret / dsherret/ts-morph

Question: Is there a buildin-method to create factory-functions from kinds?

Open
#1,385 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

For example if I have an StringLiteralKind (from ts.SyntaxKind), is there a way to get the factory function to create such a node?

so e.g.
```ts
createFactory(ts.Syntaxkind.NumericLiteral) // returns ts.factory.createNumbericLiteral();
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.