(create-add left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-array-binding-pattern elements)
Parameters:
elements
: readonly ArrayBindingElement[]
Returns: ArrayBindingPattern
**Parameters:** - `elements`: `readonly ArrayBindingElement[]` **Returns:** `ArrayBindingPattern`
(create-array-literal-expression)
(create-array-literal-expression elements)
(create-array-literal-expression elements multi-line?)
Parameters:
elements
: readonly Expression[] | undefined
multi-line?
: boolean | undefined
Returns: ArrayLiteralExpression
**Parameters:** - `elements`: `readonly Expression[] | undefined` - `multi-line?`: `boolean | undefined` **Returns:** `ArrayLiteralExpression`
(create-array-type-node element-type)
Parameters:
element-type
: TypeNode
Returns: ArrayTypeNode
**Parameters:** - `element-type`: `TypeNode` **Returns:** `ArrayTypeNode`
(create-arrow-function)
(create-arrow-function modifiers)
(create-arrow-function modifiers type-parameters)
(create-arrow-function modifiers type-parameters parameters)
(create-arrow-function modifiers type-parameters parameters type)
(create-arrow-function modifiers
type-parameters
parameters
type
equals-greater-than-token)
(create-arrow-function modifiers
type-parameters
parameters
type
equals-greater-than-token
body)
Parameters:
modifiers
: readonly Modifier[] | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
equals-greater-than-token
: EqualsGreaterThanToken | undefined
body
: ConciseBody
Returns: ArrowFunction
**Parameters:** - `modifiers`: `readonly Modifier[] | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `equals-greater-than-token`: `EqualsGreaterThanToken | undefined` - `body`: `ConciseBody` **Returns:** `ArrowFunction`
(create-as-expression expression type)
Parameters:
expression
: Expression
type
: TypeNode
Returns: AsExpression
**Parameters:** - `expression`: `Expression` - `type`: `TypeNode` **Returns:** `AsExpression`
(create-assert-clause elements)
(create-assert-clause elements multi-line?)
Parameters:
elements
: NodeArray<AssertEntry>
multi-line?
: boolean | undefined
Returns: AssertClause
**Parameters:** - `elements`: `NodeArray<AssertEntry>` - `multi-line?`: `boolean | undefined` **Returns:** `AssertClause`
(create-assert-entry name value)
Parameters:
name
: ImportAttributeName
value
: Expression
Returns: AssertEntry
**Parameters:** - `name`: `ImportAttributeName` - `value`: `Expression` **Returns:** `AssertEntry`
(create-assignment left right)
Parameters:
left
: Expression
right
: Expression
Returns: AssignmentExpression<EqualsToken>
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `AssignmentExpression<EqualsToken>`
(create-await-expression expression)
Parameters:
expression
: Expression
Returns: AwaitExpression
**Parameters:** - `expression`: `Expression` **Returns:** `AwaitExpression`
(create-big-int-literal value)
Parameters:
value
: string | PseudoBigInt
Returns: BigIntLiteral
**Parameters:** - `value`: `string | PseudoBigInt` **Returns:** `BigIntLiteral`
(create-binary-expression left operator right)
Parameters:
left
: Expression
operator
: BinaryOperator | BinaryOperatorToken
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `operator`: `BinaryOperator | BinaryOperatorToken` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-binding-element)
(create-binding-element dot-dot-dot-token)
(create-binding-element dot-dot-dot-token property-name)
(create-binding-element dot-dot-dot-token property-name name)
(create-binding-element dot-dot-dot-token property-name name initializer)
Parameters:
dot-dot-dot-token
: DotDotDotToken | undefined
property-name
: string | PropertyName | undefined
name
: string | BindingName
initializer
: Expression | undefined
Returns: BindingElement
**Parameters:** - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `property-name`: `string | PropertyName | undefined` - `name`: `string | BindingName` - `initializer`: `Expression | undefined` **Returns:** `BindingElement`
(create-bitwise-and left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-bitwise-not operand)
Parameters:
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-bitwise-or left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-bitwise-xor left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-block statements)
(create-block statements multi-line?)
Parameters:
statements
: readonly Statement[]
multi-line?
: boolean | undefined
Returns: Block
**Parameters:** - `statements`: `readonly Statement[]` - `multi-line?`: `boolean | undefined` **Returns:** `Block`
(create-break-statement)
(create-break-statement label)
Parameters:
label
: string | Identifier | undefined
Returns: BreakStatement
**Parameters:** - `label`: `string | Identifier | undefined` **Returns:** `BreakStatement`
(create-bundle source-files)
(create-bundle source-files prepends)
Parameters:
source-files
: readonly SourceFile[]
prepends
: readonly (UnparsedSource | InputFiles)[] | undefined
Returns: Bundle
**Parameters:** - `source-files`: `readonly SourceFile[]` - `prepends`: `readonly (UnparsedSource | InputFiles)[] | undefined` **Returns:** `Bundle`
(create-call-chain expression)
(create-call-chain expression question-dot-token)
(create-call-chain expression question-dot-token type-arguments)
(create-call-chain expression question-dot-token type-arguments arguments-array)
Parameters:
expression
: Expression
question-dot-token
: QuestionDotToken | undefined
type-arguments
: readonly TypeNode[] | undefined
arguments-array
: readonly Expression[] | undefined
Returns: CallChain
**Parameters:** - `expression`: `Expression` - `question-dot-token`: `QuestionDotToken | undefined` - `type-arguments`: `readonly TypeNode[] | undefined` - `arguments-array`: `readonly Expression[] | undefined` **Returns:** `CallChain`
(create-call-expression expression)
(create-call-expression expression type-arguments)
(create-call-expression expression type-arguments arguments-array)
Parameters:
expression
: Expression
type-arguments
: readonly TypeNode[] | undefined
arguments-array
: readonly Expression[] | undefined
Returns: CallExpression
**Parameters:** - `expression`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` - `arguments-array`: `readonly Expression[] | undefined` **Returns:** `CallExpression`
(create-call-signature)
(create-call-signature type-parameters)
(create-call-signature type-parameters parameters)
(create-call-signature type-parameters parameters type)
Parameters:
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
Returns: CallSignatureDeclaration
**Parameters:** - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` **Returns:** `CallSignatureDeclaration`
(create-case-block clauses)
Parameters:
clauses
: readonly CaseOrDefaultClause[]
Returns: CaseBlock
**Parameters:** - `clauses`: `readonly CaseOrDefaultClause[]` **Returns:** `CaseBlock`
(create-case-clause expression statements)
Parameters:
expression
: Expression
statements
: readonly Statement[]
Returns: CaseClause
**Parameters:** - `expression`: `Expression` - `statements`: `readonly Statement[]` **Returns:** `CaseClause`
(create-catch-clause)
(create-catch-clause variable-declaration)
(create-catch-clause variable-declaration block)
Parameters:
variable-declaration
: string | VariableDeclaration | BindingName | undefined
block
: Block
Returns: CatchClause
**Parameters:** - `variable-declaration`: `string | VariableDeclaration | BindingName | undefined` - `block`: `Block` **Returns:** `CatchClause`
(create-class-declaration)
(create-class-declaration modifiers)
(create-class-declaration modifiers name)
(create-class-declaration modifiers name type-parameters)
(create-class-declaration modifiers name type-parameters heritage-clauses)
(create-class-declaration modifiers
name
type-parameters
heritage-clauses
members)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
heritage-clauses
: readonly HeritageClause[] | undefined
members
: readonly ClassElement[]
Returns: ClassDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `heritage-clauses`: `readonly HeritageClause[] | undefined` - `members`: `readonly ClassElement[]` **Returns:** `ClassDeclaration`
(create-class-expression)
(create-class-expression modifiers)
(create-class-expression modifiers name)
(create-class-expression modifiers name type-parameters)
(create-class-expression modifiers name type-parameters heritage-clauses)
(create-class-expression modifiers
name
type-parameters
heritage-clauses
members)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
heritage-clauses
: readonly HeritageClause[] | undefined
members
: readonly ClassElement[]
Returns: ClassExpression
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `heritage-clauses`: `readonly HeritageClause[] | undefined` - `members`: `readonly ClassElement[]` **Returns:** `ClassExpression`
(create-class-static-block-declaration body)
Parameters:
body
: Block
Returns: ClassStaticBlockDeclaration
**Parameters:** - `body`: `Block` **Returns:** `ClassStaticBlockDeclaration`
(create-comma left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-comma-list-expression elements)
Parameters:
elements
: readonly Expression[]
Returns: CommaListExpression
**Parameters:** - `elements`: `readonly Expression[]` **Returns:** `CommaListExpression`
(create-computed-property-name expression)
Parameters:
expression
: Expression
Returns: ComputedPropertyName
**Parameters:** - `expression`: `Expression` **Returns:** `ComputedPropertyName`
(create-conditional-expression condition)
(create-conditional-expression condition question-token)
(create-conditional-expression condition question-token when-true)
(create-conditional-expression condition question-token when-true colon-token)
(create-conditional-expression condition
question-token
when-true
colon-token
when-false)
Parameters:
condition
: Expression
question-token
: QuestionToken | undefined
when-true
: Expression
colon-token
: ColonToken | undefined
when-false
: Expression
Returns: ConditionalExpression
**Parameters:** - `condition`: `Expression` - `question-token`: `QuestionToken | undefined` - `when-true`: `Expression` - `colon-token`: `ColonToken | undefined` - `when-false`: `Expression` **Returns:** `ConditionalExpression`
(create-conditional-type-node check-type extends-type true-type false-type)
Parameters:
check-type
: TypeNode
extends-type
: TypeNode
true-type
: TypeNode
false-type
: TypeNode
Returns: ConditionalTypeNode
**Parameters:** - `check-type`: `TypeNode` - `extends-type`: `TypeNode` - `true-type`: `TypeNode` - `false-type`: `TypeNode` **Returns:** `ConditionalTypeNode`
(create-construct-signature)
(create-construct-signature type-parameters)
(create-construct-signature type-parameters parameters)
(create-construct-signature type-parameters parameters type)
Parameters:
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
Returns: ConstructSignatureDeclaration
**Parameters:** - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` **Returns:** `ConstructSignatureDeclaration`
(create-constructor-declaration)
(create-constructor-declaration modifiers)
(create-constructor-declaration modifiers parameters)
(create-constructor-declaration modifiers parameters body)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
parameters
: readonly ParameterDeclaration[]
body
: Block | undefined
Returns: ConstructorDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `body`: `Block | undefined` **Returns:** `ConstructorDeclaration`
(create-constructor-type-node)
(create-constructor-type-node modifiers)
(create-constructor-type-node modifiers type-parameters)
(create-constructor-type-node modifiers type-parameters parameters)
(create-constructor-type-node modifiers type-parameters parameters type)
Parameters:
modifiers
: readonly Modifier[] | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode
Returns: ConstructorTypeNode
**Parameters:** - `modifiers`: `readonly Modifier[] | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode` **Returns:** `ConstructorTypeNode`
(create-continue-statement)
(create-continue-statement label)
Parameters:
label
: string | Identifier | undefined
Returns: ContinueStatement
**Parameters:** - `label`: `string | Identifier | undefined` **Returns:** `ContinueStatement`
(create-debugger-statement)
Returns: DebuggerStatement
**Returns:** `DebuggerStatement`
(create-decorator expression)
Parameters:
expression
: Expression
Returns: Decorator
**Parameters:** - `expression`: `Expression` **Returns:** `Decorator`
(create-default-clause statements)
Parameters:
statements
: readonly Statement[]
Returns: DefaultClause
**Parameters:** - `statements`: `readonly Statement[]` **Returns:** `DefaultClause`
(create-delete-expression expression)
Parameters:
expression
: Expression
Returns: DeleteExpression
**Parameters:** - `expression`: `Expression` **Returns:** `DeleteExpression`
(create-divide left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-do-statement statement expression)
Parameters:
statement
: Statement
expression
: Expression
Returns: DoStatement
**Parameters:** - `statement`: `Statement` - `expression`: `Expression` **Returns:** `DoStatement`
(create-element-access-chain expression)
(create-element-access-chain expression question-dot-token)
(create-element-access-chain expression question-dot-token index)
Parameters:
expression
: Expression
question-dot-token
: QuestionDotToken | undefined
index
: number | Expression
Returns: ElementAccessChain
**Parameters:** - `expression`: `Expression` - `question-dot-token`: `QuestionDotToken | undefined` - `index`: `number | Expression` **Returns:** `ElementAccessChain`
(create-element-access-expression expression index)
Parameters:
expression
: Expression
index
: number | Expression
Returns: ElementAccessExpression
**Parameters:** - `expression`: `Expression` - `index`: `number | Expression` **Returns:** `ElementAccessExpression`
(create-empty-statement)
Returns: EmptyStatement
**Returns:** `EmptyStatement`
(create-enum-declaration)
(create-enum-declaration modifiers)
(create-enum-declaration modifiers name)
(create-enum-declaration modifiers name members)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | Identifier
members
: readonly EnumMember[]
Returns: EnumDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | Identifier` - `members`: `readonly EnumMember[]` **Returns:** `EnumDeclaration`
(create-enum-member name)
(create-enum-member name initializer)
Parameters:
name
: string | PropertyName
initializer
: Expression | undefined
Returns: EnumMember
**Parameters:** - `name`: `string | PropertyName` - `initializer`: `Expression | undefined` **Returns:** `EnumMember`
(create-equality left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-exponent left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-export-assignment)
(create-export-assignment modifiers)
(create-export-assignment modifiers export-equals?)
(create-export-assignment modifiers export-equals? expression)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
export-equals?
: boolean | undefined
expression
: Expression
Returns: ExportAssignment
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `export-equals?`: `boolean | undefined` - `expression`: `Expression` **Returns:** `ExportAssignment`
(create-export-declaration)
(create-export-declaration modifiers)
(create-export-declaration modifiers type-only?)
(create-export-declaration modifiers type-only? export-clause)
(create-export-declaration modifiers type-only? export-clause module-specifier)
(create-export-declaration modifiers
type-only?
export-clause
module-specifier
attributes)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
type-only?
: boolean
export-clause
: NamedExportBindings | undefined
module-specifier
: Expression | undefined
attributes
: ImportAttributes | undefined
Returns: ExportDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `type-only?`: `boolean` - `export-clause`: `NamedExportBindings | undefined` - `module-specifier`: `Expression | undefined` - `attributes`: `ImportAttributes | undefined` **Returns:** `ExportDeclaration`
(create-export-default expression)
Parameters:
expression
: Expression
Returns: ExportAssignment
**Parameters:** - `expression`: `Expression` **Returns:** `ExportAssignment`
(create-export-specifier type-only?)
(create-export-specifier type-only? property-name)
(create-export-specifier type-only? property-name name)
Parameters:
type-only?
: boolean
property-name
: string | Identifier | undefined
name
: string | Identifier
Returns: ExportSpecifier
**Parameters:** - `type-only?`: `boolean` - `property-name`: `string | Identifier | undefined` - `name`: `string | Identifier` **Returns:** `ExportSpecifier`
(create-expression-statement expression)
Parameters:
expression
: Expression
Returns: ExpressionStatement
**Parameters:** - `expression`: `Expression` **Returns:** `ExpressionStatement`
(create-expression-with-type-arguments expression)
(create-expression-with-type-arguments expression type-arguments)
Parameters:
expression
: Expression
type-arguments
: readonly TypeNode[] | undefined
Returns: ExpressionWithTypeArguments
**Parameters:** - `expression`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` **Returns:** `ExpressionWithTypeArguments`
(create-external-module-export export-name)
Parameters:
export-name
: Identifier
Returns: ExportDeclaration
**Parameters:** - `export-name`: `Identifier` **Returns:** `ExportDeclaration`
(create-external-module-reference expression)
Parameters:
expression
: Expression
Returns: ExternalModuleReference
**Parameters:** - `expression`: `Expression` **Returns:** `ExternalModuleReference`
(create-for-in-statement initializer expression statement)
Parameters:
initializer
: ForInitializer
expression
: Expression
statement
: Statement
Returns: ForInStatement
**Parameters:** - `initializer`: `ForInitializer` - `expression`: `Expression` - `statement`: `Statement` **Returns:** `ForInStatement`
(create-for-of-statement)
(create-for-of-statement await-modifier)
(create-for-of-statement await-modifier initializer)
(create-for-of-statement await-modifier initializer expression)
(create-for-of-statement await-modifier initializer expression statement)
Parameters:
await-modifier
: AwaitKeyword | undefined
initializer
: ForInitializer
expression
: Expression
statement
: Statement
Returns: ForOfStatement
**Parameters:** - `await-modifier`: `AwaitKeyword | undefined` - `initializer`: `ForInitializer` - `expression`: `Expression` - `statement`: `Statement` **Returns:** `ForOfStatement`
(create-for-statement)
(create-for-statement initializer)
(create-for-statement initializer condition)
(create-for-statement initializer condition incrementor)
(create-for-statement initializer condition incrementor statement)
Parameters:
initializer
: ForInitializer | undefined
condition
: Expression | undefined
incrementor
: Expression | undefined
statement
: Statement
Returns: ForStatement
**Parameters:** - `initializer`: `ForInitializer | undefined` - `condition`: `Expression | undefined` - `incrementor`: `Expression | undefined` - `statement`: `Statement` **Returns:** `ForStatement`
(create-function-declaration)
(create-function-declaration modifiers)
(create-function-declaration modifiers asterisk-token)
(create-function-declaration modifiers asterisk-token name)
(create-function-declaration modifiers asterisk-token name type-parameters)
(create-function-declaration modifiers
asterisk-token
name
type-parameters
parameters)
(create-function-declaration modifiers
asterisk-token
name
type-parameters
parameters
type)
(create-function-declaration modifiers
asterisk-token
name
type-parameters
parameters
type
body)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
asterisk-token
: AsteriskToken | undefined
name
: string | Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block | undefined
Returns: FunctionDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `asterisk-token`: `AsteriskToken | undefined` - `name`: `string | Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block | undefined` **Returns:** `FunctionDeclaration`
(create-function-expression)
(create-function-expression modifiers)
(create-function-expression modifiers asterisk-token)
(create-function-expression modifiers asterisk-token name)
(create-function-expression modifiers asterisk-token name type-parameters)
(create-function-expression modifiers
asterisk-token
name
type-parameters
parameters)
(create-function-expression modifiers
asterisk-token
name
type-parameters
parameters
type)
(create-function-expression modifiers
asterisk-token
name
type-parameters
parameters
type
body)
Parameters:
modifiers
: readonly Modifier[] | undefined
asterisk-token
: AsteriskToken | undefined
name
: string | Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[] | undefined
type
: TypeNode | undefined
body
: Block
Returns: FunctionExpression
**Parameters:** - `modifiers`: `readonly Modifier[] | undefined` - `asterisk-token`: `AsteriskToken | undefined` - `name`: `string | Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[] | undefined` - `type`: `TypeNode | undefined` - `body`: `Block` **Returns:** `FunctionExpression`
(create-function-type-node)
(create-function-type-node type-parameters)
(create-function-type-node type-parameters parameters)
(create-function-type-node type-parameters parameters type)
Parameters:
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode
Returns: FunctionTypeNode
**Parameters:** - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode` **Returns:** `FunctionTypeNode`
(create-get-accessor-declaration)
(create-get-accessor-declaration modifiers)
(create-get-accessor-declaration modifiers name)
(create-get-accessor-declaration modifiers name parameters)
(create-get-accessor-declaration modifiers name parameters type)
(create-get-accessor-declaration modifiers name parameters type body)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | PropertyName
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block | undefined
Returns: GetAccessorDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | PropertyName` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block | undefined` **Returns:** `GetAccessorDeclaration`
(create-greater-than left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-greater-than-equals left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-heritage-clause token types)
Parameters:
token
: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword
types
: readonly ExpressionWithTypeArguments[]
Returns: HeritageClause
**Parameters:** - `token`: `SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword` - `types`: `readonly ExpressionWithTypeArguments[]` **Returns:** `HeritageClause`
(create-identifier text)
Parameters:
text
: string
Returns: Identifier
**Parameters:** - `text`: `string` **Returns:** `Identifier`
(create-if-statement expression then-statement)
(create-if-statement expression then-statement else-statement)
Parameters:
expression
: Expression
then-statement
: Statement
else-statement
: Statement | undefined
Returns: IfStatement
**Parameters:** - `expression`: `Expression` - `then-statement`: `Statement` - `else-statement`: `Statement | undefined` **Returns:** `IfStatement`
(create-immediately-invoked-arrow-function statements)
(create-immediately-invoked-arrow-function statements param param-value)
Parameters:
statements
: readonly Statement[]
param
: ParameterDeclaration
param-value
: Expression
Returns: ImmediatelyInvokedArrowFunction
**Parameters:** - `statements`: `readonly Statement[]` - `param`: `ParameterDeclaration` - `param-value`: `Expression` **Returns:** `ImmediatelyInvokedArrowFunction`
(create-immediately-invoked-function-expression statements)
(create-immediately-invoked-function-expression statements param param-value)
Parameters:
statements
: readonly Statement[]
param
: ParameterDeclaration
param-value
: Expression
Returns: CallExpression
**Parameters:** - `statements`: `readonly Statement[]` - `param`: `ParameterDeclaration` - `param-value`: `Expression` **Returns:** `CallExpression`
(create-import-attribute name value)
Parameters:
name
: ImportAttributeName
value
: Expression
Returns: ImportAttribute
**Parameters:** - `name`: `ImportAttributeName` - `value`: `Expression` **Returns:** `ImportAttribute`
(create-import-attributes elements)
(create-import-attributes elements multi-line?)
Parameters:
elements
: NodeArray<ImportAttribute>
multi-line?
: boolean | undefined
Returns: ImportAttributes
**Parameters:** - `elements`: `NodeArray<ImportAttribute>` - `multi-line?`: `boolean | undefined` **Returns:** `ImportAttributes`
(create-import-clause type-only?)
(create-import-clause type-only? name)
(create-import-clause type-only? name named-bindings)
Parameters:
type-only?
: boolean
name
: Identifier | undefined
named-bindings
: NamedImportBindings | undefined
Returns: ImportClause
**Parameters:** - `type-only?`: `boolean` - `name`: `Identifier | undefined` - `named-bindings`: `NamedImportBindings | undefined` **Returns:** `ImportClause`
(create-import-declaration)
(create-import-declaration modifiers)
(create-import-declaration modifiers import-clause)
(create-import-declaration modifiers import-clause module-specifier)
(create-import-declaration modifiers import-clause module-specifier attributes)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
import-clause
: ImportClause | undefined
module-specifier
: Expression
attributes
: ImportAttributes | undefined
Returns: ImportDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `import-clause`: `ImportClause | undefined` - `module-specifier`: `Expression` - `attributes`: `ImportAttributes | undefined` **Returns:** `ImportDeclaration`
(create-import-equals-declaration)
(create-import-equals-declaration modifiers)
(create-import-equals-declaration modifiers type-only?)
(create-import-equals-declaration modifiers type-only? name)
(create-import-equals-declaration modifiers type-only? name module-reference)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
type-only?
: boolean
name
: string | Identifier
module-reference
: ModuleReference
Returns: ImportEqualsDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `type-only?`: `boolean` - `name`: `string | Identifier` - `module-reference`: `ModuleReference` **Returns:** `ImportEqualsDeclaration`
(create-import-specifier type-only?)
(create-import-specifier type-only? property-name)
(create-import-specifier type-only? property-name name)
Parameters:
type-only?
: boolean
property-name
: Identifier | undefined
name
: Identifier
Returns: ImportSpecifier
**Parameters:** - `type-only?`: `boolean` - `property-name`: `Identifier | undefined` - `name`: `Identifier` **Returns:** `ImportSpecifier`
(create-import-type-assertion-container clause)
(create-import-type-assertion-container clause multi-line?)
Parameters:
clause
: AssertClause
multi-line?
: boolean | undefined
Returns: ImportTypeAssertionContainer
**Parameters:** - `clause`: `AssertClause` - `multi-line?`: `boolean | undefined` **Returns:** `ImportTypeAssertionContainer`
(create-import-type-node argument)
(create-import-type-node argument attributes)
(create-import-type-node argument attributes qualifier)
(create-import-type-node argument attributes qualifier type-arguments)
(create-import-type-node argument attributes qualifier type-arguments type-of?)
Parameters:
argument
: TypeNode
attributes
: ImportAttributes | undefined
qualifier
: EntityName | undefined
type-arguments
: readonly TypeNode[] | undefined
type-of?
: boolean | undefined
Returns: ImportTypeNode
**Parameters:** - `argument`: `TypeNode` - `attributes`: `ImportAttributes | undefined` - `qualifier`: `EntityName | undefined` - `type-arguments`: `readonly TypeNode[] | undefined` - `type-of?`: `boolean | undefined` **Returns:** `ImportTypeNode`
(create-index-signature)
(create-index-signature modifiers)
(create-index-signature modifiers parameters)
(create-index-signature modifiers parameters type)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode
Returns: IndexSignatureDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode` **Returns:** `IndexSignatureDeclaration`
(create-indexed-access-type-node object-type index-type)
Parameters:
object-type
: TypeNode
index-type
: TypeNode
Returns: IndexedAccessTypeNode
**Parameters:** - `object-type`: `TypeNode` - `index-type`: `TypeNode` **Returns:** `IndexedAccessTypeNode`
(create-inequality left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-infer-type-node type-parameter)
Parameters:
type-parameter
: TypeParameterDeclaration
Returns: InferTypeNode
**Parameters:** - `type-parameter`: `TypeParameterDeclaration` **Returns:** `InferTypeNode`
(create-interface-declaration)
(create-interface-declaration modifiers)
(create-interface-declaration modifiers name)
(create-interface-declaration modifiers name type-parameters)
(create-interface-declaration modifiers name type-parameters heritage-clauses)
(create-interface-declaration modifiers
name
type-parameters
heritage-clauses
members)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | Identifier
type-parameters
: readonly TypeParameterDeclaration[] | undefined
heritage-clauses
: readonly HeritageClause[] | undefined
members
: readonly TypeElement[]
Returns: InterfaceDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | Identifier` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `heritage-clauses`: `readonly HeritageClause[] | undefined` - `members`: `readonly TypeElement[]` **Returns:** `InterfaceDeclaration`
(create-intersection-type-node types)
Parameters:
types
: readonly TypeNode[]
Returns: IntersectionTypeNode
**Parameters:** - `types`: `readonly TypeNode[]` **Returns:** `IntersectionTypeNode`
(create-js-doc-all-type)
Returns: JSDocAllType
**Returns:** `JSDocAllType`
(create-js-doc-augments-tag)
(create-js-doc-augments-tag tag-name)
(create-js-doc-augments-tag tag-name class-name)
(create-js-doc-augments-tag tag-name class-name comment)
Parameters:
tag-name
: Identifier | undefined
class-name
: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocAugmentsTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `class-name`: `ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocAugmentsTag`
(create-js-doc-author-tag)
(create-js-doc-author-tag tag-name)
(create-js-doc-author-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocAuthorTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocAuthorTag`
(create-js-doc-callback-tag)
(create-js-doc-callback-tag tag-name)
(create-js-doc-callback-tag tag-name type-expression)
(create-js-doc-callback-tag tag-name type-expression full-name)
(create-js-doc-callback-tag tag-name type-expression full-name comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocSignature
full-name
: Identifier | JSDocNamespaceDeclaration | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocCallbackTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocSignature` - `full-name`: `Identifier | JSDocNamespaceDeclaration | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocCallbackTag`
(create-js-doc-class-tag)
(create-js-doc-class-tag tag-name)
(create-js-doc-class-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocClassTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocClassTag`
(create-js-doc-comment)
(create-js-doc-comment comment)
(create-js-doc-comment comment tags)
Parameters:
comment
: string | NodeArray<JSDocComment> | undefined
tags
: readonly JSDocTag[] | undefined
Returns: JSDoc
**Parameters:** - `comment`: `string | NodeArray<JSDocComment> | undefined` - `tags`: `readonly JSDocTag[] | undefined` **Returns:** `JSDoc`
(create-js-doc-deprecated-tag)
(create-js-doc-deprecated-tag tag-name)
(create-js-doc-deprecated-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocDeprecatedTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocDeprecatedTag`
(create-js-doc-enum-tag)
(create-js-doc-enum-tag tag-name)
(create-js-doc-enum-tag tag-name type-expression)
(create-js-doc-enum-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocEnumTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocEnumTag`
(create-js-doc-function-type parameters)
(create-js-doc-function-type parameters type)
Parameters:
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
Returns: JSDocFunctionType
**Parameters:** - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` **Returns:** `JSDocFunctionType`
(create-js-doc-implements-tag)
(create-js-doc-implements-tag tag-name)
(create-js-doc-implements-tag tag-name class-name)
(create-js-doc-implements-tag tag-name class-name comment)
Parameters:
tag-name
: Identifier | undefined
class-name
: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocImplementsTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `class-name`: `ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocImplementsTag`
(create-js-doc-link)
(create-js-doc-link name)
(create-js-doc-link name text)
Parameters:
name
: EntityName | JSDocMemberName | undefined
text
: string
Returns: JSDocLink
**Parameters:** - `name`: `EntityName | JSDocMemberName | undefined` - `text`: `string` **Returns:** `JSDocLink`
(create-js-doc-link-code)
(create-js-doc-link-code name)
(create-js-doc-link-code name text)
Parameters:
name
: EntityName | JSDocMemberName | undefined
text
: string
Returns: JSDocLinkCode
**Parameters:** - `name`: `EntityName | JSDocMemberName | undefined` - `text`: `string` **Returns:** `JSDocLinkCode`
(create-js-doc-link-plain)
(create-js-doc-link-plain name)
(create-js-doc-link-plain name text)
Parameters:
name
: EntityName | JSDocMemberName | undefined
text
: string
Returns: JSDocLinkPlain
**Parameters:** - `name`: `EntityName | JSDocMemberName | undefined` - `text`: `string` **Returns:** `JSDocLinkPlain`
(create-js-doc-member-name left right)
Parameters:
left
: EntityName | JSDocMemberName
right
: Identifier
Returns: JSDocMemberName
**Parameters:** - `left`: `EntityName | JSDocMemberName` - `right`: `Identifier` **Returns:** `JSDocMemberName`
(create-js-doc-name-reference name)
Parameters:
name
: EntityName | JSDocMemberName
Returns: JSDocNameReference
**Parameters:** - `name`: `EntityName | JSDocMemberName` **Returns:** `JSDocNameReference`
(create-js-doc-namepath-type type)
Parameters:
type
: TypeNode
Returns: JSDocNamepathType
**Parameters:** - `type`: `TypeNode` **Returns:** `JSDocNamepathType`
(create-js-doc-non-nullable-type type)
(create-js-doc-non-nullable-type type postfix?)
Parameters:
type
: TypeNode
postfix?
: boolean | undefined
Returns: JSDocNonNullableType
**Parameters:** - `type`: `TypeNode` - `postfix?`: `boolean | undefined` **Returns:** `JSDocNonNullableType`
(create-js-doc-nullable-type type)
(create-js-doc-nullable-type type postfix?)
Parameters:
type
: TypeNode
postfix?
: boolean | undefined
Returns: JSDocNullableType
**Parameters:** - `type`: `TypeNode` - `postfix?`: `boolean | undefined` **Returns:** `JSDocNullableType`
(create-js-doc-optional-type type)
Parameters:
type
: TypeNode
Returns: JSDocOptionalType
**Parameters:** - `type`: `TypeNode` **Returns:** `JSDocOptionalType`
(create-js-doc-overload-tag)
(create-js-doc-overload-tag tag-name)
(create-js-doc-overload-tag tag-name type-expression)
(create-js-doc-overload-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocSignature
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocOverloadTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocSignature` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocOverloadTag`
(create-js-doc-override-tag)
(create-js-doc-override-tag tag-name)
(create-js-doc-override-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocOverrideTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocOverrideTag`
(create-js-doc-parameter-tag)
(create-js-doc-parameter-tag tag-name)
(create-js-doc-parameter-tag tag-name name)
(create-js-doc-parameter-tag tag-name name bracketed?)
(create-js-doc-parameter-tag tag-name name bracketed? type-expression)
(create-js-doc-parameter-tag tag-name
name
bracketed?
type-expression
name-first?)
(create-js-doc-parameter-tag tag-name
name
bracketed?
type-expression
name-first?
comment)
Parameters:
tag-name
: Identifier | undefined
name
: EntityName
bracketed?
: boolean
type-expression
: JSDocTypeExpression | undefined
name-first?
: boolean | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocParameterTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `name`: `EntityName` - `bracketed?`: `boolean` - `type-expression`: `JSDocTypeExpression | undefined` - `name-first?`: `boolean | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocParameterTag`
(create-js-doc-private-tag)
(create-js-doc-private-tag tag-name)
(create-js-doc-private-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocPrivateTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocPrivateTag`
(create-js-doc-property-tag)
(create-js-doc-property-tag tag-name)
(create-js-doc-property-tag tag-name name)
(create-js-doc-property-tag tag-name name bracketed?)
(create-js-doc-property-tag tag-name name bracketed? type-expression)
(create-js-doc-property-tag tag-name
name
bracketed?
type-expression
name-first?)
(create-js-doc-property-tag tag-name
name
bracketed?
type-expression
name-first?
comment)
Parameters:
tag-name
: Identifier | undefined
name
: EntityName
bracketed?
: boolean
type-expression
: JSDocTypeExpression | undefined
name-first?
: boolean | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocPropertyTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `name`: `EntityName` - `bracketed?`: `boolean` - `type-expression`: `JSDocTypeExpression | undefined` - `name-first?`: `boolean | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocPropertyTag`
(create-js-doc-protected-tag)
(create-js-doc-protected-tag tag-name)
(create-js-doc-protected-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocProtectedTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocProtectedTag`
(create-js-doc-public-tag)
(create-js-doc-public-tag tag-name)
(create-js-doc-public-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocPublicTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocPublicTag`
(create-js-doc-readonly-tag)
(create-js-doc-readonly-tag tag-name)
(create-js-doc-readonly-tag tag-name comment)
Parameters:
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocReadonlyTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocReadonlyTag`
(create-js-doc-return-tag)
(create-js-doc-return-tag tag-name)
(create-js-doc-return-tag tag-name type-expression)
(create-js-doc-return-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocReturnTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocReturnTag`
(create-js-doc-satisfies-tag)
(create-js-doc-satisfies-tag tag-name)
(create-js-doc-satisfies-tag tag-name type-expression)
(create-js-doc-satisfies-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocSatisfiesTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocSatisfiesTag`
(create-js-doc-see-tag)
(create-js-doc-see-tag tag-name)
(create-js-doc-see-tag tag-name name-expression)
(create-js-doc-see-tag tag-name name-expression comment)
Parameters:
tag-name
: Identifier | undefined
name-expression
: JSDocNameReference | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocSeeTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `name-expression`: `JSDocNameReference | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocSeeTag`
(create-js-doc-signature)
(create-js-doc-signature type-parameters)
(create-js-doc-signature type-parameters parameters)
(create-js-doc-signature type-parameters parameters type)
Parameters:
type-parameters
: readonly JSDocTemplateTag[] | undefined
parameters
: readonly JSDocParameterTag[]
type
: JSDocReturnTag | undefined
Returns: JSDocSignature
**Parameters:** - `type-parameters`: `readonly JSDocTemplateTag[] | undefined` - `parameters`: `readonly JSDocParameterTag[]` - `type`: `JSDocReturnTag | undefined` **Returns:** `JSDocSignature`
(create-js-doc-template-tag)
(create-js-doc-template-tag tag-name)
(create-js-doc-template-tag tag-name constraint)
(create-js-doc-template-tag tag-name constraint type-parameters)
(create-js-doc-template-tag tag-name constraint type-parameters comment)
Parameters:
tag-name
: Identifier | undefined
constraint
: JSDocTypeExpression | undefined
type-parameters
: readonly TypeParameterDeclaration[]
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocTemplateTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `constraint`: `JSDocTypeExpression | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[]` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocTemplateTag`
(create-js-doc-text text)
Parameters:
text
: string
Returns: JSDocText
**Parameters:** - `text`: `string` **Returns:** `JSDocText`
(create-js-doc-this-tag)
(create-js-doc-this-tag tag-name)
(create-js-doc-this-tag tag-name type-expression)
(create-js-doc-this-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocThisTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocThisTag`
(create-js-doc-throws-tag tag-name)
(create-js-doc-throws-tag tag-name type-expression)
(create-js-doc-throws-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier
type-expression
: JSDocTypeExpression | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocThrowsTag
**Parameters:** - `tag-name`: `Identifier` - `type-expression`: `JSDocTypeExpression | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocThrowsTag`
(create-js-doc-type-expression type)
Parameters:
type
: TypeNode
Returns: JSDocTypeExpression
**Parameters:** - `type`: `TypeNode` **Returns:** `JSDocTypeExpression`
(create-js-doc-type-literal)
(create-js-doc-type-literal js-doc-property-tags)
(create-js-doc-type-literal js-doc-property-tags array-type?)
Parameters:
js-doc-property-tags
: readonly JSDocPropertyLikeTag[] | undefined
array-type?
: boolean | undefined
Returns: JSDocTypeLiteral
**Parameters:** - `js-doc-property-tags`: `readonly JSDocPropertyLikeTag[] | undefined` - `array-type?`: `boolean | undefined` **Returns:** `JSDocTypeLiteral`
(create-js-doc-type-tag)
(create-js-doc-type-tag tag-name)
(create-js-doc-type-tag tag-name type-expression)
(create-js-doc-type-tag tag-name type-expression comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocTypeTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocTypeTag`
(create-js-doc-typedef-tag)
(create-js-doc-typedef-tag tag-name)
(create-js-doc-typedef-tag tag-name type-expression)
(create-js-doc-typedef-tag tag-name type-expression full-name)
(create-js-doc-typedef-tag tag-name type-expression full-name comment)
Parameters:
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression | JSDocTypeLiteral | undefined
full-name
: Identifier | JSDocNamespaceDeclaration | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocTypedefTag
**Parameters:** - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression | JSDocTypeLiteral | undefined` - `full-name`: `Identifier | JSDocNamespaceDeclaration | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocTypedefTag`
(create-js-doc-unknown-tag tag-name)
(create-js-doc-unknown-tag tag-name comment)
Parameters:
tag-name
: Identifier
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocUnknownTag
**Parameters:** - `tag-name`: `Identifier` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocUnknownTag`
(create-js-doc-unknown-type)
Returns: JSDocUnknownType
**Returns:** `JSDocUnknownType`
(create-js-doc-variadic-type type)
Parameters:
type
: TypeNode
Returns: JSDocVariadicType
**Parameters:** - `type`: `TypeNode` **Returns:** `JSDocVariadicType`
(create-jsx-attribute name)
(create-jsx-attribute name initializer)
Parameters:
name
: JsxAttributeName
initializer
: JsxAttributeValue | undefined
Returns: JsxAttribute
**Parameters:** - `name`: `JsxAttributeName` - `initializer`: `JsxAttributeValue | undefined` **Returns:** `JsxAttribute`
(create-jsx-attributes properties)
Parameters:
properties
: readonly JsxAttributeLike[]
Returns: JsxAttributes
**Parameters:** - `properties`: `readonly JsxAttributeLike[]` **Returns:** `JsxAttributes`
(create-jsx-closing-element tag-name)
Parameters:
tag-name
: JsxTagNameExpression
Returns: JsxClosingElement
**Parameters:** - `tag-name`: `JsxTagNameExpression` **Returns:** `JsxClosingElement`
(create-jsx-element opening-element children closing-element)
Parameters:
opening-element
: JsxOpeningElement
children
: readonly JsxChild[]
closing-element
: JsxClosingElement
Returns: JsxElement
**Parameters:** - `opening-element`: `JsxOpeningElement` - `children`: `readonly JsxChild[]` - `closing-element`: `JsxClosingElement` **Returns:** `JsxElement`
(create-jsx-expression)
(create-jsx-expression dot-dot-dot-token)
(create-jsx-expression dot-dot-dot-token expression)
Parameters:
dot-dot-dot-token
: DotDotDotToken | undefined
expression
: Expression | undefined
Returns: JsxExpression
**Parameters:** - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `expression`: `Expression | undefined` **Returns:** `JsxExpression`
(create-jsx-fragment opening-fragment children closing-fragment)
Parameters:
opening-fragment
: JsxOpeningFragment
children
: readonly JsxChild[]
closing-fragment
: JsxClosingFragment
Returns: JsxFragment
**Parameters:** - `opening-fragment`: `JsxOpeningFragment` - `children`: `readonly JsxChild[]` - `closing-fragment`: `JsxClosingFragment` **Returns:** `JsxFragment`
(create-jsx-jsx-closing-fragment)
Returns: JsxClosingFragment
**Returns:** `JsxClosingFragment`
(create-jsx-namespaced-name namespace name)
Parameters:
namespace
: Identifier
name
: Identifier
Returns: JsxNamespacedName
**Parameters:** - `namespace`: `Identifier` - `name`: `Identifier` **Returns:** `JsxNamespacedName`
(create-jsx-opening-element tag-name)
(create-jsx-opening-element tag-name type-arguments)
(create-jsx-opening-element tag-name type-arguments attributes)
Parameters:
tag-name
: JsxTagNameExpression
type-arguments
: readonly TypeNode[] | undefined
attributes
: JsxAttributes
Returns: JsxOpeningElement
**Parameters:** - `tag-name`: `JsxTagNameExpression` - `type-arguments`: `readonly TypeNode[] | undefined` - `attributes`: `JsxAttributes` **Returns:** `JsxOpeningElement`
(create-jsx-opening-fragment)
Returns: JsxOpeningFragment
**Returns:** `JsxOpeningFragment`
(create-jsx-self-closing-element tag-name)
(create-jsx-self-closing-element tag-name type-arguments)
(create-jsx-self-closing-element tag-name type-arguments attributes)
Parameters:
tag-name
: JsxTagNameExpression
type-arguments
: readonly TypeNode[] | undefined
attributes
: JsxAttributes
Returns: JsxSelfClosingElement
**Parameters:** - `tag-name`: `JsxTagNameExpression` - `type-arguments`: `readonly TypeNode[] | undefined` - `attributes`: `JsxAttributes` **Returns:** `JsxSelfClosingElement`
(create-jsx-spread-attribute expression)
Parameters:
expression
: Expression
Returns: JsxSpreadAttribute
**Parameters:** - `expression`: `Expression` **Returns:** `JsxSpreadAttribute`
(create-jsx-text text)
(create-jsx-text text contains-only-trivia-white-spaces?)
Parameters:
text
: string
contains-only-trivia-white-spaces?
: boolean | undefined
Returns: JsxText
**Parameters:** - `text`: `string` - `contains-only-trivia-white-spaces?`: `boolean | undefined` **Returns:** `JsxText`
(create-keyword-type-node kind)
Parameters:
kind
: TKind
Returns: KeywordTypeNode<TKind>
**Parameters:** - `kind`: `TKind` **Returns:** `KeywordTypeNode<TKind>`
(create-labeled-statement label statement)
Parameters:
label
: string | Identifier
statement
: Statement
Returns: LabeledStatement
**Parameters:** - `label`: `string | Identifier` - `statement`: `Statement` **Returns:** `LabeledStatement`
(create-left-shift left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-less-than left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-less-than-equals left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-literal-type-node literal)
Parameters:
literal
: LiteralExpression | NullLiteral | BooleanLiteral | PrefixUnaryExpression
Returns: LiteralTypeNode
**Parameters:** - `literal`: `LiteralExpression | NullLiteral | BooleanLiteral | PrefixUnaryExpression` **Returns:** `LiteralTypeNode`
(create-logical-and left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-logical-not operand)
Parameters:
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-logical-or left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-loop-variable)
(create-loop-variable reserved-in-nested-scopes?)
Create a unique temporary variable for use in a loop.
Parameters:
reserved-in-nested-scopes?
: boolean | undefined
- When true
, reserves the temporary variable name in all nested scopes
during emit so that the variable can be referenced in a nested function body. This is an alternative to
setting EmitFlags.ReuseTempVariableScope
on the nested function itself.Returns: Identifier
Create a unique temporary variable for use in a loop. **Parameters:** - `reserved-in-nested-scopes?`: `boolean | undefined` - When `true`, reserves the temporary variable name in all nested scopes during emit so that the variable can be referenced in a nested function body. This is an alternative to setting `EmitFlags.ReuseTempVariableScope` on the nested function itself. **Returns:** `Identifier`
(create-mapped-type-node)
(create-mapped-type-node readonly-token)
(create-mapped-type-node readonly-token type-parameter)
(create-mapped-type-node readonly-token type-parameter name-type)
(create-mapped-type-node readonly-token type-parameter name-type question-token)
(create-mapped-type-node readonly-token
type-parameter
name-type
question-token
type)
(create-mapped-type-node readonly-token
type-parameter
name-type
question-token
type
members)
Parameters:
readonly-token
: ReadonlyKeyword | PlusToken | MinusToken | undefined
type-parameter
: TypeParameterDeclaration
name-type
: TypeNode | undefined
question-token
: QuestionToken | PlusToken | MinusToken | undefined
type
: TypeNode | undefined
members
: NodeArray<TypeElement> | undefined
Returns: MappedTypeNode
**Parameters:** - `readonly-token`: `ReadonlyKeyword | PlusToken | MinusToken | undefined` - `type-parameter`: `TypeParameterDeclaration` - `name-type`: `TypeNode | undefined` - `question-token`: `QuestionToken | PlusToken | MinusToken | undefined` - `type`: `TypeNode | undefined` - `members`: `NodeArray<TypeElement> | undefined` **Returns:** `MappedTypeNode`
(create-meta-property keyword-token name)
Parameters:
keyword-token
: SyntaxKind.ImportKeyword | SyntaxKind.NewKeyword
name
: Identifier
Returns: MetaProperty
**Parameters:** - `keyword-token`: `SyntaxKind.ImportKeyword | SyntaxKind.NewKeyword` - `name`: `Identifier` **Returns:** `MetaProperty`
(create-method-declaration)
(create-method-declaration modifiers)
(create-method-declaration modifiers asterisk-token)
(create-method-declaration modifiers asterisk-token name)
(create-method-declaration modifiers asterisk-token name question-token)
(create-method-declaration modifiers
asterisk-token
name
question-token
type-parameters)
(create-method-declaration modifiers
asterisk-token
name
question-token
type-parameters
parameters)
(create-method-declaration modifiers
asterisk-token
name
question-token
type-parameters
parameters
type)
(create-method-declaration modifiers
asterisk-token
name
question-token
type-parameters
parameters
type
body)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
asterisk-token
: AsteriskToken | undefined
name
: string | PropertyName
question-token
: QuestionToken | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block | undefined
Returns: MethodDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `asterisk-token`: `AsteriskToken | undefined` - `name`: `string | PropertyName` - `question-token`: `QuestionToken | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block | undefined` **Returns:** `MethodDeclaration`
(create-method-signature)
(create-method-signature modifiers)
(create-method-signature modifiers name)
(create-method-signature modifiers name question-token)
(create-method-signature modifiers name question-token type-parameters)
(create-method-signature modifiers
name
question-token
type-parameters
parameters)
(create-method-signature modifiers
name
question-token
type-parameters
parameters
type)
Parameters:
modifiers
: readonly Modifier[] | undefined
name
: string | PropertyName
question-token
: QuestionToken | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
Returns: MethodSignature
**Parameters:** - `modifiers`: `readonly Modifier[] | undefined` - `name`: `string | PropertyName` - `question-token`: `QuestionToken | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` **Returns:** `MethodSignature`
(create-modifier kind)
Parameters:
kind
: T
Returns: ModifierToken<T>
**Parameters:** - `kind`: `T` **Returns:** `ModifierToken<T>`
(create-modifiers-from-modifier-flags flags)
Parameters:
flags
: ModifierFlags
Returns: Modifier[] | undefined
**Parameters:** - `flags`: `ModifierFlags` **Returns:** `Modifier[] | undefined`
(create-module-block statements)
Parameters:
statements
: readonly Statement[]
Returns: ModuleBlock
**Parameters:** - `statements`: `readonly Statement[]` **Returns:** `ModuleBlock`
(create-module-declaration)
(create-module-declaration modifiers)
(create-module-declaration modifiers name)
(create-module-declaration modifiers name body)
(create-module-declaration modifiers name body flags)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: ModuleName
body
: ModuleBody | undefined
flags
: NodeFlags | undefined
Returns: ModuleDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `ModuleName` - `body`: `ModuleBody | undefined` - `flags`: `NodeFlags | undefined` **Returns:** `ModuleDeclaration`
(create-modulo left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-multiply left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-named-exports elements)
Parameters:
elements
: readonly ExportSpecifier[]
Returns: NamedExports
**Parameters:** - `elements`: `readonly ExportSpecifier[]` **Returns:** `NamedExports`
(create-named-imports elements)
Parameters:
elements
: readonly ImportSpecifier[]
Returns: NamedImports
**Parameters:** - `elements`: `readonly ImportSpecifier[]` **Returns:** `NamedImports`
(create-named-tuple-member)
(create-named-tuple-member dot-dot-dot-token)
(create-named-tuple-member dot-dot-dot-token name)
(create-named-tuple-member dot-dot-dot-token name question-token)
(create-named-tuple-member dot-dot-dot-token name question-token type)
Parameters:
dot-dot-dot-token
: DotDotDotToken | undefined
name
: Identifier
question-token
: QuestionToken | undefined
type
: TypeNode
Returns: NamedTupleMember
**Parameters:** - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `name`: `Identifier` - `question-token`: `QuestionToken | undefined` - `type`: `TypeNode` **Returns:** `NamedTupleMember`
(create-namespace-export name)
Parameters:
name
: Identifier
Returns: NamespaceExport
**Parameters:** - `name`: `Identifier` **Returns:** `NamespaceExport`
(create-namespace-export-declaration name)
Parameters:
name
: string | Identifier
Returns: NamespaceExportDeclaration
**Parameters:** - `name`: `string | Identifier` **Returns:** `NamespaceExportDeclaration`
(create-namespace-import name)
Parameters:
name
: Identifier
Returns: NamespaceImport
**Parameters:** - `name`: `Identifier` **Returns:** `NamespaceImport`
(create-new-expression expression)
(create-new-expression expression type-arguments)
(create-new-expression expression type-arguments arguments-array)
Parameters:
expression
: Expression
type-arguments
: readonly TypeNode[] | undefined
arguments-array
: readonly Expression[] | undefined
Returns: NewExpression
**Parameters:** - `expression`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` - `arguments-array`: `readonly Expression[] | undefined` **Returns:** `NewExpression`
(create-no-substitution-template-literal)
(create-no-substitution-template-literal text)
(create-no-substitution-template-literal text raw-text)
Parameters:
text
: string | undefined
raw-text
: string
Returns: NoSubstitutionTemplateLiteral
**Parameters:** - `text`: `string | undefined` - `raw-text`: `string` **Returns:** `NoSubstitutionTemplateLiteral`
(create-node-array)
(create-node-array elements)
(create-node-array elements has-trailing-comma?)
Parameters:
elements
: readonly T[] | undefined
has-trailing-comma?
: boolean | undefined
Returns: NodeArray<T>
**Parameters:** - `elements`: `readonly T[] | undefined` - `has-trailing-comma?`: `boolean | undefined` **Returns:** `NodeArray<T>`
(create-non-null-chain expression)
Parameters:
expression
: Expression
Returns: NonNullChain
**Parameters:** - `expression`: `Expression` **Returns:** `NonNullChain`
(create-non-null-expression expression)
Parameters:
expression
: Expression
Returns: NonNullExpression
**Parameters:** - `expression`: `Expression` **Returns:** `NonNullExpression`
(create-not-emitted-statement original)
Parameters:
original
: Node
Returns: NotEmittedStatement
**Parameters:** - `original`: `Node` **Returns:** `NotEmittedStatement`
(create-numeric-literal value)
(create-numeric-literal value numeric-literal-flags)
Parameters:
value
: string | number
numeric-literal-flags
: TokenFlags | undefined
Returns: NumericLiteral
**Parameters:** - `value`: `string | number` - `numeric-literal-flags`: `TokenFlags | undefined` **Returns:** `NumericLiteral`
(create-object-binding-pattern elements)
Parameters:
elements
: readonly BindingElement[]
Returns: ObjectBindingPattern
**Parameters:** - `elements`: `readonly BindingElement[]` **Returns:** `ObjectBindingPattern`
(create-object-literal-expression)
(create-object-literal-expression properties)
(create-object-literal-expression properties multi-line?)
Parameters:
properties
: readonly ObjectLiteralElementLike[] | undefined
multi-line?
: boolean | undefined
Returns: ObjectLiteralExpression
**Parameters:** - `properties`: `readonly ObjectLiteralElementLike[] | undefined` - `multi-line?`: `boolean | undefined` **Returns:** `ObjectLiteralExpression`
(create-omitted-expression)
Returns: OmittedExpression
**Returns:** `OmittedExpression`
(create-optional-type-node type)
Parameters:
type
: TypeNode
Returns: OptionalTypeNode
**Parameters:** - `type`: `TypeNode` **Returns:** `OptionalTypeNode`
(create-parameter-declaration)
(create-parameter-declaration modifiers)
(create-parameter-declaration modifiers dot-dot-dot-token)
(create-parameter-declaration modifiers dot-dot-dot-token name)
(create-parameter-declaration modifiers dot-dot-dot-token name question-token)
(create-parameter-declaration modifiers
dot-dot-dot-token
name
question-token
type)
(create-parameter-declaration modifiers
dot-dot-dot-token
name
question-token
type
initializer)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
dot-dot-dot-token
: DotDotDotToken | undefined
name
: string | BindingName
question-token
: QuestionToken | undefined
type
: TypeNode | undefined
initializer
: Expression | undefined
Returns: ParameterDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `name`: `string | BindingName` - `question-token`: `QuestionToken | undefined` - `type`: `TypeNode | undefined` - `initializer`: `Expression | undefined` **Returns:** `ParameterDeclaration`
(create-parenthesized-expression expression)
Parameters:
expression
: Expression
Returns: ParenthesizedExpression
**Parameters:** - `expression`: `Expression` **Returns:** `ParenthesizedExpression`
(create-parenthesized-type type)
Parameters:
type
: TypeNode
Returns: ParenthesizedTypeNode
**Parameters:** - `type`: `TypeNode` **Returns:** `ParenthesizedTypeNode`
(create-partially-emitted-expression expression)
(create-partially-emitted-expression expression original)
Parameters:
expression
: Expression
original
: Node | undefined
Returns: PartiallyEmittedExpression
**Parameters:** - `expression`: `Expression` - `original`: `Node | undefined` **Returns:** `PartiallyEmittedExpression`
(create-postfix-decrement operand)
Parameters:
operand
: Expression
Returns: PostfixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PostfixUnaryExpression`
(create-postfix-increment operand)
Parameters:
operand
: Expression
Returns: PostfixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PostfixUnaryExpression`
(create-postfix-unary-expression operand operator)
Parameters:
operand
: Expression
operator
: PostfixUnaryOperator
Returns: PostfixUnaryExpression
**Parameters:** - `operand`: `Expression` - `operator`: `PostfixUnaryOperator` **Returns:** `PostfixUnaryExpression`
(create-prefix-decrement operand)
Parameters:
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-prefix-increment operand)
Parameters:
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-prefix-minus operand)
Parameters:
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-prefix-plus operand)
Parameters:
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-prefix-unary-expression operator operand)
Parameters:
operator
: PrefixUnaryOperator
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `operator`: `PrefixUnaryOperator` - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(create-private-identifier text)
Parameters:
text
: string
Returns: PrivateIdentifier
**Parameters:** - `text`: `string` **Returns:** `PrivateIdentifier`
(create-property-access-chain expression)
(create-property-access-chain expression question-dot-token)
(create-property-access-chain expression question-dot-token name)
Parameters:
expression
: Expression
question-dot-token
: QuestionDotToken | undefined
name
: string | MemberName
Returns: PropertyAccessChain
**Parameters:** - `expression`: `Expression` - `question-dot-token`: `QuestionDotToken | undefined` - `name`: `string | MemberName` **Returns:** `PropertyAccessChain`
(create-property-access-expression expression name)
Parameters:
expression
: Expression
name
: string | MemberName
Returns: PropertyAccessExpression
**Parameters:** - `expression`: `Expression` - `name`: `string | MemberName` **Returns:** `PropertyAccessExpression`
(create-property-assignment name initializer)
Parameters:
name
: string | PropertyName
initializer
: Expression
Returns: PropertyAssignment
**Parameters:** - `name`: `string | PropertyName` - `initializer`: `Expression` **Returns:** `PropertyAssignment`
(create-property-declaration)
(create-property-declaration modifiers)
(create-property-declaration modifiers name)
(create-property-declaration modifiers name question-or-exclamation-token)
(create-property-declaration modifiers name question-or-exclamation-token type)
(create-property-declaration modifiers
name
question-or-exclamation-token
type
initializer)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | PropertyName
question-or-exclamation-token
: QuestionToken | ExclamationToken | undefined
type
: TypeNode | undefined
initializer
: Expression | undefined
Returns: PropertyDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | PropertyName` - `question-or-exclamation-token`: `QuestionToken | ExclamationToken | undefined` - `type`: `TypeNode | undefined` - `initializer`: `Expression | undefined` **Returns:** `PropertyDeclaration`
(create-property-signature)
(create-property-signature modifiers)
(create-property-signature modifiers name)
(create-property-signature modifiers name question-token)
(create-property-signature modifiers name question-token type)
Parameters:
modifiers
: readonly Modifier[] | undefined
name
: string | PropertyName
question-token
: QuestionToken | undefined
type
: TypeNode | undefined
Returns: PropertySignature
**Parameters:** - `modifiers`: `readonly Modifier[] | undefined` - `name`: `string | PropertyName` - `question-token`: `QuestionToken | undefined` - `type`: `TypeNode | undefined` **Returns:** `PropertySignature`
(create-qualified-name left right)
Parameters:
left
: EntityName
right
: string | Identifier
Returns: QualifiedName
**Parameters:** - `left`: `EntityName` - `right`: `string | Identifier` **Returns:** `QualifiedName`
(create-regular-expression-literal text)
Parameters:
text
: string
Returns: RegularExpressionLiteral
**Parameters:** - `text`: `string` **Returns:** `RegularExpressionLiteral`
(create-rest-type-node type)
Parameters:
type
: TypeNode
Returns: RestTypeNode
**Parameters:** - `type`: `TypeNode` **Returns:** `RestTypeNode`
(create-return-statement)
(create-return-statement expression)
Parameters:
expression
: Expression | undefined
Returns: ReturnStatement
**Parameters:** - `expression`: `Expression | undefined` **Returns:** `ReturnStatement`
(create-right-shift left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-satisfies-expression expression type)
Parameters:
expression
: Expression
type
: TypeNode
Returns: SatisfiesExpression
**Parameters:** - `expression`: `Expression` - `type`: `TypeNode` **Returns:** `SatisfiesExpression`
(create-semicolon-class-element)
Returns: SemicolonClassElement
**Returns:** `SemicolonClassElement`
(create-set-accessor-declaration)
(create-set-accessor-declaration modifiers)
(create-set-accessor-declaration modifiers name)
(create-set-accessor-declaration modifiers name parameters)
(create-set-accessor-declaration modifiers name parameters body)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | PropertyName
parameters
: readonly ParameterDeclaration[]
body
: Block | undefined
Returns: SetAccessorDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | PropertyName` - `parameters`: `readonly ParameterDeclaration[]` - `body`: `Block | undefined` **Returns:** `SetAccessorDeclaration`
(create-shorthand-property-assignment name)
(create-shorthand-property-assignment name object-assignment-initializer)
Parameters:
name
: string | Identifier
object-assignment-initializer
: Expression | undefined
Returns: ShorthandPropertyAssignment
**Parameters:** - `name`: `string | Identifier` - `object-assignment-initializer`: `Expression | undefined` **Returns:** `ShorthandPropertyAssignment`
(create-source-file statements end-of-file-token flags)
Parameters:
statements
: readonly Statement[]
end-of-file-token
: EndOfFileToken
flags
: NodeFlags
Returns: SourceFile
**Parameters:** - `statements`: `readonly Statement[]` - `end-of-file-token`: `EndOfFileToken` - `flags`: `NodeFlags` **Returns:** `SourceFile`
(create-spread-assignment expression)
Parameters:
expression
: Expression
Returns: SpreadAssignment
**Parameters:** - `expression`: `Expression` **Returns:** `SpreadAssignment`
(create-spread-element expression)
Parameters:
expression
: Expression
Returns: SpreadElement
**Parameters:** - `expression`: `Expression` **Returns:** `SpreadElement`
(create-strict-equality left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-strict-inequality left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-string-literal text)
(create-string-literal text single-quote?)
Parameters:
text
: string
single-quote?
: boolean | undefined
Returns: StringLiteral
**Parameters:** - `text`: `string` - `single-quote?`: `boolean | undefined` **Returns:** `StringLiteral`
(create-string-literal-from-node source-node)
(create-string-literal-from-node source-node single-quote?)
Parameters:
source-node
: PrivateIdentifier | PropertyNameLiteral
single-quote?
: boolean | undefined
Returns: StringLiteral
**Parameters:** - `source-node`: `PrivateIdentifier | PropertyNameLiteral` - `single-quote?`: `boolean | undefined` **Returns:** `StringLiteral`
(create-subtract left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-super)
Returns: SuperExpression
**Returns:** `SuperExpression`
(create-switch-statement expression case-block)
Parameters:
expression
: Expression
case-block
: CaseBlock
Returns: SwitchStatement
**Parameters:** - `expression`: `Expression` - `case-block`: `CaseBlock` **Returns:** `SwitchStatement`
(create-tagged-template-expression tag)
(create-tagged-template-expression tag type-arguments)
(create-tagged-template-expression tag type-arguments template)
Parameters:
tag
: Expression
type-arguments
: readonly TypeNode[] | undefined
template
: TemplateLiteral
Returns: TaggedTemplateExpression
**Parameters:** - `tag`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` - `template`: `TemplateLiteral` **Returns:** `TaggedTemplateExpression`
(create-temp-variable)
(create-temp-variable record-temp-variable)
(create-temp-variable record-temp-variable reserved-in-nested-scopes?)
Create a unique temporary variable.
Parameters:
record-temp-variable
: ((node: Identifier) => void) | undefined
- An optional callback used to record the temporary variable name. This
should usually be a reference to hoistVariableDeclaration
from a TransformationContext
, but
can be undefined
if you plan to record the temporary variable manually.reserved-in-nested-scopes?
: boolean | undefined
- When true
, reserves the temporary variable name in all nested scopes
during emit so that the variable can be referenced in a nested function body. This is an alternative to
setting EmitFlags.ReuseTempVariableScope
on the nested function itself.Returns: Identifier
Create a unique temporary variable. **Parameters:** - `record-temp-variable`: `((node: Identifier) => void) | undefined` - An optional callback used to record the temporary variable name. This should usually be a reference to `hoistVariableDeclaration` from a `TransformationContext`, but can be `undefined` if you plan to record the temporary variable manually. - `reserved-in-nested-scopes?`: `boolean | undefined` - When `true`, reserves the temporary variable name in all nested scopes during emit so that the variable can be referenced in a nested function body. This is an alternative to setting `EmitFlags.ReuseTempVariableScope` on the nested function itself. **Returns:** `Identifier`
(create-template-expression head template-spans)
Parameters:
head
: TemplateHead
template-spans
: readonly TemplateSpan[]
Returns: TemplateExpression
**Parameters:** - `head`: `TemplateHead` - `template-spans`: `readonly TemplateSpan[]` **Returns:** `TemplateExpression`
(create-template-head)
(create-template-head text)
(create-template-head text raw-text)
(create-template-head text raw-text template-flags)
Parameters:
text
: string | undefined
raw-text
: string
template-flags
: TokenFlags | undefined
Returns: TemplateHead
**Parameters:** - `text`: `string | undefined` - `raw-text`: `string` - `template-flags`: `TokenFlags | undefined` **Returns:** `TemplateHead`
(create-template-literal-type head template-spans)
Parameters:
head
: TemplateHead
template-spans
: readonly TemplateLiteralTypeSpan[]
Returns: TemplateLiteralTypeNode
**Parameters:** - `head`: `TemplateHead` - `template-spans`: `readonly TemplateLiteralTypeSpan[]` **Returns:** `TemplateLiteralTypeNode`
(create-template-literal-type-span type literal)
Parameters:
type
: TypeNode
literal
: TemplateMiddle | TemplateTail
Returns: TemplateLiteralTypeSpan
**Parameters:** - `type`: `TypeNode` - `literal`: `TemplateMiddle | TemplateTail` **Returns:** `TemplateLiteralTypeSpan`
(create-template-middle)
(create-template-middle text)
(create-template-middle text raw-text)
(create-template-middle text raw-text template-flags)
Parameters:
text
: string | undefined
raw-text
: string
template-flags
: TokenFlags | undefined
Returns: TemplateMiddle
**Parameters:** - `text`: `string | undefined` - `raw-text`: `string` - `template-flags`: `TokenFlags | undefined` **Returns:** `TemplateMiddle`
(create-template-span expression literal)
Parameters:
expression
: Expression
literal
: TemplateMiddle | TemplateTail
Returns: TemplateSpan
**Parameters:** - `expression`: `Expression` - `literal`: `TemplateMiddle | TemplateTail` **Returns:** `TemplateSpan`
(create-template-tail)
(create-template-tail text)
(create-template-tail text raw-text)
(create-template-tail text raw-text template-flags)
Parameters:
text
: string | undefined
raw-text
: string
template-flags
: TokenFlags | undefined
Returns: TemplateTail
**Parameters:** - `text`: `string | undefined` - `raw-text`: `string` - `template-flags`: `TokenFlags | undefined` **Returns:** `TemplateTail`
(create-this)
Returns: ThisExpression
**Returns:** `ThisExpression`
(create-this-type-node)
Returns: ThisTypeNode
**Returns:** `ThisTypeNode`
(create-throw-statement expression)
Parameters:
expression
: Expression
Returns: ThrowStatement
**Parameters:** - `expression`: `Expression` **Returns:** `ThrowStatement`
(create-token token)
Parameters:
token
: TKind
Returns: KeywordToken<TKind>
**Parameters:** - `token`: `TKind` **Returns:** `KeywordToken<TKind>`
(create-try-statement try-block)
(create-try-statement try-block catch-clause)
(create-try-statement try-block catch-clause finally-block)
Parameters:
try-block
: Block
catch-clause
: CatchClause | undefined
finally-block
: Block | undefined
Returns: TryStatement
**Parameters:** - `try-block`: `Block` - `catch-clause`: `CatchClause | undefined` - `finally-block`: `Block | undefined` **Returns:** `TryStatement`
(create-tuple-type-node elements)
Parameters:
elements
: readonly (TypeNode | NamedTupleMember)[]
Returns: TupleTypeNode
**Parameters:** - `elements`: `readonly (TypeNode | NamedTupleMember)[]` **Returns:** `TupleTypeNode`
(create-type-alias-declaration)
(create-type-alias-declaration modifiers)
(create-type-alias-declaration modifiers name)
(create-type-alias-declaration modifiers name type-parameters)
(create-type-alias-declaration modifiers name type-parameters type)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
name
: string | Identifier
type-parameters
: readonly TypeParameterDeclaration[] | undefined
type
: TypeNode
Returns: TypeAliasDeclaration
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | Identifier` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `type`: `TypeNode` **Returns:** `TypeAliasDeclaration`
(create-type-assertion type expression)
Parameters:
type
: TypeNode
expression
: Expression
Returns: TypeAssertion
**Parameters:** - `type`: `TypeNode` - `expression`: `Expression` **Returns:** `TypeAssertion`
(create-type-literal-node)
(create-type-literal-node members)
Parameters:
members
: readonly TypeElement[] | undefined
Returns: TypeLiteralNode
**Parameters:** - `members`: `readonly TypeElement[] | undefined` **Returns:** `TypeLiteralNode`
(create-type-of-expression expression)
Parameters:
expression
: Expression
Returns: TypeOfExpression
**Parameters:** - `expression`: `Expression` **Returns:** `TypeOfExpression`
(create-type-operator-node operator type)
Parameters:
operator
: SyntaxKind.KeyOfKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.UniqueKeyword
type
: TypeNode
Returns: TypeOperatorNode
**Parameters:** - `operator`: `SyntaxKind.KeyOfKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.UniqueKeyword` - `type`: `TypeNode` **Returns:** `TypeOperatorNode`
(create-type-parameter-declaration)
(create-type-parameter-declaration modifiers)
(create-type-parameter-declaration modifiers name)
(create-type-parameter-declaration modifiers name constraint)
(create-type-parameter-declaration modifiers name constraint default-type)
Parameters:
modifiers
: readonly Modifier[] | undefined
name
: string | Identifier
constraint
: TypeNode | undefined
default-type
: TypeNode | undefined
Returns: TypeParameterDeclaration
**Parameters:** - `modifiers`: `readonly Modifier[] | undefined` - `name`: `string | Identifier` - `constraint`: `TypeNode | undefined` - `default-type`: `TypeNode | undefined` **Returns:** `TypeParameterDeclaration`
(create-type-predicate-node)
(create-type-predicate-node asserts-modifier)
(create-type-predicate-node asserts-modifier parameter-name)
(create-type-predicate-node asserts-modifier parameter-name type)
Parameters:
asserts-modifier
: AssertsKeyword | undefined
parameter-name
: string | Identifier | ThisTypeNode
type
: TypeNode | undefined
Returns: TypePredicateNode
**Parameters:** - `asserts-modifier`: `AssertsKeyword | undefined` - `parameter-name`: `string | Identifier | ThisTypeNode` - `type`: `TypeNode | undefined` **Returns:** `TypePredicateNode`
(create-type-query-node expr-name)
(create-type-query-node expr-name type-arguments)
Parameters:
expr-name
: EntityName
type-arguments
: readonly TypeNode[] | undefined
Returns: TypeQueryNode
**Parameters:** - `expr-name`: `EntityName` - `type-arguments`: `readonly TypeNode[] | undefined` **Returns:** `TypeQueryNode`
(create-type-reference-node type-name)
(create-type-reference-node type-name type-arguments)
Parameters:
type-name
: string | EntityName
type-arguments
: readonly TypeNode[] | undefined
Returns: TypeReferenceNode
**Parameters:** - `type-name`: `string | EntityName` - `type-arguments`: `readonly TypeNode[] | undefined` **Returns:** `TypeReferenceNode`
(create-union-type-node types)
Parameters:
types
: readonly TypeNode[]
Returns: UnionTypeNode
**Parameters:** - `types`: `readonly TypeNode[]` **Returns:** `UnionTypeNode`
(create-unique-name text)
(create-unique-name text flags)
Create a unique name based on the supplied text.
Parameters:
text
: string
flags
: GeneratedIdentifierFlags | undefined
Returns: Identifier
Create a unique name based on the supplied text. **Parameters:** - `text`: `string` - `flags`: `GeneratedIdentifierFlags | undefined` **Returns:** `Identifier`
(create-unique-private-name)
(create-unique-private-name text)
Parameters:
text
: string | undefined
Returns: PrivateIdentifier
**Parameters:** - `text`: `string | undefined` **Returns:** `PrivateIdentifier`
(create-unsigned-right-shift left right)
Parameters:
left
: Expression
right
: Expression
Returns: BinaryExpression
**Parameters:** - `left`: `Expression` - `right`: `Expression` **Returns:** `BinaryExpression`
(create-variable-declaration name)
(create-variable-declaration name exclamation-token)
(create-variable-declaration name exclamation-token type)
(create-variable-declaration name exclamation-token type initializer)
Parameters:
name
: string | BindingName
exclamation-token
: ExclamationToken | undefined
type
: TypeNode | undefined
initializer
: Expression | undefined
Returns: VariableDeclaration
**Parameters:** - `name`: `string | BindingName` - `exclamation-token`: `ExclamationToken | undefined` - `type`: `TypeNode | undefined` - `initializer`: `Expression | undefined` **Returns:** `VariableDeclaration`
(create-variable-declaration-list declarations)
(create-variable-declaration-list declarations flags)
Parameters:
declarations
: readonly VariableDeclaration[]
flags
: NodeFlags | undefined
Returns: VariableDeclarationList
**Parameters:** - `declarations`: `readonly VariableDeclaration[]` - `flags`: `NodeFlags | undefined` **Returns:** `VariableDeclarationList`
(create-variable-statement)
(create-variable-statement modifiers)
(create-variable-statement modifiers declaration-list)
Parameters:
modifiers
: readonly ModifierLike[] | undefined
declaration-list
: VariableDeclarationList | readonly VariableDeclaration[]
Returns: VariableStatement
**Parameters:** - `modifiers`: `readonly ModifierLike[] | undefined` - `declaration-list`: `VariableDeclarationList | readonly VariableDeclaration[]` **Returns:** `VariableStatement`
(create-void-expression expression)
Parameters:
expression
: Expression
Returns: VoidExpression
**Parameters:** - `expression`: `Expression` **Returns:** `VoidExpression`
(create-void-zero)
Returns: VoidExpression
**Returns:** `VoidExpression`
(create-while-statement expression statement)
Parameters:
expression
: Expression
statement
: Statement
Returns: WhileStatement
**Parameters:** - `expression`: `Expression` - `statement`: `Statement` **Returns:** `WhileStatement`
(create-with-statement expression statement)
Parameters:
expression
: Expression
statement
: Statement
Returns: WithStatement
**Parameters:** - `expression`: `Expression` - `statement`: `Statement` **Returns:** `WithStatement`
(create-yield-expression)
(create-yield-expression asterisk-token)
(create-yield-expression asterisk-token expression)
Parameters:
asterisk-token
: undefined
expression
: Expression | undefined
Returns: YieldExpression
**Parameters:** - `asterisk-token`: `undefined` - `expression`: `Expression | undefined` **Returns:** `YieldExpression`
(generated-name-for-node)
(generated-name-for-node node)
(generated-name-for-node node flags)
Create a unique name generated for a node.
Parameters:
node
: Node | undefined
flags
: GeneratedIdentifierFlags | undefined
Returns: Identifier
Create a unique name generated for a node. **Parameters:** - `node`: `Node | undefined` - `flags`: `GeneratedIdentifierFlags | undefined` **Returns:** `Identifier`
(generated-private-name-for-node node)
Parameters:
node
: Node
Returns: PrivateIdentifier
**Parameters:** - `node`: `Node` **Returns:** `PrivateIdentifier`
(replace-decorators-and-modifiers node)
(replace-decorators-and-modifiers node modifiers)
Updates a node that may contain decorators or modifiers, replacing only the decorators and modifiers of the node.
Parameters:
node
: T
modifiers
: readonly ModifierLike[] | undefined
Returns: T
Updates a node that may contain decorators or modifiers, replacing only the decorators and modifiers of the node. **Parameters:** - `node`: `T` - `modifiers`: `readonly ModifierLike[] | undefined` **Returns:** `T`
(replace-modifiers node)
(replace-modifiers node modifiers)
Updates a node that may contain modifiers, replacing only the modifiers of the node.
Parameters:
node
: T
modifiers
: ModifierFlags | readonly Modifier[] | undefined
Returns: T
Updates a node that may contain modifiers, replacing only the modifiers of the node. **Parameters:** - `node`: `T` - `modifiers`: `ModifierFlags | readonly Modifier[] | undefined` **Returns:** `T`
(replace-property-name node name)
Updates a node that contains a property name, replacing only the name of the node.
Parameters:
node
: T
name
: T["name"]
Returns: T
Updates a node that contains a property name, replacing only the name of the node. **Parameters:** - `node`: `T` - `name`: `T["name"]` **Returns:** `T`
(restore-outer-expressions)
(restore-outer-expressions outer-expression)
(restore-outer-expressions outer-expression inner-expression)
(restore-outer-expressions outer-expression inner-expression kinds)
Parameters:
outer-expression
: Expression | undefined
inner-expression
: Expression
kinds
: OuterExpressionKinds | undefined
Returns: Expression
**Parameters:** - `outer-expression`: `Expression | undefined` - `inner-expression`: `Expression` - `kinds`: `OuterExpressionKinds | undefined` **Returns:** `Expression`
(update-array-binding-pattern node elements)
Parameters:
node
: ArrayBindingPattern
elements
: readonly ArrayBindingElement[]
Returns: ArrayBindingPattern
**Parameters:** - `node`: `ArrayBindingPattern` - `elements`: `readonly ArrayBindingElement[]` **Returns:** `ArrayBindingPattern`
(update-array-literal-expression node elements)
Parameters:
node
: ArrayLiteralExpression
elements
: readonly Expression[]
Returns: ArrayLiteralExpression
**Parameters:** - `node`: `ArrayLiteralExpression` - `elements`: `readonly Expression[]` **Returns:** `ArrayLiteralExpression`
(update-array-type-node node element-type)
Parameters:
node
: ArrayTypeNode
element-type
: TypeNode
Returns: ArrayTypeNode
**Parameters:** - `node`: `ArrayTypeNode` - `element-type`: `TypeNode` **Returns:** `ArrayTypeNode`
(update-arrow-function node)
(update-arrow-function node modifiers)
(update-arrow-function node modifiers type-parameters)
(update-arrow-function node modifiers type-parameters parameters)
(update-arrow-function node modifiers type-parameters parameters type)
(update-arrow-function node
modifiers
type-parameters
parameters
type
equals-greater-than-token)
(update-arrow-function node
modifiers
type-parameters
parameters
type
equals-greater-than-token
body)
Parameters:
node
: ArrowFunction
modifiers
: readonly Modifier[] | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
equals-greater-than-token
: EqualsGreaterThanToken
body
: ConciseBody
Returns: ArrowFunction
**Parameters:** - `node`: `ArrowFunction` - `modifiers`: `readonly Modifier[] | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `equals-greater-than-token`: `EqualsGreaterThanToken` - `body`: `ConciseBody` **Returns:** `ArrowFunction`
(update-as-expression node expression type)
Parameters:
node
: AsExpression
expression
: Expression
type
: TypeNode
Returns: AsExpression
**Parameters:** - `node`: `AsExpression` - `expression`: `Expression` - `type`: `TypeNode` **Returns:** `AsExpression`
(update-assert-clause node elements)
(update-assert-clause node elements multi-line?)
Parameters:
node
: AssertClause
elements
: NodeArray<AssertEntry>
multi-line?
: boolean | undefined
Returns: AssertClause
**Parameters:** - `node`: `AssertClause` - `elements`: `NodeArray<AssertEntry>` - `multi-line?`: `boolean | undefined` **Returns:** `AssertClause`
(update-assert-entry node name value)
Parameters:
node
: AssertEntry
name
: ImportAttributeName
value
: Expression
Returns: AssertEntry
**Parameters:** - `node`: `AssertEntry` - `name`: `ImportAttributeName` - `value`: `Expression` **Returns:** `AssertEntry`
(update-await-expression node expression)
Parameters:
node
: AwaitExpression
expression
: Expression
Returns: AwaitExpression
**Parameters:** - `node`: `AwaitExpression` - `expression`: `Expression` **Returns:** `AwaitExpression`
(update-binary-expression node left operator right)
Parameters:
node
: BinaryExpression
left
: Expression
operator
: BinaryOperator | BinaryOperatorToken
right
: Expression
Returns: BinaryExpression
**Parameters:** - `node`: `BinaryExpression` - `left`: `Expression` - `operator`: `BinaryOperator | BinaryOperatorToken` - `right`: `Expression` **Returns:** `BinaryExpression`
(update-binding-element node)
(update-binding-element node dot-dot-dot-token)
(update-binding-element node dot-dot-dot-token property-name)
(update-binding-element node dot-dot-dot-token property-name name)
(update-binding-element node dot-dot-dot-token property-name name initializer)
Parameters:
node
: BindingElement
dot-dot-dot-token
: DotDotDotToken | undefined
property-name
: PropertyName | undefined
name
: BindingName
initializer
: Expression | undefined
Returns: BindingElement
**Parameters:** - `node`: `BindingElement` - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `property-name`: `PropertyName | undefined` - `name`: `BindingName` - `initializer`: `Expression | undefined` **Returns:** `BindingElement`
(update-block node statements)
Parameters:
node
: Block
statements
: readonly Statement[]
Returns: Block
**Parameters:** - `node`: `Block` - `statements`: `readonly Statement[]` **Returns:** `Block`
(update-break-statement node)
(update-break-statement node label)
Parameters:
node
: BreakStatement
label
: Identifier | undefined
Returns: BreakStatement
**Parameters:** - `node`: `BreakStatement` - `label`: `Identifier | undefined` **Returns:** `BreakStatement`
(update-bundle node source-files)
(update-bundle node source-files prepends)
Parameters:
node
: Bundle
source-files
: readonly SourceFile[]
prepends
: readonly (UnparsedSource | InputFiles)[] | undefined
Returns: Bundle
**Parameters:** - `node`: `Bundle` - `source-files`: `readonly SourceFile[]` - `prepends`: `readonly (UnparsedSource | InputFiles)[] | undefined` **Returns:** `Bundle`
(update-call-chain node expression)
(update-call-chain node expression question-dot-token)
(update-call-chain node expression question-dot-token type-arguments)
(update-call-chain node
expression
question-dot-token
type-arguments
arguments-array)
Parameters:
node
: CallChain
expression
: Expression
question-dot-token
: QuestionDotToken | undefined
type-arguments
: readonly TypeNode[] | undefined
arguments-array
: readonly Expression[]
Returns: CallChain
**Parameters:** - `node`: `CallChain` - `expression`: `Expression` - `question-dot-token`: `QuestionDotToken | undefined` - `type-arguments`: `readonly TypeNode[] | undefined` - `arguments-array`: `readonly Expression[]` **Returns:** `CallChain`
(update-call-expression node expression)
(update-call-expression node expression type-arguments)
(update-call-expression node expression type-arguments arguments-array)
Parameters:
node
: CallExpression
expression
: Expression
type-arguments
: readonly TypeNode[] | undefined
arguments-array
: readonly Expression[]
Returns: CallExpression
**Parameters:** - `node`: `CallExpression` - `expression`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` - `arguments-array`: `readonly Expression[]` **Returns:** `CallExpression`
(update-call-signature node)
(update-call-signature node type-parameters)
(update-call-signature node type-parameters parameters)
(update-call-signature node type-parameters parameters type)
Parameters:
node
: CallSignatureDeclaration
type-parameters
: NodeArray<TypeParameterDeclaration> | undefined
parameters
: NodeArray<ParameterDeclaration>
type
: TypeNode | undefined
Returns: CallSignatureDeclaration
**Parameters:** - `node`: `CallSignatureDeclaration` - `type-parameters`: `NodeArray<TypeParameterDeclaration> | undefined` - `parameters`: `NodeArray<ParameterDeclaration>` - `type`: `TypeNode | undefined` **Returns:** `CallSignatureDeclaration`
(update-case-block node clauses)
Parameters:
node
: CaseBlock
clauses
: readonly CaseOrDefaultClause[]
Returns: CaseBlock
**Parameters:** - `node`: `CaseBlock` - `clauses`: `readonly CaseOrDefaultClause[]` **Returns:** `CaseBlock`
(update-case-clause node expression statements)
Parameters:
node
: CaseClause
expression
: Expression
statements
: readonly Statement[]
Returns: CaseClause
**Parameters:** - `node`: `CaseClause` - `expression`: `Expression` - `statements`: `readonly Statement[]` **Returns:** `CaseClause`
(update-catch-clause node)
(update-catch-clause node variable-declaration)
(update-catch-clause node variable-declaration block)
Parameters:
node
: CatchClause
variable-declaration
: VariableDeclaration | undefined
block
: Block
Returns: CatchClause
**Parameters:** - `node`: `CatchClause` - `variable-declaration`: `VariableDeclaration | undefined` - `block`: `Block` **Returns:** `CatchClause`
(update-class-declaration node)
(update-class-declaration node modifiers)
(update-class-declaration node modifiers name)
(update-class-declaration node modifiers name type-parameters)
(update-class-declaration node modifiers name type-parameters heritage-clauses)
(update-class-declaration node
modifiers
name
type-parameters
heritage-clauses
members)
Parameters:
node
: ClassDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
heritage-clauses
: readonly HeritageClause[] | undefined
members
: readonly ClassElement[]
Returns: ClassDeclaration
**Parameters:** - `node`: `ClassDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `heritage-clauses`: `readonly HeritageClause[] | undefined` - `members`: `readonly ClassElement[]` **Returns:** `ClassDeclaration`
(update-class-expression node)
(update-class-expression node modifiers)
(update-class-expression node modifiers name)
(update-class-expression node modifiers name type-parameters)
(update-class-expression node modifiers name type-parameters heritage-clauses)
(update-class-expression node
modifiers
name
type-parameters
heritage-clauses
members)
Parameters:
node
: ClassExpression
modifiers
: readonly ModifierLike[] | undefined
name
: Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
heritage-clauses
: readonly HeritageClause[] | undefined
members
: readonly ClassElement[]
Returns: ClassExpression
**Parameters:** - `node`: `ClassExpression` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `heritage-clauses`: `readonly HeritageClause[] | undefined` - `members`: `readonly ClassElement[]` **Returns:** `ClassExpression`
(update-class-static-block-declaration node body)
Parameters:
node
: ClassStaticBlockDeclaration
body
: Block
Returns: ClassStaticBlockDeclaration
**Parameters:** - `node`: `ClassStaticBlockDeclaration` - `body`: `Block` **Returns:** `ClassStaticBlockDeclaration`
(update-comma-list-expression node elements)
Parameters:
node
: CommaListExpression
elements
: readonly Expression[]
Returns: CommaListExpression
**Parameters:** - `node`: `CommaListExpression` - `elements`: `readonly Expression[]` **Returns:** `CommaListExpression`
(update-computed-property-name node expression)
Parameters:
node
: ComputedPropertyName
expression
: Expression
Returns: ComputedPropertyName
**Parameters:** - `node`: `ComputedPropertyName` - `expression`: `Expression` **Returns:** `ComputedPropertyName`
(update-conditional-expression node
condition
question-token
when-true
colon-token
when-false)
Parameters:
node
: ConditionalExpression
condition
: Expression
question-token
: QuestionToken
when-true
: Expression
colon-token
: ColonToken
when-false
: Expression
Returns: ConditionalExpression
**Parameters:** - `node`: `ConditionalExpression` - `condition`: `Expression` - `question-token`: `QuestionToken` - `when-true`: `Expression` - `colon-token`: `ColonToken` - `when-false`: `Expression` **Returns:** `ConditionalExpression`
(update-conditional-type-node node check-type extends-type true-type false-type)
Parameters:
node
: ConditionalTypeNode
check-type
: TypeNode
extends-type
: TypeNode
true-type
: TypeNode
false-type
: TypeNode
Returns: ConditionalTypeNode
**Parameters:** - `node`: `ConditionalTypeNode` - `check-type`: `TypeNode` - `extends-type`: `TypeNode` - `true-type`: `TypeNode` - `false-type`: `TypeNode` **Returns:** `ConditionalTypeNode`
(update-construct-signature node)
(update-construct-signature node type-parameters)
(update-construct-signature node type-parameters parameters)
(update-construct-signature node type-parameters parameters type)
Parameters:
node
: ConstructSignatureDeclaration
type-parameters
: NodeArray<TypeParameterDeclaration> | undefined
parameters
: NodeArray<ParameterDeclaration>
type
: TypeNode | undefined
Returns: ConstructSignatureDeclaration
**Parameters:** - `node`: `ConstructSignatureDeclaration` - `type-parameters`: `NodeArray<TypeParameterDeclaration> | undefined` - `parameters`: `NodeArray<ParameterDeclaration>` - `type`: `TypeNode | undefined` **Returns:** `ConstructSignatureDeclaration`
(update-constructor-declaration node)
(update-constructor-declaration node modifiers)
(update-constructor-declaration node modifiers parameters)
(update-constructor-declaration node modifiers parameters body)
Parameters:
node
: ConstructorDeclaration
modifiers
: readonly ModifierLike[] | undefined
parameters
: readonly ParameterDeclaration[]
body
: Block | undefined
Returns: ConstructorDeclaration
**Parameters:** - `node`: `ConstructorDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `body`: `Block | undefined` **Returns:** `ConstructorDeclaration`
(update-constructor-type-node node)
(update-constructor-type-node node modifiers)
(update-constructor-type-node node modifiers type-parameters)
(update-constructor-type-node node modifiers type-parameters parameters)
(update-constructor-type-node node modifiers type-parameters parameters type)
Parameters:
node
: ConstructorTypeNode
modifiers
: readonly Modifier[] | undefined
type-parameters
: NodeArray<TypeParameterDeclaration> | undefined
parameters
: NodeArray<ParameterDeclaration>
type
: TypeNode
Returns: ConstructorTypeNode
**Parameters:** - `node`: `ConstructorTypeNode` - `modifiers`: `readonly Modifier[] | undefined` - `type-parameters`: `NodeArray<TypeParameterDeclaration> | undefined` - `parameters`: `NodeArray<ParameterDeclaration>` - `type`: `TypeNode` **Returns:** `ConstructorTypeNode`
(update-continue-statement node)
(update-continue-statement node label)
Parameters:
node
: ContinueStatement
label
: Identifier | undefined
Returns: ContinueStatement
**Parameters:** - `node`: `ContinueStatement` - `label`: `Identifier | undefined` **Returns:** `ContinueStatement`
(update-decorator node expression)
Parameters:
node
: Decorator
expression
: Expression
Returns: Decorator
**Parameters:** - `node`: `Decorator` - `expression`: `Expression` **Returns:** `Decorator`
(update-default-clause node statements)
Parameters:
node
: DefaultClause
statements
: readonly Statement[]
Returns: DefaultClause
**Parameters:** - `node`: `DefaultClause` - `statements`: `readonly Statement[]` **Returns:** `DefaultClause`
(update-delete-expression node expression)
Parameters:
node
: DeleteExpression
expression
: Expression
Returns: DeleteExpression
**Parameters:** - `node`: `DeleteExpression` - `expression`: `Expression` **Returns:** `DeleteExpression`
(update-do-statement node statement expression)
Parameters:
node
: DoStatement
statement
: Statement
expression
: Expression
Returns: DoStatement
**Parameters:** - `node`: `DoStatement` - `statement`: `Statement` - `expression`: `Expression` **Returns:** `DoStatement`
(update-element-access-chain node expression)
(update-element-access-chain node expression question-dot-token)
(update-element-access-chain node
expression
question-dot-token
argument-expression)
Parameters:
node
: ElementAccessChain
expression
: Expression
question-dot-token
: QuestionDotToken | undefined
argument-expression
: Expression
Returns: ElementAccessChain
**Parameters:** - `node`: `ElementAccessChain` - `expression`: `Expression` - `question-dot-token`: `QuestionDotToken | undefined` - `argument-expression`: `Expression` **Returns:** `ElementAccessChain`
(update-element-access-expression node expression argument-expression)
Parameters:
node
: ElementAccessExpression
expression
: Expression
argument-expression
: Expression
Returns: ElementAccessExpression
**Parameters:** - `node`: `ElementAccessExpression` - `expression`: `Expression` - `argument-expression`: `Expression` **Returns:** `ElementAccessExpression`
(update-enum-declaration node)
(update-enum-declaration node modifiers)
(update-enum-declaration node modifiers name)
(update-enum-declaration node modifiers name members)
Parameters:
node
: EnumDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: Identifier
members
: readonly EnumMember[]
Returns: EnumDeclaration
**Parameters:** - `node`: `EnumDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `Identifier` - `members`: `readonly EnumMember[]` **Returns:** `EnumDeclaration`
(update-enum-member node name)
(update-enum-member node name initializer)
Parameters:
node
: EnumMember
name
: PropertyName
initializer
: Expression | undefined
Returns: EnumMember
**Parameters:** - `node`: `EnumMember` - `name`: `PropertyName` - `initializer`: `Expression | undefined` **Returns:** `EnumMember`
(update-export-assignment node)
(update-export-assignment node modifiers)
(update-export-assignment node modifiers expression)
Parameters:
node
: ExportAssignment
modifiers
: readonly ModifierLike[] | undefined
expression
: Expression
Returns: ExportAssignment
**Parameters:** - `node`: `ExportAssignment` - `modifiers`: `readonly ModifierLike[] | undefined` - `expression`: `Expression` **Returns:** `ExportAssignment`
(update-export-declaration node)
(update-export-declaration node modifiers)
(update-export-declaration node modifiers type-only?)
(update-export-declaration node modifiers type-only? export-clause)
(update-export-declaration node
modifiers
type-only?
export-clause
module-specifier)
(update-export-declaration node
modifiers
type-only?
export-clause
module-specifier
attributes)
Parameters:
node
: ExportDeclaration
modifiers
: readonly ModifierLike[] | undefined
type-only?
: boolean
export-clause
: NamedExportBindings | undefined
module-specifier
: Expression | undefined
attributes
: ImportAttributes | undefined
Returns: ExportDeclaration
**Parameters:** - `node`: `ExportDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `type-only?`: `boolean` - `export-clause`: `NamedExportBindings | undefined` - `module-specifier`: `Expression | undefined` - `attributes`: `ImportAttributes | undefined` **Returns:** `ExportDeclaration`
(update-export-specifier node type-only?)
(update-export-specifier node type-only? property-name)
(update-export-specifier node type-only? property-name name)
Parameters:
node
: ExportSpecifier
type-only?
: boolean
property-name
: Identifier | undefined
name
: Identifier
Returns: ExportSpecifier
**Parameters:** - `node`: `ExportSpecifier` - `type-only?`: `boolean` - `property-name`: `Identifier | undefined` - `name`: `Identifier` **Returns:** `ExportSpecifier`
(update-expression-statement node expression)
Parameters:
node
: ExpressionStatement
expression
: Expression
Returns: ExpressionStatement
**Parameters:** - `node`: `ExpressionStatement` - `expression`: `Expression` **Returns:** `ExpressionStatement`
(update-expression-with-type-arguments node expression)
(update-expression-with-type-arguments node expression type-arguments)
Parameters:
node
: ExpressionWithTypeArguments
expression
: Expression
type-arguments
: readonly TypeNode[] | undefined
Returns: ExpressionWithTypeArguments
**Parameters:** - `node`: `ExpressionWithTypeArguments` - `expression`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` **Returns:** `ExpressionWithTypeArguments`
(update-external-module-reference node expression)
Parameters:
node
: ExternalModuleReference
expression
: Expression
Returns: ExternalModuleReference
**Parameters:** - `node`: `ExternalModuleReference` - `expression`: `Expression` **Returns:** `ExternalModuleReference`
(update-for-in-statement node initializer expression statement)
Parameters:
node
: ForInStatement
initializer
: ForInitializer
expression
: Expression
statement
: Statement
Returns: ForInStatement
**Parameters:** - `node`: `ForInStatement` - `initializer`: `ForInitializer` - `expression`: `Expression` - `statement`: `Statement` **Returns:** `ForInStatement`
(update-for-of-statement node)
(update-for-of-statement node await-modifier)
(update-for-of-statement node await-modifier initializer)
(update-for-of-statement node await-modifier initializer expression)
(update-for-of-statement node await-modifier initializer expression statement)
Parameters:
node
: ForOfStatement
await-modifier
: AwaitKeyword | undefined
initializer
: ForInitializer
expression
: Expression
statement
: Statement
Returns: ForOfStatement
**Parameters:** - `node`: `ForOfStatement` - `await-modifier`: `AwaitKeyword | undefined` - `initializer`: `ForInitializer` - `expression`: `Expression` - `statement`: `Statement` **Returns:** `ForOfStatement`
(update-for-statement node)
(update-for-statement node initializer)
(update-for-statement node initializer condition)
(update-for-statement node initializer condition incrementor)
(update-for-statement node initializer condition incrementor statement)
Parameters:
node
: ForStatement
initializer
: ForInitializer | undefined
condition
: Expression | undefined
incrementor
: Expression | undefined
statement
: Statement
Returns: ForStatement
**Parameters:** - `node`: `ForStatement` - `initializer`: `ForInitializer | undefined` - `condition`: `Expression | undefined` - `incrementor`: `Expression | undefined` - `statement`: `Statement` **Returns:** `ForStatement`
(update-function-declaration node)
(update-function-declaration node modifiers)
(update-function-declaration node modifiers asterisk-token)
(update-function-declaration node modifiers asterisk-token name)
(update-function-declaration node modifiers asterisk-token name type-parameters)
(update-function-declaration node
modifiers
asterisk-token
name
type-parameters
parameters)
(update-function-declaration node
modifiers
asterisk-token
name
type-parameters
parameters
type)
(update-function-declaration node
modifiers
asterisk-token
name
type-parameters
parameters
type
body)
Parameters:
node
: FunctionDeclaration
modifiers
: readonly ModifierLike[] | undefined
asterisk-token
: AsteriskToken | undefined
name
: Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block | undefined
Returns: FunctionDeclaration
**Parameters:** - `node`: `FunctionDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `asterisk-token`: `AsteriskToken | undefined` - `name`: `Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block | undefined` **Returns:** `FunctionDeclaration`
(update-function-expression node)
(update-function-expression node modifiers)
(update-function-expression node modifiers asterisk-token)
(update-function-expression node modifiers asterisk-token name)
(update-function-expression node modifiers asterisk-token name type-parameters)
(update-function-expression node
modifiers
asterisk-token
name
type-parameters
parameters)
(update-function-expression node
modifiers
asterisk-token
name
type-parameters
parameters
type)
(update-function-expression node
modifiers
asterisk-token
name
type-parameters
parameters
type
body)
Parameters:
node
: FunctionExpression
modifiers
: readonly Modifier[] | undefined
asterisk-token
: AsteriskToken | undefined
name
: Identifier | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block
Returns: FunctionExpression
**Parameters:** - `node`: `FunctionExpression` - `modifiers`: `readonly Modifier[] | undefined` - `asterisk-token`: `AsteriskToken | undefined` - `name`: `Identifier | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block` **Returns:** `FunctionExpression`
(update-function-type-node node)
(update-function-type-node node type-parameters)
(update-function-type-node node type-parameters parameters)
(update-function-type-node node type-parameters parameters type)
Parameters:
node
: FunctionTypeNode
type-parameters
: NodeArray<TypeParameterDeclaration> | undefined
parameters
: NodeArray<ParameterDeclaration>
type
: TypeNode
Returns: FunctionTypeNode
**Parameters:** - `node`: `FunctionTypeNode` - `type-parameters`: `NodeArray<TypeParameterDeclaration> | undefined` - `parameters`: `NodeArray<ParameterDeclaration>` - `type`: `TypeNode` **Returns:** `FunctionTypeNode`
(update-get-accessor-declaration node)
(update-get-accessor-declaration node modifiers)
(update-get-accessor-declaration node modifiers name)
(update-get-accessor-declaration node modifiers name parameters)
(update-get-accessor-declaration node modifiers name parameters type)
(update-get-accessor-declaration node modifiers name parameters type body)
Parameters:
node
: GetAccessorDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: PropertyName
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block | undefined
Returns: GetAccessorDeclaration
**Parameters:** - `node`: `GetAccessorDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `PropertyName` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block | undefined` **Returns:** `GetAccessorDeclaration`
(update-heritage-clause node types)
Parameters:
node
: HeritageClause
types
: readonly ExpressionWithTypeArguments[]
Returns: HeritageClause
**Parameters:** - `node`: `HeritageClause` - `types`: `readonly ExpressionWithTypeArguments[]` **Returns:** `HeritageClause`
(update-if-statement node expression then-statement)
(update-if-statement node expression then-statement else-statement)
Parameters:
node
: IfStatement
expression
: Expression
then-statement
: Statement
else-statement
: Statement | undefined
Returns: IfStatement
**Parameters:** - `node`: `IfStatement` - `expression`: `Expression` - `then-statement`: `Statement` - `else-statement`: `Statement | undefined` **Returns:** `IfStatement`
(update-import-attribute node name value)
Parameters:
node
: ImportAttribute
name
: ImportAttributeName
value
: Expression
Returns: ImportAttribute
**Parameters:** - `node`: `ImportAttribute` - `name`: `ImportAttributeName` - `value`: `Expression` **Returns:** `ImportAttribute`
(update-import-attributes node elements)
(update-import-attributes node elements multi-line?)
Parameters:
node
: ImportAttributes
elements
: NodeArray<ImportAttribute>
multi-line?
: boolean | undefined
Returns: ImportAttributes
**Parameters:** - `node`: `ImportAttributes` - `elements`: `NodeArray<ImportAttribute>` - `multi-line?`: `boolean | undefined` **Returns:** `ImportAttributes`
(update-import-clause node type-only?)
(update-import-clause node type-only? name)
(update-import-clause node type-only? name named-bindings)
Parameters:
node
: ImportClause
type-only?
: boolean
name
: Identifier | undefined
named-bindings
: NamedImportBindings | undefined
Returns: ImportClause
**Parameters:** - `node`: `ImportClause` - `type-only?`: `boolean` - `name`: `Identifier | undefined` - `named-bindings`: `NamedImportBindings | undefined` **Returns:** `ImportClause`
(update-import-declaration node)
(update-import-declaration node modifiers)
(update-import-declaration node modifiers import-clause)
(update-import-declaration node modifiers import-clause module-specifier)
(update-import-declaration node
modifiers
import-clause
module-specifier
attributes)
Parameters:
node
: ImportDeclaration
modifiers
: readonly ModifierLike[] | undefined
import-clause
: ImportClause | undefined
module-specifier
: Expression
attributes
: ImportAttributes | undefined
Returns: ImportDeclaration
**Parameters:** - `node`: `ImportDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `import-clause`: `ImportClause | undefined` - `module-specifier`: `Expression` - `attributes`: `ImportAttributes | undefined` **Returns:** `ImportDeclaration`
(update-import-equals-declaration node)
(update-import-equals-declaration node modifiers)
(update-import-equals-declaration node modifiers type-only?)
(update-import-equals-declaration node modifiers type-only? name)
(update-import-equals-declaration node
modifiers
type-only?
name
module-reference)
Parameters:
node
: ImportEqualsDeclaration
modifiers
: readonly ModifierLike[] | undefined
type-only?
: boolean
name
: Identifier
module-reference
: ModuleReference
Returns: ImportEqualsDeclaration
**Parameters:** - `node`: `ImportEqualsDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `type-only?`: `boolean` - `name`: `Identifier` - `module-reference`: `ModuleReference` **Returns:** `ImportEqualsDeclaration`
(update-import-specifier node type-only?)
(update-import-specifier node type-only? property-name)
(update-import-specifier node type-only? property-name name)
Parameters:
node
: ImportSpecifier
type-only?
: boolean
property-name
: Identifier | undefined
name
: Identifier
Returns: ImportSpecifier
**Parameters:** - `node`: `ImportSpecifier` - `type-only?`: `boolean` - `property-name`: `Identifier | undefined` - `name`: `Identifier` **Returns:** `ImportSpecifier`
(update-import-type-assertion-container node clause)
(update-import-type-assertion-container node clause multi-line?)
Parameters:
node
: ImportTypeAssertionContainer
clause
: AssertClause
multi-line?
: boolean | undefined
Returns: ImportTypeAssertionContainer
**Parameters:** - `node`: `ImportTypeAssertionContainer` - `clause`: `AssertClause` - `multi-line?`: `boolean | undefined` **Returns:** `ImportTypeAssertionContainer`
(update-import-type-node node argument)
(update-import-type-node node argument attributes)
(update-import-type-node node argument attributes qualifier)
(update-import-type-node node argument attributes qualifier type-arguments)
(update-import-type-node node
argument
attributes
qualifier
type-arguments
type-of?)
Parameters:
node
: ImportTypeNode
argument
: TypeNode
attributes
: ImportAttributes | undefined
qualifier
: EntityName | undefined
type-arguments
: readonly TypeNode[] | undefined
type-of?
: boolean | undefined
Returns: ImportTypeNode
**Parameters:** - `node`: `ImportTypeNode` - `argument`: `TypeNode` - `attributes`: `ImportAttributes | undefined` - `qualifier`: `EntityName | undefined` - `type-arguments`: `readonly TypeNode[] | undefined` - `type-of?`: `boolean | undefined` **Returns:** `ImportTypeNode`
(update-index-signature node)
(update-index-signature node modifiers)
(update-index-signature node modifiers parameters)
(update-index-signature node modifiers parameters type)
Parameters:
node
: IndexSignatureDeclaration
modifiers
: readonly ModifierLike[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode
Returns: IndexSignatureDeclaration
**Parameters:** - `node`: `IndexSignatureDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode` **Returns:** `IndexSignatureDeclaration`
(update-indexed-access-type-node node object-type index-type)
Parameters:
node
: IndexedAccessTypeNode
object-type
: TypeNode
index-type
: TypeNode
Returns: IndexedAccessTypeNode
**Parameters:** - `node`: `IndexedAccessTypeNode` - `object-type`: `TypeNode` - `index-type`: `TypeNode` **Returns:** `IndexedAccessTypeNode`
(update-infer-type-node node type-parameter)
Parameters:
node
: InferTypeNode
type-parameter
: TypeParameterDeclaration
Returns: InferTypeNode
**Parameters:** - `node`: `InferTypeNode` - `type-parameter`: `TypeParameterDeclaration` **Returns:** `InferTypeNode`
(update-interface-declaration node)
(update-interface-declaration node modifiers)
(update-interface-declaration node modifiers name)
(update-interface-declaration node modifiers name type-parameters)
(update-interface-declaration node
modifiers
name
type-parameters
heritage-clauses)
(update-interface-declaration node
modifiers
name
type-parameters
heritage-clauses
members)
Parameters:
node
: InterfaceDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: Identifier
type-parameters
: readonly TypeParameterDeclaration[] | undefined
heritage-clauses
: readonly HeritageClause[] | undefined
members
: readonly TypeElement[]
Returns: InterfaceDeclaration
**Parameters:** - `node`: `InterfaceDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `Identifier` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `heritage-clauses`: `readonly HeritageClause[] | undefined` - `members`: `readonly TypeElement[]` **Returns:** `InterfaceDeclaration`
(update-intersection-type-node node types)
Parameters:
node
: IntersectionTypeNode
types
: NodeArray<TypeNode>
Returns: IntersectionTypeNode
**Parameters:** - `node`: `IntersectionTypeNode` - `types`: `NodeArray<TypeNode>` **Returns:** `IntersectionTypeNode`
(update-js-doc-augments-tag node)
(update-js-doc-augments-tag node tag-name)
(update-js-doc-augments-tag node tag-name class-name)
(update-js-doc-augments-tag node tag-name class-name comment)
Parameters:
node
: JSDocAugmentsTag
tag-name
: Identifier | undefined
class-name
: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocAugmentsTag
**Parameters:** - `node`: `JSDocAugmentsTag` - `tag-name`: `Identifier | undefined` - `class-name`: `ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocAugmentsTag`
(update-js-doc-author-tag node)
(update-js-doc-author-tag node tag-name)
(update-js-doc-author-tag node tag-name comment)
Parameters:
node
: JSDocAuthorTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocAuthorTag
**Parameters:** - `node`: `JSDocAuthorTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocAuthorTag`
(update-js-doc-callback-tag node)
(update-js-doc-callback-tag node tag-name)
(update-js-doc-callback-tag node tag-name type-expression)
(update-js-doc-callback-tag node tag-name type-expression full-name)
(update-js-doc-callback-tag node tag-name type-expression full-name comment)
Parameters:
node
: JSDocCallbackTag
tag-name
: Identifier | undefined
type-expression
: JSDocSignature
full-name
: Identifier | JSDocNamespaceDeclaration | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocCallbackTag
**Parameters:** - `node`: `JSDocCallbackTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocSignature` - `full-name`: `Identifier | JSDocNamespaceDeclaration | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocCallbackTag`
(update-js-doc-class-tag node)
(update-js-doc-class-tag node tag-name)
(update-js-doc-class-tag node tag-name comment)
Parameters:
node
: JSDocClassTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocClassTag
**Parameters:** - `node`: `JSDocClassTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocClassTag`
(update-js-doc-comment node)
(update-js-doc-comment node comment)
(update-js-doc-comment node comment tags)
Parameters:
node
: JSDoc
comment
: string | NodeArray<JSDocComment> | undefined
tags
: readonly JSDocTag[] | undefined
Returns: JSDoc
**Parameters:** - `node`: `JSDoc` - `comment`: `string | NodeArray<JSDocComment> | undefined` - `tags`: `readonly JSDocTag[] | undefined` **Returns:** `JSDoc`
(update-js-doc-deprecated-tag node)
(update-js-doc-deprecated-tag node tag-name)
(update-js-doc-deprecated-tag node tag-name comment)
Parameters:
node
: JSDocDeprecatedTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocDeprecatedTag
**Parameters:** - `node`: `JSDocDeprecatedTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocDeprecatedTag`
(update-js-doc-enum-tag node)
(update-js-doc-enum-tag node tag-name)
(update-js-doc-enum-tag node tag-name type-expression)
(update-js-doc-enum-tag node tag-name type-expression comment)
Parameters:
node
: JSDocEnumTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocEnumTag
**Parameters:** - `node`: `JSDocEnumTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocEnumTag`
(update-js-doc-function-type node parameters)
(update-js-doc-function-type node parameters type)
Parameters:
node
: JSDocFunctionType
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
Returns: JSDocFunctionType
**Parameters:** - `node`: `JSDocFunctionType` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` **Returns:** `JSDocFunctionType`
(update-js-doc-implements-tag node)
(update-js-doc-implements-tag node tag-name)
(update-js-doc-implements-tag node tag-name class-name)
(update-js-doc-implements-tag node tag-name class-name comment)
Parameters:
node
: JSDocImplementsTag
tag-name
: Identifier | undefined
class-name
: ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocImplementsTag
**Parameters:** - `node`: `JSDocImplementsTag` - `tag-name`: `Identifier | undefined` - `class-name`: `ExpressionWithTypeArguments & { readonly expression: Identifier | PropertyAccessEntityNameExpression; }` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocImplementsTag`
(update-js-doc-link node)
(update-js-doc-link node name)
(update-js-doc-link node name text)
Parameters:
node
: JSDocLink
name
: EntityName | JSDocMemberName | undefined
text
: string
Returns: JSDocLink
**Parameters:** - `node`: `JSDocLink` - `name`: `EntityName | JSDocMemberName | undefined` - `text`: `string` **Returns:** `JSDocLink`
(update-js-doc-link-code node)
(update-js-doc-link-code node name)
(update-js-doc-link-code node name text)
Parameters:
node
: JSDocLinkCode
name
: EntityName | JSDocMemberName | undefined
text
: string
Returns: JSDocLinkCode
**Parameters:** - `node`: `JSDocLinkCode` - `name`: `EntityName | JSDocMemberName | undefined` - `text`: `string` **Returns:** `JSDocLinkCode`
(update-js-doc-link-plain node)
(update-js-doc-link-plain node name)
(update-js-doc-link-plain node name text)
Parameters:
node
: JSDocLinkPlain
name
: EntityName | JSDocMemberName | undefined
text
: string
Returns: JSDocLinkPlain
**Parameters:** - `node`: `JSDocLinkPlain` - `name`: `EntityName | JSDocMemberName | undefined` - `text`: `string` **Returns:** `JSDocLinkPlain`
(update-js-doc-member-name node left right)
Parameters:
node
: JSDocMemberName
left
: EntityName | JSDocMemberName
right
: Identifier
Returns: JSDocMemberName
**Parameters:** - `node`: `JSDocMemberName` - `left`: `EntityName | JSDocMemberName` - `right`: `Identifier` **Returns:** `JSDocMemberName`
(update-js-doc-name-reference node name)
Parameters:
node
: JSDocNameReference
name
: EntityName | JSDocMemberName
Returns: JSDocNameReference
**Parameters:** - `node`: `JSDocNameReference` - `name`: `EntityName | JSDocMemberName` **Returns:** `JSDocNameReference`
(update-js-doc-namepath-type node type)
Parameters:
node
: JSDocNamepathType
type
: TypeNode
Returns: JSDocNamepathType
**Parameters:** - `node`: `JSDocNamepathType` - `type`: `TypeNode` **Returns:** `JSDocNamepathType`
(update-js-doc-non-nullable-type node type)
Parameters:
node
: JSDocNonNullableType
type
: TypeNode
Returns: JSDocNonNullableType
**Parameters:** - `node`: `JSDocNonNullableType` - `type`: `TypeNode` **Returns:** `JSDocNonNullableType`
(update-js-doc-nullable-type node type)
Parameters:
node
: JSDocNullableType
type
: TypeNode
Returns: JSDocNullableType
**Parameters:** - `node`: `JSDocNullableType` - `type`: `TypeNode` **Returns:** `JSDocNullableType`
(update-js-doc-optional-type node type)
Parameters:
node
: JSDocOptionalType
type
: TypeNode
Returns: JSDocOptionalType
**Parameters:** - `node`: `JSDocOptionalType` - `type`: `TypeNode` **Returns:** `JSDocOptionalType`
(update-js-doc-overload-tag node)
(update-js-doc-overload-tag node tag-name)
(update-js-doc-overload-tag node tag-name type-expression)
(update-js-doc-overload-tag node tag-name type-expression comment)
Parameters:
node
: JSDocOverloadTag
tag-name
: Identifier | undefined
type-expression
: JSDocSignature
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocOverloadTag
**Parameters:** - `node`: `JSDocOverloadTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocSignature` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocOverloadTag`
(update-js-doc-override-tag node)
(update-js-doc-override-tag node tag-name)
(update-js-doc-override-tag node tag-name comment)
Parameters:
node
: JSDocOverrideTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocOverrideTag
**Parameters:** - `node`: `JSDocOverrideTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocOverrideTag`
(update-js-doc-parameter-tag node)
(update-js-doc-parameter-tag node tag-name)
(update-js-doc-parameter-tag node tag-name name)
(update-js-doc-parameter-tag node tag-name name bracketed?)
(update-js-doc-parameter-tag node tag-name name bracketed? type-expression)
(update-js-doc-parameter-tag node
tag-name
name
bracketed?
type-expression
name-first?)
(update-js-doc-parameter-tag node
tag-name
name
bracketed?
type-expression
name-first?
comment)
Parameters:
node
: JSDocParameterTag
tag-name
: Identifier | undefined
name
: EntityName
bracketed?
: boolean
type-expression
: JSDocTypeExpression | undefined
name-first?
: boolean
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocParameterTag
**Parameters:** - `node`: `JSDocParameterTag` - `tag-name`: `Identifier | undefined` - `name`: `EntityName` - `bracketed?`: `boolean` - `type-expression`: `JSDocTypeExpression | undefined` - `name-first?`: `boolean` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocParameterTag`
(update-js-doc-private-tag node)
(update-js-doc-private-tag node tag-name)
(update-js-doc-private-tag node tag-name comment)
Parameters:
node
: JSDocPrivateTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocPrivateTag
**Parameters:** - `node`: `JSDocPrivateTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocPrivateTag`
(update-js-doc-property-tag node)
(update-js-doc-property-tag node tag-name)
(update-js-doc-property-tag node tag-name name)
(update-js-doc-property-tag node tag-name name bracketed?)
(update-js-doc-property-tag node tag-name name bracketed? type-expression)
(update-js-doc-property-tag node
tag-name
name
bracketed?
type-expression
name-first?)
(update-js-doc-property-tag node
tag-name
name
bracketed?
type-expression
name-first?
comment)
Parameters:
node
: JSDocPropertyTag
tag-name
: Identifier | undefined
name
: EntityName
bracketed?
: boolean
type-expression
: JSDocTypeExpression | undefined
name-first?
: boolean
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocPropertyTag
**Parameters:** - `node`: `JSDocPropertyTag` - `tag-name`: `Identifier | undefined` - `name`: `EntityName` - `bracketed?`: `boolean` - `type-expression`: `JSDocTypeExpression | undefined` - `name-first?`: `boolean` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocPropertyTag`
(update-js-doc-protected-tag node)
(update-js-doc-protected-tag node tag-name)
(update-js-doc-protected-tag node tag-name comment)
Parameters:
node
: JSDocProtectedTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocProtectedTag
**Parameters:** - `node`: `JSDocProtectedTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocProtectedTag`
(update-js-doc-public-tag node)
(update-js-doc-public-tag node tag-name)
(update-js-doc-public-tag node tag-name comment)
Parameters:
node
: JSDocPublicTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocPublicTag
**Parameters:** - `node`: `JSDocPublicTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocPublicTag`
(update-js-doc-readonly-tag node)
(update-js-doc-readonly-tag node tag-name)
(update-js-doc-readonly-tag node tag-name comment)
Parameters:
node
: JSDocReadonlyTag
tag-name
: Identifier | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocReadonlyTag
**Parameters:** - `node`: `JSDocReadonlyTag` - `tag-name`: `Identifier | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocReadonlyTag`
(update-js-doc-return-tag node)
(update-js-doc-return-tag node tag-name)
(update-js-doc-return-tag node tag-name type-expression)
(update-js-doc-return-tag node tag-name type-expression comment)
Parameters:
node
: JSDocReturnTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocReturnTag
**Parameters:** - `node`: `JSDocReturnTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocReturnTag`
(update-js-doc-satisfies-tag node)
(update-js-doc-satisfies-tag node tag-name)
(update-js-doc-satisfies-tag node tag-name type-expression)
(update-js-doc-satisfies-tag node tag-name type-expression comment)
Parameters:
node
: JSDocSatisfiesTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocSatisfiesTag
**Parameters:** - `node`: `JSDocSatisfiesTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocSatisfiesTag`
(update-js-doc-see-tag node)
(update-js-doc-see-tag node tag-name)
(update-js-doc-see-tag node tag-name name-expression)
(update-js-doc-see-tag node tag-name name-expression comment)
Parameters:
node
: JSDocSeeTag
tag-name
: Identifier | undefined
name-expression
: JSDocNameReference | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocSeeTag
**Parameters:** - `node`: `JSDocSeeTag` - `tag-name`: `Identifier | undefined` - `name-expression`: `JSDocNameReference | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocSeeTag`
(update-js-doc-signature node)
(update-js-doc-signature node type-parameters)
(update-js-doc-signature node type-parameters parameters)
(update-js-doc-signature node type-parameters parameters type)
Parameters:
node
: JSDocSignature
type-parameters
: readonly JSDocTemplateTag[] | undefined
parameters
: readonly JSDocParameterTag[]
type
: JSDocReturnTag | undefined
Returns: JSDocSignature
**Parameters:** - `node`: `JSDocSignature` - `type-parameters`: `readonly JSDocTemplateTag[] | undefined` - `parameters`: `readonly JSDocParameterTag[]` - `type`: `JSDocReturnTag | undefined` **Returns:** `JSDocSignature`
(update-js-doc-template-tag node)
(update-js-doc-template-tag node tag-name)
(update-js-doc-template-tag node tag-name constraint)
(update-js-doc-template-tag node tag-name constraint type-parameters)
(update-js-doc-template-tag node tag-name constraint type-parameters comment)
Parameters:
node
: JSDocTemplateTag
tag-name
: Identifier | undefined
constraint
: JSDocTypeExpression | undefined
type-parameters
: readonly TypeParameterDeclaration[]
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocTemplateTag
**Parameters:** - `node`: `JSDocTemplateTag` - `tag-name`: `Identifier | undefined` - `constraint`: `JSDocTypeExpression | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[]` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocTemplateTag`
(update-js-doc-text node text)
Parameters:
node
: JSDocText
text
: string
Returns: JSDocText
**Parameters:** - `node`: `JSDocText` - `text`: `string` **Returns:** `JSDocText`
(update-js-doc-this-tag node)
(update-js-doc-this-tag node tag-name)
(update-js-doc-this-tag node tag-name type-expression)
(update-js-doc-this-tag node tag-name type-expression comment)
Parameters:
node
: JSDocThisTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocThisTag
**Parameters:** - `node`: `JSDocThisTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocThisTag`
(update-js-doc-throws-tag node)
(update-js-doc-throws-tag node tag-name)
(update-js-doc-throws-tag node tag-name type-expression)
(update-js-doc-throws-tag node tag-name type-expression comment)
Parameters:
node
: JSDocThrowsTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocThrowsTag
**Parameters:** - `node`: `JSDocThrowsTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocThrowsTag`
(update-js-doc-type-expression node type)
Parameters:
node
: JSDocTypeExpression
type
: TypeNode
Returns: JSDocTypeExpression
**Parameters:** - `node`: `JSDocTypeExpression` - `type`: `TypeNode` **Returns:** `JSDocTypeExpression`
(update-js-doc-type-literal node)
(update-js-doc-type-literal node js-doc-property-tags)
(update-js-doc-type-literal node js-doc-property-tags array-type?)
Parameters:
node
: JSDocTypeLiteral
js-doc-property-tags
: readonly JSDocPropertyLikeTag[] | undefined
array-type?
: boolean | undefined
Returns: JSDocTypeLiteral
**Parameters:** - `node`: `JSDocTypeLiteral` - `js-doc-property-tags`: `readonly JSDocPropertyLikeTag[] | undefined` - `array-type?`: `boolean | undefined` **Returns:** `JSDocTypeLiteral`
(update-js-doc-type-tag node)
(update-js-doc-type-tag node tag-name)
(update-js-doc-type-tag node tag-name type-expression)
(update-js-doc-type-tag node tag-name type-expression comment)
Parameters:
node
: JSDocTypeTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocTypeTag
**Parameters:** - `node`: `JSDocTypeTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocTypeTag`
(update-js-doc-typedef-tag node)
(update-js-doc-typedef-tag node tag-name)
(update-js-doc-typedef-tag node tag-name type-expression)
(update-js-doc-typedef-tag node tag-name type-expression full-name)
(update-js-doc-typedef-tag node tag-name type-expression full-name comment)
Parameters:
node
: JSDocTypedefTag
tag-name
: Identifier | undefined
type-expression
: JSDocTypeExpression | JSDocTypeLiteral | undefined
full-name
: Identifier | JSDocNamespaceDeclaration | undefined
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocTypedefTag
**Parameters:** - `node`: `JSDocTypedefTag` - `tag-name`: `Identifier | undefined` - `type-expression`: `JSDocTypeExpression | JSDocTypeLiteral | undefined` - `full-name`: `Identifier | JSDocNamespaceDeclaration | undefined` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocTypedefTag`
(update-js-doc-unknown-tag node tag-name)
(update-js-doc-unknown-tag node tag-name comment)
Parameters:
node
: JSDocUnknownTag
tag-name
: Identifier
comment
: string | NodeArray<JSDocComment> | undefined
Returns: JSDocUnknownTag
**Parameters:** - `node`: `JSDocUnknownTag` - `tag-name`: `Identifier` - `comment`: `string | NodeArray<JSDocComment> | undefined` **Returns:** `JSDocUnknownTag`
(update-js-doc-variadic-type node type)
Parameters:
node
: JSDocVariadicType
type
: TypeNode
Returns: JSDocVariadicType
**Parameters:** - `node`: `JSDocVariadicType` - `type`: `TypeNode` **Returns:** `JSDocVariadicType`
(update-jsx-attribute node name)
(update-jsx-attribute node name initializer)
Parameters:
node
: JsxAttribute
name
: JsxAttributeName
initializer
: JsxAttributeValue | undefined
Returns: JsxAttribute
**Parameters:** - `node`: `JsxAttribute` - `name`: `JsxAttributeName` - `initializer`: `JsxAttributeValue | undefined` **Returns:** `JsxAttribute`
(update-jsx-attributes node properties)
Parameters:
node
: JsxAttributes
properties
: readonly JsxAttributeLike[]
Returns: JsxAttributes
**Parameters:** - `node`: `JsxAttributes` - `properties`: `readonly JsxAttributeLike[]` **Returns:** `JsxAttributes`
(update-jsx-closing-element node tag-name)
Parameters:
node
: JsxClosingElement
tag-name
: JsxTagNameExpression
Returns: JsxClosingElement
**Parameters:** - `node`: `JsxClosingElement` - `tag-name`: `JsxTagNameExpression` **Returns:** `JsxClosingElement`
(update-jsx-element node opening-element children closing-element)
Parameters:
node
: JsxElement
opening-element
: JsxOpeningElement
children
: readonly JsxChild[]
closing-element
: JsxClosingElement
Returns: JsxElement
**Parameters:** - `node`: `JsxElement` - `opening-element`: `JsxOpeningElement` - `children`: `readonly JsxChild[]` - `closing-element`: `JsxClosingElement` **Returns:** `JsxElement`
(update-jsx-expression node)
(update-jsx-expression node expression)
Parameters:
node
: JsxExpression
expression
: Expression | undefined
Returns: JsxExpression
**Parameters:** - `node`: `JsxExpression` - `expression`: `Expression | undefined` **Returns:** `JsxExpression`
(update-jsx-fragment node opening-fragment children closing-fragment)
Parameters:
node
: JsxFragment
opening-fragment
: JsxOpeningFragment
children
: readonly JsxChild[]
closing-fragment
: JsxClosingFragment
Returns: JsxFragment
**Parameters:** - `node`: `JsxFragment` - `opening-fragment`: `JsxOpeningFragment` - `children`: `readonly JsxChild[]` - `closing-fragment`: `JsxClosingFragment` **Returns:** `JsxFragment`
(update-jsx-namespaced-name node namespace name)
Parameters:
node
: JsxNamespacedName
namespace
: Identifier
name
: Identifier
Returns: JsxNamespacedName
**Parameters:** - `node`: `JsxNamespacedName` - `namespace`: `Identifier` - `name`: `Identifier` **Returns:** `JsxNamespacedName`
(update-jsx-opening-element node tag-name)
(update-jsx-opening-element node tag-name type-arguments)
(update-jsx-opening-element node tag-name type-arguments attributes)
Parameters:
node
: JsxOpeningElement
tag-name
: JsxTagNameExpression
type-arguments
: readonly TypeNode[] | undefined
attributes
: JsxAttributes
Returns: JsxOpeningElement
**Parameters:** - `node`: `JsxOpeningElement` - `tag-name`: `JsxTagNameExpression` - `type-arguments`: `readonly TypeNode[] | undefined` - `attributes`: `JsxAttributes` **Returns:** `JsxOpeningElement`
(update-jsx-self-closing-element node tag-name)
(update-jsx-self-closing-element node tag-name type-arguments)
(update-jsx-self-closing-element node tag-name type-arguments attributes)
Parameters:
node
: JsxSelfClosingElement
tag-name
: JsxTagNameExpression
type-arguments
: readonly TypeNode[] | undefined
attributes
: JsxAttributes
Returns: JsxSelfClosingElement
**Parameters:** - `node`: `JsxSelfClosingElement` - `tag-name`: `JsxTagNameExpression` - `type-arguments`: `readonly TypeNode[] | undefined` - `attributes`: `JsxAttributes` **Returns:** `JsxSelfClosingElement`
(update-jsx-spread-attribute node expression)
Parameters:
node
: JsxSpreadAttribute
expression
: Expression
Returns: JsxSpreadAttribute
**Parameters:** - `node`: `JsxSpreadAttribute` - `expression`: `Expression` **Returns:** `JsxSpreadAttribute`
(update-jsx-text node text)
(update-jsx-text node text contains-only-trivia-white-spaces?)
Parameters:
node
: JsxText
text
: string
contains-only-trivia-white-spaces?
: boolean | undefined
Returns: JsxText
**Parameters:** - `node`: `JsxText` - `text`: `string` - `contains-only-trivia-white-spaces?`: `boolean | undefined` **Returns:** `JsxText`
(update-labeled-statement node label statement)
Parameters:
node
: LabeledStatement
label
: Identifier
statement
: Statement
Returns: LabeledStatement
**Parameters:** - `node`: `LabeledStatement` - `label`: `Identifier` - `statement`: `Statement` **Returns:** `LabeledStatement`
(update-literal-type-node node literal)
Parameters:
node
: LiteralTypeNode
literal
: LiteralExpression | NullLiteral | BooleanLiteral | PrefixUnaryExpression
Returns: LiteralTypeNode
**Parameters:** - `node`: `LiteralTypeNode` - `literal`: `LiteralExpression | NullLiteral | BooleanLiteral | PrefixUnaryExpression` **Returns:** `LiteralTypeNode`
(update-mapped-type-node node)
(update-mapped-type-node node readonly-token)
(update-mapped-type-node node readonly-token type-parameter)
(update-mapped-type-node node readonly-token type-parameter name-type)
(update-mapped-type-node node
readonly-token
type-parameter
name-type
question-token)
(update-mapped-type-node node
readonly-token
type-parameter
name-type
question-token
type)
(update-mapped-type-node node
readonly-token
type-parameter
name-type
question-token
type
members)
Parameters:
node
: MappedTypeNode
readonly-token
: ReadonlyKeyword | PlusToken | MinusToken | undefined
type-parameter
: TypeParameterDeclaration
name-type
: TypeNode | undefined
question-token
: QuestionToken | PlusToken | MinusToken | undefined
type
: TypeNode | undefined
members
: NodeArray<TypeElement> | undefined
Returns: MappedTypeNode
**Parameters:** - `node`: `MappedTypeNode` - `readonly-token`: `ReadonlyKeyword | PlusToken | MinusToken | undefined` - `type-parameter`: `TypeParameterDeclaration` - `name-type`: `TypeNode | undefined` - `question-token`: `QuestionToken | PlusToken | MinusToken | undefined` - `type`: `TypeNode | undefined` - `members`: `NodeArray<TypeElement> | undefined` **Returns:** `MappedTypeNode`
(update-meta-property node name)
Parameters:
node
: MetaProperty
name
: Identifier
Returns: MetaProperty
**Parameters:** - `node`: `MetaProperty` - `name`: `Identifier` **Returns:** `MetaProperty`
(update-method-declaration node)
(update-method-declaration node modifiers)
(update-method-declaration node modifiers asterisk-token)
(update-method-declaration node modifiers asterisk-token name)
(update-method-declaration node modifiers asterisk-token name question-token)
(update-method-declaration node
modifiers
asterisk-token
name
question-token
type-parameters)
(update-method-declaration node
modifiers
asterisk-token
name
question-token
type-parameters
parameters)
(update-method-declaration node
modifiers
asterisk-token
name
question-token
type-parameters
parameters
type)
(update-method-declaration node
modifiers
asterisk-token
name
question-token
type-parameters
parameters
type
body)
Parameters:
node
: MethodDeclaration
modifiers
: readonly ModifierLike[] | undefined
asterisk-token
: AsteriskToken | undefined
name
: PropertyName
question-token
: QuestionToken | undefined
type-parameters
: readonly TypeParameterDeclaration[] | undefined
parameters
: readonly ParameterDeclaration[]
type
: TypeNode | undefined
body
: Block | undefined
Returns: MethodDeclaration
**Parameters:** - `node`: `MethodDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `asterisk-token`: `AsteriskToken | undefined` - `name`: `PropertyName` - `question-token`: `QuestionToken | undefined` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `parameters`: `readonly ParameterDeclaration[]` - `type`: `TypeNode | undefined` - `body`: `Block | undefined` **Returns:** `MethodDeclaration`
(update-method-signature node)
(update-method-signature node modifiers)
(update-method-signature node modifiers name)
(update-method-signature node modifiers name question-token)
(update-method-signature node modifiers name question-token type-parameters)
(update-method-signature node
modifiers
name
question-token
type-parameters
parameters)
(update-method-signature node
modifiers
name
question-token
type-parameters
parameters
type)
Parameters:
node
: MethodSignature
modifiers
: readonly Modifier[] | undefined
name
: PropertyName
question-token
: QuestionToken | undefined
type-parameters
: NodeArray<TypeParameterDeclaration> | undefined
parameters
: NodeArray<ParameterDeclaration>
type
: TypeNode | undefined
Returns: MethodSignature
**Parameters:** - `node`: `MethodSignature` - `modifiers`: `readonly Modifier[] | undefined` - `name`: `PropertyName` - `question-token`: `QuestionToken | undefined` - `type-parameters`: `NodeArray<TypeParameterDeclaration> | undefined` - `parameters`: `NodeArray<ParameterDeclaration>` - `type`: `TypeNode | undefined` **Returns:** `MethodSignature`
(update-module-block node statements)
Parameters:
node
: ModuleBlock
statements
: readonly Statement[]
Returns: ModuleBlock
**Parameters:** - `node`: `ModuleBlock` - `statements`: `readonly Statement[]` **Returns:** `ModuleBlock`
(update-module-declaration node)
(update-module-declaration node modifiers)
(update-module-declaration node modifiers name)
(update-module-declaration node modifiers name body)
Parameters:
node
: ModuleDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: ModuleName
body
: ModuleBody | undefined
Returns: ModuleDeclaration
**Parameters:** - `node`: `ModuleDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `ModuleName` - `body`: `ModuleBody | undefined` **Returns:** `ModuleDeclaration`
(update-named-exports node elements)
Parameters:
node
: NamedExports
elements
: readonly ExportSpecifier[]
Returns: NamedExports
**Parameters:** - `node`: `NamedExports` - `elements`: `readonly ExportSpecifier[]` **Returns:** `NamedExports`
(update-named-imports node elements)
Parameters:
node
: NamedImports
elements
: readonly ImportSpecifier[]
Returns: NamedImports
**Parameters:** - `node`: `NamedImports` - `elements`: `readonly ImportSpecifier[]` **Returns:** `NamedImports`
(update-named-tuple-member node)
(update-named-tuple-member node dot-dot-dot-token)
(update-named-tuple-member node dot-dot-dot-token name)
(update-named-tuple-member node dot-dot-dot-token name question-token)
(update-named-tuple-member node dot-dot-dot-token name question-token type)
Parameters:
node
: NamedTupleMember
dot-dot-dot-token
: DotDotDotToken | undefined
name
: Identifier
question-token
: QuestionToken | undefined
type
: TypeNode
Returns: NamedTupleMember
**Parameters:** - `node`: `NamedTupleMember` - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `name`: `Identifier` - `question-token`: `QuestionToken | undefined` - `type`: `TypeNode` **Returns:** `NamedTupleMember`
(update-namespace-export node name)
Parameters:
node
: NamespaceExport
name
: Identifier
Returns: NamespaceExport
**Parameters:** - `node`: `NamespaceExport` - `name`: `Identifier` **Returns:** `NamespaceExport`
(update-namespace-export-declaration node name)
Parameters:
node
: NamespaceExportDeclaration
name
: Identifier
Returns: NamespaceExportDeclaration
**Parameters:** - `node`: `NamespaceExportDeclaration` - `name`: `Identifier` **Returns:** `NamespaceExportDeclaration`
(update-namespace-import node name)
Parameters:
node
: NamespaceImport
name
: Identifier
Returns: NamespaceImport
**Parameters:** - `node`: `NamespaceImport` - `name`: `Identifier` **Returns:** `NamespaceImport`
(update-new-expression node expression)
(update-new-expression node expression type-arguments)
(update-new-expression node expression type-arguments arguments-array)
Parameters:
node
: NewExpression
expression
: Expression
type-arguments
: readonly TypeNode[] | undefined
arguments-array
: readonly Expression[] | undefined
Returns: NewExpression
**Parameters:** - `node`: `NewExpression` - `expression`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` - `arguments-array`: `readonly Expression[] | undefined` **Returns:** `NewExpression`
(update-non-null-chain node expression)
Parameters:
node
: NonNullChain
expression
: Expression
Returns: NonNullChain
**Parameters:** - `node`: `NonNullChain` - `expression`: `Expression` **Returns:** `NonNullChain`
(update-non-null-expression node expression)
Parameters:
node
: NonNullExpression
expression
: Expression
Returns: NonNullExpression
**Parameters:** - `node`: `NonNullExpression` - `expression`: `Expression` **Returns:** `NonNullExpression`
(update-object-binding-pattern node elements)
Parameters:
node
: ObjectBindingPattern
elements
: readonly BindingElement[]
Returns: ObjectBindingPattern
**Parameters:** - `node`: `ObjectBindingPattern` - `elements`: `readonly BindingElement[]` **Returns:** `ObjectBindingPattern`
(update-object-literal-expression node properties)
Parameters:
node
: ObjectLiteralExpression
properties
: readonly ObjectLiteralElementLike[]
Returns: ObjectLiteralExpression
**Parameters:** - `node`: `ObjectLiteralExpression` - `properties`: `readonly ObjectLiteralElementLike[]` **Returns:** `ObjectLiteralExpression`
(update-optional-type-node node type)
Parameters:
node
: OptionalTypeNode
type
: TypeNode
Returns: OptionalTypeNode
**Parameters:** - `node`: `OptionalTypeNode` - `type`: `TypeNode` **Returns:** `OptionalTypeNode`
(update-parameter-declaration node)
(update-parameter-declaration node modifiers)
(update-parameter-declaration node modifiers dot-dot-dot-token)
(update-parameter-declaration node modifiers dot-dot-dot-token name)
(update-parameter-declaration node
modifiers
dot-dot-dot-token
name
question-token)
(update-parameter-declaration node
modifiers
dot-dot-dot-token
name
question-token
type)
(update-parameter-declaration node
modifiers
dot-dot-dot-token
name
question-token
type
initializer)
Parameters:
node
: ParameterDeclaration
modifiers
: readonly ModifierLike[] | undefined
dot-dot-dot-token
: DotDotDotToken | undefined
name
: string | BindingName
question-token
: QuestionToken | undefined
type
: TypeNode | undefined
initializer
: Expression | undefined
Returns: ParameterDeclaration
**Parameters:** - `node`: `ParameterDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `dot-dot-dot-token`: `DotDotDotToken | undefined` - `name`: `string | BindingName` - `question-token`: `QuestionToken | undefined` - `type`: `TypeNode | undefined` - `initializer`: `Expression | undefined` **Returns:** `ParameterDeclaration`
(update-parenthesized-expression node expression)
Parameters:
node
: ParenthesizedExpression
expression
: Expression
Returns: ParenthesizedExpression
**Parameters:** - `node`: `ParenthesizedExpression` - `expression`: `Expression` **Returns:** `ParenthesizedExpression`
(update-parenthesized-type node type)
Parameters:
node
: ParenthesizedTypeNode
type
: TypeNode
Returns: ParenthesizedTypeNode
**Parameters:** - `node`: `ParenthesizedTypeNode` - `type`: `TypeNode` **Returns:** `ParenthesizedTypeNode`
(update-partially-emitted-expression node expression)
Parameters:
node
: PartiallyEmittedExpression
expression
: Expression
Returns: PartiallyEmittedExpression
**Parameters:** - `node`: `PartiallyEmittedExpression` - `expression`: `Expression` **Returns:** `PartiallyEmittedExpression`
(update-postfix-unary-expression node operand)
Parameters:
node
: PostfixUnaryExpression
operand
: Expression
Returns: PostfixUnaryExpression
**Parameters:** - `node`: `PostfixUnaryExpression` - `operand`: `Expression` **Returns:** `PostfixUnaryExpression`
(update-prefix-unary-expression node operand)
Parameters:
node
: PrefixUnaryExpression
operand
: Expression
Returns: PrefixUnaryExpression
**Parameters:** - `node`: `PrefixUnaryExpression` - `operand`: `Expression` **Returns:** `PrefixUnaryExpression`
(update-property-access-chain node expression)
(update-property-access-chain node expression question-dot-token)
(update-property-access-chain node expression question-dot-token name)
Parameters:
node
: PropertyAccessChain
expression
: Expression
question-dot-token
: QuestionDotToken | undefined
name
: MemberName
Returns: PropertyAccessChain
**Parameters:** - `node`: `PropertyAccessChain` - `expression`: `Expression` - `question-dot-token`: `QuestionDotToken | undefined` - `name`: `MemberName` **Returns:** `PropertyAccessChain`
(update-property-access-expression node expression name)
Parameters:
node
: PropertyAccessExpression
expression
: Expression
name
: MemberName
Returns: PropertyAccessExpression
**Parameters:** - `node`: `PropertyAccessExpression` - `expression`: `Expression` - `name`: `MemberName` **Returns:** `PropertyAccessExpression`
(update-property-assignment node name initializer)
Parameters:
node
: PropertyAssignment
name
: PropertyName
initializer
: Expression
Returns: PropertyAssignment
**Parameters:** - `node`: `PropertyAssignment` - `name`: `PropertyName` - `initializer`: `Expression` **Returns:** `PropertyAssignment`
(update-property-declaration node)
(update-property-declaration node modifiers)
(update-property-declaration node modifiers name)
(update-property-declaration node modifiers name question-or-exclamation-token)
(update-property-declaration node
modifiers
name
question-or-exclamation-token
type)
(update-property-declaration node
modifiers
name
question-or-exclamation-token
type
initializer)
Parameters:
node
: PropertyDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: string | PropertyName
question-or-exclamation-token
: QuestionToken | ExclamationToken | undefined
type
: TypeNode | undefined
initializer
: Expression | undefined
Returns: PropertyDeclaration
**Parameters:** - `node`: `PropertyDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `string | PropertyName` - `question-or-exclamation-token`: `QuestionToken | ExclamationToken | undefined` - `type`: `TypeNode | undefined` - `initializer`: `Expression | undefined` **Returns:** `PropertyDeclaration`
(update-property-signature node)
(update-property-signature node modifiers)
(update-property-signature node modifiers name)
(update-property-signature node modifiers name question-token)
(update-property-signature node modifiers name question-token type)
Parameters:
node
: PropertySignature
modifiers
: readonly Modifier[] | undefined
name
: PropertyName
question-token
: QuestionToken | undefined
type
: TypeNode | undefined
Returns: PropertySignature
**Parameters:** - `node`: `PropertySignature` - `modifiers`: `readonly Modifier[] | undefined` - `name`: `PropertyName` - `question-token`: `QuestionToken | undefined` - `type`: `TypeNode | undefined` **Returns:** `PropertySignature`
(update-qualified-name node left right)
Parameters:
node
: QualifiedName
left
: EntityName
right
: Identifier
Returns: QualifiedName
**Parameters:** - `node`: `QualifiedName` - `left`: `EntityName` - `right`: `Identifier` **Returns:** `QualifiedName`
(update-rest-type-node node type)
Parameters:
node
: RestTypeNode
type
: TypeNode
Returns: RestTypeNode
**Parameters:** - `node`: `RestTypeNode` - `type`: `TypeNode` **Returns:** `RestTypeNode`
(update-return-statement node)
(update-return-statement node expression)
Parameters:
node
: ReturnStatement
expression
: Expression | undefined
Returns: ReturnStatement
**Parameters:** - `node`: `ReturnStatement` - `expression`: `Expression | undefined` **Returns:** `ReturnStatement`
(update-satisfies-expression node expression type)
Parameters:
node
: SatisfiesExpression
expression
: Expression
type
: TypeNode
Returns: SatisfiesExpression
**Parameters:** - `node`: `SatisfiesExpression` - `expression`: `Expression` - `type`: `TypeNode` **Returns:** `SatisfiesExpression`
(update-set-accessor-declaration node)
(update-set-accessor-declaration node modifiers)
(update-set-accessor-declaration node modifiers name)
(update-set-accessor-declaration node modifiers name parameters)
(update-set-accessor-declaration node modifiers name parameters body)
Parameters:
node
: SetAccessorDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: PropertyName
parameters
: readonly ParameterDeclaration[]
body
: Block | undefined
Returns: SetAccessorDeclaration
**Parameters:** - `node`: `SetAccessorDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `PropertyName` - `parameters`: `readonly ParameterDeclaration[]` - `body`: `Block | undefined` **Returns:** `SetAccessorDeclaration`
(update-shorthand-property-assignment node name)
(update-shorthand-property-assignment node name object-assignment-initializer)
Parameters:
node
: ShorthandPropertyAssignment
name
: Identifier
object-assignment-initializer
: Expression | undefined
Returns: ShorthandPropertyAssignment
**Parameters:** - `node`: `ShorthandPropertyAssignment` - `name`: `Identifier` - `object-assignment-initializer`: `Expression | undefined` **Returns:** `ShorthandPropertyAssignment`
(update-source-file node statements)
(update-source-file node statements declaration-file?)
(update-source-file node statements declaration-file? referenced-files)
(update-source-file node
statements
declaration-file?
referenced-files
type-references)
(update-source-file node
statements
declaration-file?
referenced-files
type-references
has-no-default-lib?)
(update-source-file node
statements
declaration-file?
referenced-files
type-references
has-no-default-lib?
lib-references)
Parameters:
node
: SourceFile
statements
: readonly Statement[]
declaration-file?
: boolean | undefined
referenced-files
: readonly FileReference[] | undefined
type-references
: readonly FileReference[] | undefined
has-no-default-lib?
: boolean | undefined
lib-references
: readonly FileReference[] | undefined
Returns: SourceFile
**Parameters:** - `node`: `SourceFile` - `statements`: `readonly Statement[]` - `declaration-file?`: `boolean | undefined` - `referenced-files`: `readonly FileReference[] | undefined` - `type-references`: `readonly FileReference[] | undefined` - `has-no-default-lib?`: `boolean | undefined` - `lib-references`: `readonly FileReference[] | undefined` **Returns:** `SourceFile`
(update-spread-assignment node expression)
Parameters:
node
: SpreadAssignment
expression
: Expression
Returns: SpreadAssignment
**Parameters:** - `node`: `SpreadAssignment` - `expression`: `Expression` **Returns:** `SpreadAssignment`
(update-spread-element node expression)
Parameters:
node
: SpreadElement
expression
: Expression
Returns: SpreadElement
**Parameters:** - `node`: `SpreadElement` - `expression`: `Expression` **Returns:** `SpreadElement`
(update-switch-statement node expression case-block)
Parameters:
node
: SwitchStatement
expression
: Expression
case-block
: CaseBlock
Returns: SwitchStatement
**Parameters:** - `node`: `SwitchStatement` - `expression`: `Expression` - `case-block`: `CaseBlock` **Returns:** `SwitchStatement`
(update-tagged-template-expression node tag)
(update-tagged-template-expression node tag type-arguments)
(update-tagged-template-expression node tag type-arguments template)
Parameters:
node
: TaggedTemplateExpression
tag
: Expression
type-arguments
: readonly TypeNode[] | undefined
template
: TemplateLiteral
Returns: TaggedTemplateExpression
**Parameters:** - `node`: `TaggedTemplateExpression` - `tag`: `Expression` - `type-arguments`: `readonly TypeNode[] | undefined` - `template`: `TemplateLiteral` **Returns:** `TaggedTemplateExpression`
(update-template-expression node head template-spans)
Parameters:
node
: TemplateExpression
head
: TemplateHead
template-spans
: readonly TemplateSpan[]
Returns: TemplateExpression
**Parameters:** - `node`: `TemplateExpression` - `head`: `TemplateHead` - `template-spans`: `readonly TemplateSpan[]` **Returns:** `TemplateExpression`
(update-template-literal-type node head template-spans)
Parameters:
node
: TemplateLiteralTypeNode
head
: TemplateHead
template-spans
: readonly TemplateLiteralTypeSpan[]
Returns: TemplateLiteralTypeNode
**Parameters:** - `node`: `TemplateLiteralTypeNode` - `head`: `TemplateHead` - `template-spans`: `readonly TemplateLiteralTypeSpan[]` **Returns:** `TemplateLiteralTypeNode`
(update-template-literal-type-span node type literal)
Parameters:
node
: TemplateLiteralTypeSpan
type
: TypeNode
literal
: TemplateMiddle | TemplateTail
Returns: TemplateLiteralTypeSpan
**Parameters:** - `node`: `TemplateLiteralTypeSpan` - `type`: `TypeNode` - `literal`: `TemplateMiddle | TemplateTail` **Returns:** `TemplateLiteralTypeSpan`
(update-template-span node expression literal)
Parameters:
node
: TemplateSpan
expression
: Expression
literal
: TemplateMiddle | TemplateTail
Returns: TemplateSpan
**Parameters:** - `node`: `TemplateSpan` - `expression`: `Expression` - `literal`: `TemplateMiddle | TemplateTail` **Returns:** `TemplateSpan`
(update-throw-statement node expression)
Parameters:
node
: ThrowStatement
expression
: Expression
Returns: ThrowStatement
**Parameters:** - `node`: `ThrowStatement` - `expression`: `Expression` **Returns:** `ThrowStatement`
(update-try-statement node try-block)
(update-try-statement node try-block catch-clause)
(update-try-statement node try-block catch-clause finally-block)
Parameters:
node
: TryStatement
try-block
: Block
catch-clause
: CatchClause | undefined
finally-block
: Block | undefined
Returns: TryStatement
**Parameters:** - `node`: `TryStatement` - `try-block`: `Block` - `catch-clause`: `CatchClause | undefined` - `finally-block`: `Block | undefined` **Returns:** `TryStatement`
(update-tuple-type-node node elements)
Parameters:
node
: TupleTypeNode
elements
: readonly (TypeNode | NamedTupleMember)[]
Returns: TupleTypeNode
**Parameters:** - `node`: `TupleTypeNode` - `elements`: `readonly (TypeNode | NamedTupleMember)[]` **Returns:** `TupleTypeNode`
(update-type-alias-declaration node)
(update-type-alias-declaration node modifiers)
(update-type-alias-declaration node modifiers name)
(update-type-alias-declaration node modifiers name type-parameters)
(update-type-alias-declaration node modifiers name type-parameters type)
Parameters:
node
: TypeAliasDeclaration
modifiers
: readonly ModifierLike[] | undefined
name
: Identifier
type-parameters
: readonly TypeParameterDeclaration[] | undefined
type
: TypeNode
Returns: TypeAliasDeclaration
**Parameters:** - `node`: `TypeAliasDeclaration` - `modifiers`: `readonly ModifierLike[] | undefined` - `name`: `Identifier` - `type-parameters`: `readonly TypeParameterDeclaration[] | undefined` - `type`: `TypeNode` **Returns:** `TypeAliasDeclaration`
(update-type-assertion node type expression)
Parameters:
node
: TypeAssertion
type
: TypeNode
expression
: Expression
Returns: TypeAssertion
**Parameters:** - `node`: `TypeAssertion` - `type`: `TypeNode` - `expression`: `Expression` **Returns:** `TypeAssertion`
(update-type-literal-node node members)
Parameters:
node
: TypeLiteralNode
members
: NodeArray<TypeElement>
Returns: TypeLiteralNode
**Parameters:** - `node`: `TypeLiteralNode` - `members`: `NodeArray<TypeElement>` **Returns:** `TypeLiteralNode`
(update-type-of-expression node expression)
Parameters:
node
: TypeOfExpression
expression
: Expression
Returns: TypeOfExpression
**Parameters:** - `node`: `TypeOfExpression` - `expression`: `Expression` **Returns:** `TypeOfExpression`
(update-type-operator-node node type)
Parameters:
node
: TypeOperatorNode
type
: TypeNode
Returns: TypeOperatorNode
**Parameters:** - `node`: `TypeOperatorNode` - `type`: `TypeNode` **Returns:** `TypeOperatorNode`
(update-type-parameter-declaration node)
(update-type-parameter-declaration node modifiers)
(update-type-parameter-declaration node modifiers name)
(update-type-parameter-declaration node modifiers name constraint)
(update-type-parameter-declaration node modifiers name constraint default-type)
Parameters:
node
: TypeParameterDeclaration
modifiers
: readonly Modifier[] | undefined
name
: Identifier
constraint
: TypeNode | undefined
default-type
: TypeNode | undefined
Returns: TypeParameterDeclaration
**Parameters:** - `node`: `TypeParameterDeclaration` - `modifiers`: `readonly Modifier[] | undefined` - `name`: `Identifier` - `constraint`: `TypeNode | undefined` - `default-type`: `TypeNode | undefined` **Returns:** `TypeParameterDeclaration`
(update-type-predicate-node node)
(update-type-predicate-node node asserts-modifier)
(update-type-predicate-node node asserts-modifier parameter-name)
(update-type-predicate-node node asserts-modifier parameter-name type)
Parameters:
node
: TypePredicateNode
asserts-modifier
: AssertsKeyword | undefined
parameter-name
: Identifier | ThisTypeNode
type
: TypeNode | undefined
Returns: TypePredicateNode
**Parameters:** - `node`: `TypePredicateNode` - `asserts-modifier`: `AssertsKeyword | undefined` - `parameter-name`: `Identifier | ThisTypeNode` - `type`: `TypeNode | undefined` **Returns:** `TypePredicateNode`
(update-type-query-node node expr-name)
(update-type-query-node node expr-name type-arguments)
Parameters:
node
: TypeQueryNode
expr-name
: EntityName
type-arguments
: readonly TypeNode[] | undefined
Returns: TypeQueryNode
**Parameters:** - `node`: `TypeQueryNode` - `expr-name`: `EntityName` - `type-arguments`: `readonly TypeNode[] | undefined` **Returns:** `TypeQueryNode`
(update-type-reference-node node type-name)
(update-type-reference-node node type-name type-arguments)
Parameters:
node
: TypeReferenceNode
type-name
: EntityName
type-arguments
: NodeArray<TypeNode> | undefined
Returns: TypeReferenceNode
**Parameters:** - `node`: `TypeReferenceNode` - `type-name`: `EntityName` - `type-arguments`: `NodeArray<TypeNode> | undefined` **Returns:** `TypeReferenceNode`
(update-union-type-node node types)
Parameters:
node
: UnionTypeNode
types
: NodeArray<TypeNode>
Returns: UnionTypeNode
**Parameters:** - `node`: `UnionTypeNode` - `types`: `NodeArray<TypeNode>` **Returns:** `UnionTypeNode`
(update-variable-declaration node name)
(update-variable-declaration node name exclamation-token)
(update-variable-declaration node name exclamation-token type)
(update-variable-declaration node name exclamation-token type initializer)
Parameters:
node
: VariableDeclaration
name
: BindingName
exclamation-token
: ExclamationToken | undefined
type
: TypeNode | undefined
initializer
: Expression | undefined
Returns: VariableDeclaration
**Parameters:** - `node`: `VariableDeclaration` - `name`: `BindingName` - `exclamation-token`: `ExclamationToken | undefined` - `type`: `TypeNode | undefined` - `initializer`: `Expression | undefined` **Returns:** `VariableDeclaration`
(update-variable-declaration-list node declarations)
Parameters:
node
: VariableDeclarationList
declarations
: readonly VariableDeclaration[]
Returns: VariableDeclarationList
**Parameters:** - `node`: `VariableDeclarationList` - `declarations`: `readonly VariableDeclaration[]` **Returns:** `VariableDeclarationList`
(update-variable-statement node)
(update-variable-statement node modifiers)
(update-variable-statement node modifiers declaration-list)
Parameters:
node
: VariableStatement
modifiers
: readonly ModifierLike[] | undefined
declaration-list
: VariableDeclarationList
Returns: VariableStatement
**Parameters:** - `node`: `VariableStatement` - `modifiers`: `readonly ModifierLike[] | undefined` - `declaration-list`: `VariableDeclarationList` **Returns:** `VariableStatement`
(update-void-expression node expression)
Parameters:
node
: VoidExpression
expression
: Expression
Returns: VoidExpression
**Parameters:** - `node`: `VoidExpression` - `expression`: `Expression` **Returns:** `VoidExpression`
(update-while-statement node expression statement)
Parameters:
node
: WhileStatement
expression
: Expression
statement
: Statement
Returns: WhileStatement
**Parameters:** - `node`: `WhileStatement` - `expression`: `Expression` - `statement`: `Statement` **Returns:** `WhileStatement`
(update-with-statement node expression statement)
Parameters:
node
: WithStatement
expression
: Expression
statement
: Statement
Returns: WithStatement
**Parameters:** - `node`: `WithStatement` - `expression`: `Expression` - `statement`: `Statement` **Returns:** `WithStatement`
(update-yield-expression node)
(update-yield-expression node asterisk-token)
(update-yield-expression node asterisk-token expression)
Parameters:
node
: YieldExpression
asterisk-token
: AsteriskToken | undefined
expression
: Expression | undefined
Returns: YieldExpression
**Parameters:** - `node`: `YieldExpression` - `asterisk-token`: `AsteriskToken | undefined` - `expression`: `Expression | undefined` **Returns:** `YieldExpression`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close