We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related to #25220
There are quite a few inconsistencies among the factory functions:
createStatement
createExpressionStatement
createBinary
createParen
ParenthesizedExpression
ParenthesizedType
createSpread
SpreadElement
SpreadAssignment
createThrow
createDo
createTypeLiteral
members
undefined
createInterfaceDeclaration
createYield
createImportClause
createExportDeclaration
objectAssignmentInitializer
createShorthandPropertyAssignment
typeArguments
createTypeReferenceNode
decorators
createConstructor
createExportAssignment
modifiers
declare
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Related to #25220
There are quite a few inconsistencies among the factory functions:
createStatement
instead ofcreateExpressionStatement
: what statement does it create?createBinary
: maybe binary number literal?createParen
:ParenthesizedExpression
orParenthesizedType
?createSpread
:SpreadElement
orSpreadAssignment
?createThrow
: becomes ambiguous once the ThrowExpression proposal advances to stage 4createDo
: becomes ambiguous once the DoExpression proposal advances to stage 4createTypeLiteral
allows themembers
parameter to beundefined
createInterfaceDeclaration
on the other hand requires an array asmembers
parametercreateYield
has overloads for that purposecreateImportClause
orcreateExportDeclaration
for example allow all parameters to beundefined
, resulting in an invalid nodeobjectAssignmentInitializer
increateShorthandPropertyAssignment
is optionaltypeArguments
increateTypeReferenceNode
is required although it's nullabledecorators
createConstructor
orcreateExportAssignment
require adecorators
parameter although it's an error to have decorators on those nodesmodifiers
createExportAssignment
requires amodifiers
parameter although this node cannot have any modifiers (not evendeclare
)The text was updated successfully, but these errors were encountered: