@servicenow/sdk - v4.4.1
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isAnyKeyword isArrayBindingPattern isArrayLiteralExpression isArrowFunction isAsExpression isAwaitExpression isBigIntLiteral isBinaryExpression isBindingElement isBlock isBooleanKeyword isBreakStatement isCallExpression isCaseBlock isCaseClause isCatchClause isClassDeclaration isClassExpression isClassStaticBlockDeclaration isCommaListExpression isComputedPropertyName isConditionalExpression isContinueStatement isDebuggerStatement isDecorator isDefaultClause isDeleteExpression isDoStatement isElementAccessExpression isEmptyStatement isEnumDeclaration isEnumMember isExportAssignment isExportDeclaration isExportSpecifier isExpressionStatement isExpressionWithTypeArguments isExternalModuleReference isForInStatement isForOfStatement isForStatement isFunctionDeclaration isFunctionExpression isHeritageClause isIdentifier isIfStatement isImportAttribute isImportAttributes isImportClause isImportDeclaration isImportEqualsDeclaration isImportSpecifier isInferKeyword isInterfaceDeclaration isJSDoc isJSDocAllType isJSDocAugmentsTag isJSDocAuthorTag isJSDocCallbackTag isJSDocClassTag isJSDocDeprecatedTag isJSDocEnumTag isJSDocFunctionType isJSDocImplementsTag isJSDocLink isJSDocLinkCode isJSDocLinkPlain isJSDocMemberName isJSDocNamepathType isJSDocNameReference isJSDocNonNullableType isJSDocNullableType isJSDocOptionalType isJSDocOverloadTag isJSDocOverrideTag isJSDocParameterTag isJSDocPrivateTag isJSDocPropertyTag isJSDocProtectedTag isJSDocPublicTag isJSDocReadonlyTag isJSDocReturnTag isJSDocSatisfiesTag isJSDocSeeTag isJSDocSignature isJSDocTemplateTag isJSDocText isJSDocThisTag isJSDocThrowsTag isJSDocTypedefTag isJSDocTypeExpression isJSDocTypeLiteral isJSDocTypeTag isJSDocUnknownType isJSDocVariadicType isJsxAttribute isJsxClosingElement isJsxClosingFragment isJsxElement isJsxExpression isJsxFragment isJsxNamespacedName isJsxOpeningElement isJsxOpeningFragment isJsxSelfClosingElement isJsxSpreadAttribute isJsxText isLabeledStatement isMetaProperty isMethodDeclaration isMethodSignature isModuleBlock isModuleDeclaration isNamedExports isNamedImports isNamedTupleMember isNamespaceExport isNamespaceImport isNeverKeyword isNewExpression isNonNullExpression isNoSubstitutionTemplateLiteral isNotEmittedStatement isNumberKeyword isNumericLiteral isObjectBindingPattern isObjectKeyword isObjectLiteralExpression isOmittedExpression isParenthesizedExpression isPartiallyEmittedExpression isPostfixUnaryExpression isPrefixUnaryExpression isPrivateIdentifier isPropertyAccessExpression isPropertyAssignment isPropertyDeclaration isPropertySignature isQualifiedName isRegularExpressionLiteral isReturnStatement isSatisfiesExpression isSemicolonToken isShorthandPropertyAssignment isSourceFile isSpreadAssignment isSpreadElement isStringKeyword isStringLiteral isSwitchStatement isSymbolKeyword isSyntaxList isTaggedTemplateExpression isTemplateExpression isTemplateHead isTemplateMiddle isTemplateSpan isTemplateTail isThrowStatement isTryStatement isTypeAliasDeclaration isTypeOfExpression isUndefinedKeyword isVariableDeclaration isVariableDeclarationList isVariableStatement isVoidExpression isWhileStatement isWithStatement isYieldExpression

    Accessors

    Methods

    appendWhitespace asKind asKindOrThrow containsRange forEachChild forEachChildAsArray forEachDescendant forEachDescendantAsArray forget forgetDescendants formatText getAncestors getChildAtIndex getChildAtIndexIfKind getChildAtIndexIfKindOrThrow getChildAtPos getChildCount getChildIndentationLevel getChildIndentationText getChildIndex getChildren getChildrenOfKind getChildSyntaxList getChildSyntaxListOrThrow getCombinedModifierFlags getDescendantAtPos getDescendantAtStartWithWidth getDescendants getDescendantsOfKind getDescendantStatements getEnd getEndLineNumber getFirstAncestor getFirstAncestorByKind getFirstAncestorByKindOrThrow getFirstAncestorOrThrow getFirstChild getFirstChildByKind getFirstChildByKindOrThrow getFirstChildIfKind getFirstChildIfKindOrThrow getFirstChildOrThrow getFirstDescendant getFirstDescendantByKind getFirstDescendantByKindOrThrow getFirstDescendantOrThrow getFlags getFullStart getFullText getFullWidth getIndentationLevel getIndentationText getKind getKindName getLastChild getLastChildByKind getLastChildByKindOrThrow getLastChildIfKind getLastChildIfKindOrThrow getLastChildOrThrow getLastToken getLeadingCommentRanges getLeadingTriviaWidth getLocal getLocalOrThrow getLocals getNextSibling getNextSiblingIfKind getNextSiblingIfKindOrThrow getNextSiblingOrThrow getNextSiblings getNodeProperty getNonWhitespaceStart getParent getParentIf getParentIfKind getParentIfKindOrThrow getParentIfOrThrow getParentOrThrow getParentSyntaxList getParentSyntaxListOrThrow getParentWhile getParentWhileKind getParentWhileKindOrThrow getParentWhileOrThrow getPos getPreviousSibling getPreviousSiblingIfKind getPreviousSiblingIfKindOrThrow getPreviousSiblingOrThrow getPreviousSiblings getProject getSourceFile getStart getStartLineNumber getStartLinePos getSymbol getSymbolOrThrow getSymbolsInScope getText getTrailingCommentRanges getTrailingTriviaEnd getTrailingTriviaWidth getType getTypeNodes getWidth isFirstNodeOnLine isInStringAtPos isInSyntaxList isKind prependWhitespace print replaceWithText transform wasForgotten hasBody hasExpression hasName hasStructure is isAbstractable isAmbientable isArgumented isArrayTypeNode isAsyncable isAwaitable isBindingNamed isBodied isBodyable isCallSignatureDeclaration isChildOrderable isClassLikeDeclarationBase isCommentClassElement isCommentEnumMember isCommentNode isCommentObjectLiteralElement isCommentStatement isCommentTypeElement isConditionalTypeNode isConstructorDeclaration isConstructorTypeNode isConstructSignatureDeclaration isDecoratable isDotDotDotTokenable isExclamationTokenable isExportable isExportGetable isExpression isExpressionable isExpressioned isExtendsClauseable isFalseLiteral isFunctionLikeDeclaration isFunctionTypeNode isGeneratorable isGetAccessorDeclaration isHeritageClauseable isImplementsClauseable isImportAttributeNamed isImportExpression isImportTypeNode isIndexedAccessTypeNode isIndexSignatureDeclaration isInferTypeNode isInitializerExpressionable isInitializerExpressionGetable isIntersectionTypeNode isIterationStatement isJSDocable isJSDocPropertyLikeTag isJSDocTag isJSDocType isJSDocTypeExpressionableTag isJSDocTypeParameteredTag isJSDocUnknownTag isJsxAttributed isJsxTagNamed isLeftHandSideExpression isLeftHandSideExpressioned isLiteralExpression isLiteralLike isLiteralTypeNode isMappedTypeNode isMemberExpression isModifierable isModuleChildable isModuled isModuleNamed isNameable isNamed isNode isNodeWithTypeArguments isNullLiteral isOverloadable isOverrideable isParameterDeclaration isParametered isParenthesizedTypeNode isPrimaryExpression isPropertyNamed isQuestionDotTokenable isQuestionTokenable isReadonlyable isReferenceFindable isRenameable isRestTypeNode isReturnTyped isScopeable isScoped isSetAccessorDeclaration isSignaturedDeclaration isStatement isStatemented isStaticable isSuperExpression isTemplateLiteralTypeNode isTextInsertable isThisExpression isThisTypeNode isTrueLiteral isTupleTypeNode isTypeArgumented isTypeAssertion isTyped isTypeElement isTypeElementMembered isTypeLiteral isTypeNode isTypeOperatorTypeNode isTypeParameterDeclaration isTypeParametered isTypePredicate isTypeQuery isTypeReference isUnaryExpression isUnaryExpressioned isUnionTypeNode isUnwrappable isUpdateExpression

    Constructors

    Properties

    isAnyKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is an AnyKeyword.

    isArrayBindingPattern: (
        node: Node<tsc.Node> | undefined,
    ) => node is ArrayBindingPattern

    Gets if the node is an ArrayBindingPattern.

    isArrayLiteralExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ArrayLiteralExpression

    Gets if the node is an ArrayLiteralExpression.

    isArrowFunction: (node: Node<tsc.Node> | undefined) => node is ArrowFunction

    Gets if the node is an ArrowFunction.

    isAsExpression: (node: Node<tsc.Node> | undefined) => node is AsExpression

    Gets if the node is an AsExpression.

    isAwaitExpression: (node: Node<tsc.Node> | undefined) => node is AwaitExpression

    Gets if the node is an AwaitExpression.

    isBigIntLiteral: (node: Node<tsc.Node> | undefined) => node is BigIntLiteral

    Gets if the node is a BigIntLiteral.

    isBinaryExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is BinaryExpression<tsc.BinaryExpression>

    Gets if the node is a BinaryExpression.

    isBindingElement: (node: Node<tsc.Node> | undefined) => node is BindingElement

    Gets if the node is a BindingElement.

    isBlock: (node: Node<tsc.Node> | undefined) => node is Block

    Gets if the node is a Block.

    isBooleanKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a BooleanKeyword.

    isBreakStatement: (node: Node<tsc.Node> | undefined) => node is BreakStatement

    Gets if the node is a BreakStatement.

    isCallExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is CallExpression<tsc.CallExpression>

    Gets if the node is a CallExpression.

    isCaseBlock: (node: Node<tsc.Node> | undefined) => node is CaseBlock

    Gets if the node is a CaseBlock.

    isCaseClause: (node: Node<tsc.Node> | undefined) => node is CaseClause

    Gets if the node is a CaseClause.

    isCatchClause: (node: Node<tsc.Node> | undefined) => node is CatchClause

    Gets if the node is a CatchClause.

    isClassDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ClassDeclaration

    Gets if the node is a ClassDeclaration.

    isClassExpression: (node: Node<tsc.Node> | undefined) => node is ClassExpression

    Gets if the node is a ClassExpression.

    isClassStaticBlockDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ClassStaticBlockDeclaration

    Gets if the node is a ClassStaticBlockDeclaration.

    isCommaListExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is CommaListExpression

    Gets if the node is a CommaListExpression.

    isComputedPropertyName: (
        node: Node<tsc.Node> | undefined,
    ) => node is ComputedPropertyName

    Gets if the node is a ComputedPropertyName.

    isConditionalExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ConditionalExpression

    Gets if the node is a ConditionalExpression.

    isContinueStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is ContinueStatement

    Gets if the node is a ContinueStatement.

    isDebuggerStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is DebuggerStatement

    Gets if the node is a DebuggerStatement.

    isDecorator: (node: Node<tsc.Node> | undefined) => node is Decorator

    Gets if the node is a Decorator.

    isDefaultClause: (node: Node<tsc.Node> | undefined) => node is DefaultClause

    Gets if the node is a DefaultClause.

    isDeleteExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is DeleteExpression

    Gets if the node is a DeleteExpression.

    isDoStatement: (node: Node<tsc.Node> | undefined) => node is DoStatement

    Gets if the node is a DoStatement.

    isElementAccessExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ElementAccessExpression<tsc.ElementAccessExpression>

    Gets if the node is an ElementAccessExpression.

    isEmptyStatement: (node: Node<tsc.Node> | undefined) => node is EmptyStatement

    Gets if the node is an EmptyStatement.

    isEnumDeclaration: (node: Node<tsc.Node> | undefined) => node is EnumDeclaration

    Gets if the node is an EnumDeclaration.

    isEnumMember: (node: Node<tsc.Node> | undefined) => node is EnumMember

    Gets if the node is an EnumMember.

    isExportAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExportAssignment

    Gets if the node is an ExportAssignment.

    isExportDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExportDeclaration

    Gets if the node is an ExportDeclaration.

    isExportSpecifier: (node: Node<tsc.Node> | undefined) => node is ExportSpecifier

    Gets if the node is an ExportSpecifier.

    isExpressionStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExpressionStatement

    Gets if the node is an ExpressionStatement.

    isExpressionWithTypeArguments: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExpressionWithTypeArguments

    Gets if the node is an ExpressionWithTypeArguments.

    isExternalModuleReference: (
        node: Node<tsc.Node> | undefined,
    ) => node is ExternalModuleReference

    Gets if the node is an ExternalModuleReference.

    isForInStatement: (node: Node<tsc.Node> | undefined) => node is ForInStatement

    Gets if the node is a ForInStatement.

    isForOfStatement: (node: Node<tsc.Node> | undefined) => node is ForOfStatement

    Gets if the node is a ForOfStatement.

    isForStatement: (node: Node<tsc.Node> | undefined) => node is ForStatement

    Gets if the node is a ForStatement.

    isFunctionDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is FunctionDeclaration

    Gets if the node is a FunctionDeclaration.

    isFunctionExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is FunctionExpression

    Gets if the node is a FunctionExpression.

    isHeritageClause: (node: Node<tsc.Node> | undefined) => node is HeritageClause

    Gets if the node is a HeritageClause.

    isIdentifier: (node: Node<tsc.Node> | undefined) => node is Identifier

    Gets if the node is a Identifier.

    isIfStatement: (node: Node<tsc.Node> | undefined) => node is IfStatement

    Gets if the node is a IfStatement.

    isImportAttribute: (node: Node<tsc.Node> | undefined) => node is ImportAttribute

    Gets if the node is a ImportAttribute.

    isImportAttributes: (
        node: Node<tsc.Node> | undefined,
    ) => node is ImportAttributes

    Gets if the node is a ImportAttributes.

    isImportClause: (node: Node<tsc.Node> | undefined) => node is ImportClause

    Gets if the node is a ImportClause.

    isImportDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ImportDeclaration

    Gets if the node is a ImportDeclaration.

    isImportEqualsDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ImportEqualsDeclaration

    Gets if the node is a ImportEqualsDeclaration.

    isImportSpecifier: (node: Node<tsc.Node> | undefined) => node is ImportSpecifier

    Gets if the node is a ImportSpecifier.

    isInferKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Node<Token<InferKeyword>>

    Gets if the node is a InferKeyword.

    isInterfaceDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is InterfaceDeclaration

    Gets if the node is a InterfaceDeclaration.

    isJSDoc: (node: Node<tsc.Node> | undefined) => node is JSDoc

    Gets if the node is a JSDoc.

    isJSDocAllType: (node: Node<tsc.Node> | undefined) => node is JSDocAllType

    Gets if the node is a JSDocAllType.

    isJSDocAugmentsTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocAugmentsTag

    Gets if the node is a JSDocAugmentsTag.

    isJSDocAuthorTag: (node: Node<tsc.Node> | undefined) => node is JSDocAuthorTag

    Gets if the node is a JSDocAuthorTag.

    isJSDocCallbackTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocCallbackTag

    Gets if the node is a JSDocCallbackTag.

    isJSDocClassTag: (node: Node<tsc.Node> | undefined) => node is JSDocClassTag

    Gets if the node is a JSDocClassTag.

    isJSDocDeprecatedTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocDeprecatedTag

    Gets if the node is a JSDocDeprecatedTag.

    isJSDocEnumTag: (node: Node<tsc.Node> | undefined) => node is JSDocEnumTag

    Gets if the node is a JSDocEnumTag.

    isJSDocFunctionType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocFunctionType

    Gets if the node is a JSDocFunctionType.

    isJSDocImplementsTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocImplementsTag

    Gets if the node is a JSDocImplementsTag.

    isJSDocLink: (node: Node<tsc.Node> | undefined) => node is JSDocLink

    Gets if the node is a JSDocLink.

    isJSDocLinkCode: (node: Node<tsc.Node> | undefined) => node is JSDocLinkCode

    Gets if the node is a JSDocLinkCode.

    isJSDocLinkPlain: (node: Node<tsc.Node> | undefined) => node is JSDocLinkPlain

    Gets if the node is a JSDocLinkPlain.

    isJSDocMemberName: (node: Node<tsc.Node> | undefined) => node is JSDocMemberName

    Gets if the node is a JSDocMemberName.

    isJSDocNamepathType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNamepathType

    Gets if the node is a JSDocNamepathType.

    isJSDocNameReference: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNameReference

    Gets if the node is a JSDocNameReference.

    isJSDocNonNullableType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNonNullableType

    Gets if the node is a JSDocNonNullableType.

    isJSDocNullableType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocNullableType

    Gets if the node is a JSDocNullableType.

    isJSDocOptionalType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocOptionalType

    Gets if the node is a JSDocOptionalType.

    isJSDocOverloadTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocOverloadTag

    Gets if the node is a JSDocOverloadTag.

    isJSDocOverrideTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocOverrideTag

    Gets if the node is a JSDocOverrideTag.

    isJSDocParameterTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocParameterTag

    Gets if the node is a JSDocParameterTag.

    isJSDocPrivateTag: (node: Node<tsc.Node> | undefined) => node is JSDocPrivateTag

    Gets if the node is a JSDocPrivateTag.

    isJSDocPropertyTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocPropertyTag

    Gets if the node is a JSDocPropertyTag.

    isJSDocProtectedTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocProtectedTag

    Gets if the node is a JSDocProtectedTag.

    isJSDocPublicTag: (node: Node<tsc.Node> | undefined) => node is JSDocPublicTag

    Gets if the node is a JSDocPublicTag.

    isJSDocReadonlyTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocReadonlyTag

    Gets if the node is a JSDocReadonlyTag.

    isJSDocReturnTag: (node: Node<tsc.Node> | undefined) => node is JSDocReturnTag

    Gets if the node is a JSDocReturnTag.

    isJSDocSatisfiesTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocSatisfiesTag

    Gets if the node is a JSDocSatisfiesTag.

    isJSDocSeeTag: (node: Node<tsc.Node> | undefined) => node is JSDocSeeTag

    Gets if the node is a JSDocSeeTag.

    isJSDocSignature: (node: Node<tsc.Node> | undefined) => node is JSDocSignature

    Gets if the node is a JSDocSignature.

    isJSDocTemplateTag: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocTemplateTag

    Gets if the node is a JSDocTemplateTag.

    isJSDocText: (node: Node<tsc.Node> | undefined) => node is JSDocText

    Gets if the node is a JSDocText.

    isJSDocThisTag: (node: Node<tsc.Node> | undefined) => node is JSDocThisTag

    Gets if the node is a JSDocThisTag.

    isJSDocThrowsTag: (node: Node<tsc.Node> | undefined) => node is JSDocThrowsTag

    Gets if the node is a JSDocThrowsTag.

    isJSDocTypedefTag: (node: Node<tsc.Node> | undefined) => node is JSDocTypedefTag

    Gets if the node is a JSDocTypedefTag.

    isJSDocTypeExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocTypeExpression

    Gets if the node is a JSDocTypeExpression.

    isJSDocTypeLiteral: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocTypeLiteral

    Gets if the node is a JSDocTypeLiteral.

    isJSDocTypeTag: (node: Node<tsc.Node> | undefined) => node is JSDocTypeTag

    Gets if the node is a JSDocTypeTag.

    isJSDocUnknownType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocUnknownType

    Gets if the node is a JSDocUnknownType.

    isJSDocVariadicType: (
        node: Node<tsc.Node> | undefined,
    ) => node is JSDocVariadicType

    Gets if the node is a JSDocVariadicType.

    isJsxAttribute: (node: Node<tsc.Node> | undefined) => node is JsxAttribute

    Gets if the node is a JsxAttribute.

    isJsxClosingElement: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxClosingElement

    Gets if the node is a JsxClosingElement.

    isJsxClosingFragment: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxClosingFragment

    Gets if the node is a JsxClosingFragment.

    isJsxElement: (node: Node<tsc.Node> | undefined) => node is JsxElement

    Gets if the node is a JsxElement.

    isJsxExpression: (node: Node<tsc.Node> | undefined) => node is JsxExpression

    Gets if the node is a JsxExpression.

    isJsxFragment: (node: Node<tsc.Node> | undefined) => node is JsxFragment

    Gets if the node is a JsxFragment.

    isJsxNamespacedName: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxNamespacedName

    Gets if the node is a JsxNamespacedName.

    isJsxOpeningElement: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxOpeningElement

    Gets if the node is a JsxOpeningElement.

    isJsxOpeningFragment: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxOpeningFragment

    Gets if the node is a JsxOpeningFragment.

    isJsxSelfClosingElement: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxSelfClosingElement

    Gets if the node is a JsxSelfClosingElement.

    isJsxSpreadAttribute: (
        node: Node<tsc.Node> | undefined,
    ) => node is JsxSpreadAttribute

    Gets if the node is a JsxSpreadAttribute.

    isJsxText: (node: Node<tsc.Node> | undefined) => node is JsxText

    Gets if the node is a JsxText.

    isLabeledStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is LabeledStatement

    Gets if the node is a LabeledStatement.

    isMetaProperty: (node: Node<tsc.Node> | undefined) => node is MetaProperty

    Gets if the node is a MetaProperty.

    isMethodDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is MethodDeclaration

    Gets if the node is a MethodDeclaration.

    isMethodSignature: (node: Node<tsc.Node> | undefined) => node is MethodSignature

    Gets if the node is a MethodSignature.

    isModuleBlock: (node: Node<tsc.Node> | undefined) => node is ModuleBlock

    Gets if the node is a ModuleBlock.

    isModuleDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is ModuleDeclaration

    Gets if the node is a ModuleDeclaration.

    isNamedExports: (node: Node<tsc.Node> | undefined) => node is NamedExports

    Gets if the node is a NamedExports.

    isNamedImports: (node: Node<tsc.Node> | undefined) => node is NamedImports

    Gets if the node is a NamedImports.

    isNamedTupleMember: (
        node: Node<tsc.Node> | undefined,
    ) => node is NamedTupleMember

    Gets if the node is a NamedTupleMember.

    isNamespaceExport: (node: Node<tsc.Node> | undefined) => node is NamespaceExport

    Gets if the node is a NamespaceExport.

    isNamespaceImport: (node: Node<tsc.Node> | undefined) => node is NamespaceImport

    Gets if the node is a NamespaceImport.

    isNeverKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Node<Token<NeverKeyword>>

    Gets if the node is a NeverKeyword.

    isNewExpression: (node: Node<tsc.Node> | undefined) => node is NewExpression

    Gets if the node is a NewExpression.

    isNonNullExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is NonNullExpression

    Gets if the node is a NonNullExpression.

    isNoSubstitutionTemplateLiteral: (
        node: Node<tsc.Node> | undefined,
    ) => node is NoSubstitutionTemplateLiteral

    Gets if the node is a NoSubstitutionTemplateLiteral.

    isNotEmittedStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is NotEmittedStatement

    Gets if the node is a NotEmittedStatement.

    isNumberKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a NumberKeyword.

    isNumericLiteral: (node: Node<tsc.Node> | undefined) => node is NumericLiteral

    Gets if the node is a NumericLiteral.

    isObjectBindingPattern: (
        node: Node<tsc.Node> | undefined,
    ) => node is ObjectBindingPattern

    Gets if the node is a ObjectBindingPattern.

    isObjectKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a ObjectKeyword.

    isObjectLiteralExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ObjectLiteralExpression

    Gets if the node is a ObjectLiteralExpression.

    isOmittedExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is OmittedExpression

    Gets if the node is a OmittedExpression.

    isParenthesizedExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is ParenthesizedExpression

    Gets if the node is a ParenthesizedExpression.

    isPartiallyEmittedExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PartiallyEmittedExpression

    Gets if the node is a PartiallyEmittedExpression.

    isPostfixUnaryExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PostfixUnaryExpression

    Gets if the node is a PostfixUnaryExpression.

    isPrefixUnaryExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PrefixUnaryExpression

    Gets if the node is a PrefixUnaryExpression.

    isPrivateIdentifier: (
        node: Node<tsc.Node> | undefined,
    ) => node is PrivateIdentifier

    Gets if the node is a PrivateIdentifier.

    isPropertyAccessExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertyAccessExpression<tsc.PropertyAccessExpression>

    Gets if the node is a PropertyAccessExpression.

    isPropertyAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertyAssignment

    Gets if the node is a PropertyAssignment.

    isPropertyDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertyDeclaration

    Gets if the node is a PropertyDeclaration.

    isPropertySignature: (
        node: Node<tsc.Node> | undefined,
    ) => node is PropertySignature

    Gets if the node is a PropertySignature.

    isQualifiedName: (node: Node<tsc.Node> | undefined) => node is QualifiedName

    Gets if the node is a QualifiedName.

    isRegularExpressionLiteral: (
        node: Node<tsc.Node> | undefined,
    ) => node is RegularExpressionLiteral

    Gets if the node is a RegularExpressionLiteral.

    isReturnStatement: (node: Node<tsc.Node> | undefined) => node is ReturnStatement

    Gets if the node is a ReturnStatement.

    isSatisfiesExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is SatisfiesExpression

    Gets if the node is a SatisfiesExpression.

    isSemicolonToken: (
        node: Node<tsc.Node> | undefined,
    ) => node is Node<Token<SemicolonToken>>

    Gets if the node is a SemicolonToken.

    isShorthandPropertyAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is ShorthandPropertyAssignment

    Gets if the node is a ShorthandPropertyAssignment.

    isSourceFile: (node: Node<tsc.Node> | undefined) => node is SourceFile

    Gets if the node is a SourceFile.

    isSpreadAssignment: (
        node: Node<tsc.Node> | undefined,
    ) => node is SpreadAssignment

    Gets if the node is a SpreadAssignment.

    isSpreadElement: (node: Node<tsc.Node> | undefined) => node is SpreadElement

    Gets if the node is a SpreadElement.

    isStringKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a StringKeyword.

    isStringLiteral: (node: Node<tsc.Node> | undefined) => node is StringLiteral

    Gets if the node is a StringLiteral.

    isSwitchStatement: (node: Node<tsc.Node> | undefined) => node is SwitchStatement

    Gets if the node is a SwitchStatement.

    isSymbolKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a SymbolKeyword.

    isSyntaxList: (node: Node<tsc.Node> | undefined) => node is SyntaxList

    Gets if the node is a SyntaxList.

    isTaggedTemplateExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is TaggedTemplateExpression

    Gets if the node is a TaggedTemplateExpression.

    isTemplateExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is TemplateExpression

    Gets if the node is a TemplateExpression.

    isTemplateHead: (node: Node<tsc.Node> | undefined) => node is TemplateHead

    Gets if the node is a TemplateHead.

    isTemplateMiddle: (node: Node<tsc.Node> | undefined) => node is TemplateMiddle

    Gets if the node is a TemplateMiddle.

    isTemplateSpan: (node: Node<tsc.Node> | undefined) => node is TemplateSpan

    Gets if the node is a TemplateSpan.

    isTemplateTail: (node: Node<tsc.Node> | undefined) => node is TemplateTail

    Gets if the node is a TemplateTail.

    isThrowStatement: (node: Node<tsc.Node> | undefined) => node is ThrowStatement

    Gets if the node is a ThrowStatement.

    isTryStatement: (node: Node<tsc.Node> | undefined) => node is TryStatement

    Gets if the node is a TryStatement.

    isTypeAliasDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is TypeAliasDeclaration

    Gets if the node is a TypeAliasDeclaration.

    isTypeOfExpression: (
        node: Node<tsc.Node> | undefined,
    ) => node is TypeOfExpression

    Gets if the node is a TypeOfExpression.

    isUndefinedKeyword: (
        node: Node<tsc.Node> | undefined,
    ) => node is Expression<tsc.Expression>

    Gets if the node is a UndefinedKeyword.

    isVariableDeclaration: (
        node: Node<tsc.Node> | undefined,
    ) => node is VariableDeclaration

    Gets if the node is a VariableDeclaration.

    isVariableDeclarationList: (
        node: Node<tsc.Node> | undefined,
    ) => node is VariableDeclarationList

    Gets if the node is a VariableDeclarationList.

    isVariableStatement: (
        node: Node<tsc.Node> | undefined,
    ) => node is VariableStatement

    Gets if the node is a VariableStatement.

    isVoidExpression: (node: Node<tsc.Node> | undefined) => node is VoidExpression

    Gets if the node is a VoidExpression.

    isWhileStatement: (node: Node<tsc.Node> | undefined) => node is WhileStatement

    Gets if the node is a WhileStatement.

    isWithStatement: (node: Node<tsc.Node> | undefined) => node is WithStatement

    Gets if the node is a WithStatement.

    isYieldExpression: (node: Node<tsc.Node> | undefined) => node is YieldExpression

    Gets if the node is a YieldExpression.

    Accessors

    • get compilerNode(): NodeType

      Gets the underlying compiler node.

      Returns NodeType

    Methods

    • Appends the specified whitespace to current node.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function.

      Returns void

    • If the node contains the provided range (inclusive).

      Parameters

      • pos: number

        Start position.

      • end: number

        End position.

      Returns boolean

    • Invokes the cbNode callback for each child and the cbNodeArray for every array of nodes stored in properties of the node. If cbNodeArray is not defined, then it will pass every element of the array to cbNode.

      Type Parameters

      • T

      Parameters

      • cbNode: (node: Node) => T | undefined

        Callback invoked for each child.

      • OptionalcbNodeArray: (nodes: Node<tsc.Node>[]) => T | undefined

        Callback invoked for each array of nodes.

      Returns T | undefined

      The first truthy value returned by a callback.

    • Gets the child nodes passed to the delegate of node.forEachChild(child => {}) as an array.

      Returns Node<tsc.Node>[]

    • Invokes the cbNode callback for each descendant and the cbNodeArray for every array of nodes stored in properties of the node and descendant nodes. If cbNodeArray is not defined, then it will pass every element of the array to cbNode.

      Type Parameters

      • T

      Parameters

      Returns T | undefined

      The first truthy value returned by a callback.

      There exists a traversal object on the second parameter that allows various control of iteration.

    • Gets the descendant nodes passed to the delegate of node.forEachDescendant(descendant => {}) as an array.

      Returns Node<tsc.Node>[]

    • Releases the node and all its descendants from the underlying node cache and ast.

      This is useful if you want to improve the performance of manipulation by not tracking this node anymore.

      Returns void

    • Forgets the descendants of this node.

      Returns void

    • Formats the node's text using the internal TypeScript formatting API.

      Parameters

      Returns void

    • Goes up the tree getting all the parents in ascending order.

      Returns Node<tsc.Node>[]

    • Gets the child at the specified index.

      Parameters

      • index: number

        Index of the child.

      Returns Node

    • Gets the child at the provided text position, or undefined if not found.

      Parameters

      • pos: number

        Text position to search for.

      Returns Node<tsc.Node> | undefined

    • Gets the number of children the node has.

      Returns number

    • Gets the child indentation level of the current node.

      Returns number

    • Gets the next indentation level text.

      Parameters

      • Optionaloffset: number

        Optional number of levels of indentation to add or remove.

      Returns string

    • Gets the child index of this node relative to the parent.

      Returns number

    • Gets all the children of the node.

      Returns Node<tsc.Node>[]

    • Gets the child syntax list if it exists.

      Returns SyntaxList | undefined

    • Gets the child syntax list or throws if it doesn't exist.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns SyntaxList

    • Gets the most specific descendant at the provided text position, or undefined if not found.

      Parameters

      • pos: number

        Text position to search for.

      Returns Node<tsc.Node> | undefined

    • Gets the most specific descendant at the provided start text position with the specified width, or undefined if not found.

      Parameters

      • start: number

        Start text position to search for.

      • width: number

        Text length of the node to search for.

      Returns Node<tsc.Node> | undefined

    • Gets the source file text position where the node ends.

      Returns number

      This does not include the following trivia (comments and whitespace).

    • Gets the line number of the end of the node.

      Returns number

    • Gets the first ancestor that matches the provided condition or returns undefined if not found.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition to match.

      Returns T | undefined

    • Gets the first ancestor that matches the provided condition or returns undefined if not found.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition to match.

      Returns Node<tsc.Node> | undefined

    • Gets the first ancestor that matches the provided condition or throws if not found.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition to match.

      Returns T

    • Gets the first ancestor that matches the provided condition or throws if not found.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition to match.

      Returns Node

    • Gets the first child by a condition.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      Returns T | undefined

    • Gets the first child by a condition.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      Returns Node<tsc.Node> | undefined

    • Gets the first child by a condition or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the first child by a condition or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the first descendant by a condition.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      Returns T | undefined

    • Gets the first descendant by a condition.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      Returns Node<tsc.Node> | undefined

    • Gets the first descendant by a condition or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the first descendant by a condition or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the source file text position of the end of the last significant token or the start of the source file.

      Returns number

    • Gets the full text with leading trivia (comments and whitespace).

      Returns string

    • Gets the text length of the node with trivia.

      Returns number

    • Gets the indentation level of the current node.

      Returns number

    • Gets the indentation text.

      Parameters

      • Optionaloffset: number

        Optional number of levels of indentation to add or remove.

      Returns string

    • Gets the syntax kind name.

      Returns string

    • Gets the last child by a condition.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      Returns T | undefined

    • Gets the last child by a condition.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      Returns Node<tsc.Node> | undefined

    • Gets the last child by a condition or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Condition.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the last child by a condition or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Condition.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the last token of this node. Usually this is a close brace.

      Returns Node

    • Gets the node's leading trivia's text length.

      Returns number

    • Gets the specified local symbol by name or returns undefined if it doesn't exist.

      WARNING: The symbol table of locals is not exposed publicly by the compiler. Use this at your own risk knowing it may break.

      Parameters

      • name: string

        Name of the local symbol.

      Returns Symbol | undefined

    • Gets the specified local symbol by name or throws if it doesn't exist.

      WARNING: The symbol table of locals is not exposed publicly by the compiler. Use this at your own risk knowing it may break.

      Parameters

      • name: string

        Name of the local symbol.

      • Optionalmessage: string | (() => string)

      Returns Symbol

    • Gets the symbols within the current scope.

      WARNING: The symbol table of locals is not exposed publicly by the compiler. Use this at your own risk knowing it may break.

      Returns Symbol[]

    • Gets the next sibling.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the next sibling.

      Returns T | undefined

    • Gets the next sibling.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the next sibling.

      Returns Node<tsc.Node> | undefined

    • Gets the next sibling or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the next sibling.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the next sibling or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the next sibling.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the next siblings.

      Note: Closest sibling is the zero index.

      Returns Node<tsc.Node>[]

    • Gets the first source file text position that is not whitespace taking into account comment nodes and a previous node's trailing trivia.

      Returns number

    • Gets the parent if it matches a certain condition.

      Type Parameters

      Parameters

      Returns T | undefined

    • Gets the parent if it matches a certain condition.

      Parameters

      Returns Node<tsc.Node> | undefined

    • Gets the parent if it matches a certain condition or throws.

      Type Parameters

      Parameters

      • condition: (parent: Node<tsc.Node> | undefined, node: Node) => parent is T
      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the parent if it matches a certain condition or throws.

      Parameters

      • condition: (parent: Node<tsc.Node> | undefined, node: Node) => boolean
      • Optionalmessage: string | (() => string)

      Returns Node

    • Parameters

      • Optionalmessage: string | (() => string)

      Returns Node<tsc.Node>

    • Gets the parent if it's a syntax list.

      Returns SyntaxList | undefined

    • Gets the parent if it's a syntax list or throws an error otherwise.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns SyntaxList

    • Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.

      Type Parameters

      Parameters

      • condition: (parent: Node, child: Node) => parent is T

        Condition that tests the parent to see if the expression is true.

      Returns T | undefined

    • Goes up the parents (ancestors) of the node while a condition is true. Returns undefined if the initial parent doesn't match the condition.

      Parameters

      • condition: (parent: Node, child: Node) => boolean

        Condition that tests the parent to see if the expression is true.

      Returns Node<tsc.Node> | undefined

    • Goes up the parents (ancestors) of the node while the parent is the specified syntax kind. Throws if the initial parent is not the specified syntax kind.

      Type Parameters

      Parameters

      • kind: TKind

        Syntax kind to check for.

      • Optionalmessage: string | (() => string)

      Returns KindToNodeMappings[TKind]

    • Goes up the parents (ancestors) of the node while a condition is true. Throws if the initial parent doesn't match the condition.

      Type Parameters

      Parameters

      • condition: (parent: Node, node: Node) => parent is T

        Condition that tests the parent to see if the expression is true.

      • Optionalmessage: string | (() => string)

      Returns T

    • Goes up the parents (ancestors) of the node while a condition is true. Throws if the initial parent doesn't match the condition.

      Parameters

      • condition: (parent: Node, node: Node) => boolean

        Condition that tests the parent to see if the expression is true.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the source file text position where the node starts that includes the leading trivia (comments and whitespace).

      Returns number

    • Gets the previous sibling.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the previous sibling.

      Returns T | undefined

    • Gets the previous sibling.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the previous sibling.

      Returns Node<tsc.Node> | undefined

    • Gets the previous sibling or throws.

      Type Parameters

      Parameters

      • Optionalcondition: (node: Node) => node is T

        Optional condition for getting the previous sibling.

      • Optionalmessage: string | (() => string)

      Returns T

    • Gets the previous sibling or throws.

      Parameters

      • Optionalcondition: (node: Node) => boolean

        Optional condition for getting the previous sibling.

      • Optionalmessage: string | (() => string)

      Returns Node

    • Gets the previous siblings.

      Note: Closest sibling is the zero index.

      Returns Node<tsc.Node>[]

    • Gets the project.

      Returns Project

    • Gets the source file text position where the node starts that does not include the leading trivia (comments and whitespace).

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments.

      Returns number

    • Gets the line number at the start of the node.

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments or not.

      Returns number

    • Gets the position of the start of the line that this node starts on.

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments or not.

      Returns number

    • Gets the compiler symbol or undefined if it doesn't exist.

      Returns Symbol | undefined

    • Gets the symbol or throws an error if it doesn't exist.

      Parameters

      • Optionalmessage: string | (() => string)

      Returns Symbol

    • Gets the symbols in the scope of the node.

      Note: This will always return the local symbols. If you want the export symbol from a local symbol, then use the #getExportSymbol() method on the symbol.

      Parameters

      Returns Symbol[]

    • Gets the text without leading trivia (comments and whitespace).

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the js doc comments when getting the text.

      Returns string

    • Gets the text without leading trivia (comments and whitespace).

      Parameters

      • options: { includeJsDocComments?: boolean; trimLeadingIndentation?: boolean }

        Options for getting the text.

      Returns string

    • Gets the text position of the next significant token or new line.

      Returns number

    • Gets the text length from the end of the current node to the next significant token or new line.

      Returns number

    • Gets the type of the node.

      Returns Type

    • Gets the intersection type nodes.

      Returns TypeNode<tsc.TypeNode>[]

    • Gets the text length of the node without trivia.

      Parameters

      • OptionalincludeJsDocComments: boolean

        Whether to include the JS doc comments in the width or not.

      Returns number

    • Gets if this is the first node on the current line.

      Returns boolean

    • Gets if the specified position is within a string.

      Parameters

      • pos: number

        Position.

      Returns boolean

    • Gets if this node is in a syntax list.

      Returns boolean

    • Prepends the specified whitespace to current node.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function.

      Returns void

    • Prints the node using the compiler's printer.

      Parameters

      Returns string

    • Replaces the text of the current node with new text.

      This will forget the current node and return a new node that can be asserted or type guarded to the correct type.

      Parameters

      • textOrWriterFunction: string | WriterFunction

        Text or writer function to replace with.

      Returns Node

      The new node.

      This will replace the text from the Node#getStart(true) position (start position with js docs) to Node#getEnd(). Use Node#getText(true) to get all the text that will be replaced.

    • Transforms the node using the compiler api nodes and functions and returns the node that was transformed (experimental).

      WARNING: This will forget descendants of transformed nodes and potentially this node.

      Parameters

      Returns Node

      sourceFile.transform(traversal => {
      const node = traversal.visitChildren(); // recommend always visiting the children first (post order)
      if (ts.isNumericLiteral(node))
      return ts.createNumericLiteral((parseInt(node.text, 10) + 1).toString());
      return node;
      });
      const classDec = sourceFile.getClassOrThrow("MyClass");
      classDec.transform(traversal => {
      const node = traversal.currentNode;
      return ts.updateClassDeclaration(node, undefined, undefined, ts.createIdentifier("MyUpdatedClass"), undefined, undefined, []);
      });
    • Gets if the compiler node was forgotten.

      This will be true when the compiler node was forgotten or removed.

      Returns boolean

    • Gets if the node has a body.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getBody(): Node }

    • Gets if the node has an expression.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getExpression(): Expression }

    • Gets if the node has a name.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getName(): string; getNameNode(): Node }

    • Gets if the node has a structure.

      Type Parameters

      Parameters

      • node: T

        Node to check.

      Returns node is T & { getStructure(): Structures }

    • Gets if the node is an ArgumentedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ArgumentedNode & ArgumentedNodeExtensionType & T

    • Gets if the node is an AwaitableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is AwaitableNode & AwaitableNodeExtensionType & T

    • Gets if the node is a BindingNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is BindingNamedNode & BindingNamedNodeExtensionType & T

    • Gets if the node is a BodiedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is BodiedNode & BodiedNodeExtensionType & T

    • Gets if the node is a BodyableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is BodyableNode & BodyableNodeExtensionType & T

    • Gets if the node is a ChildOrderableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ChildOrderableNode & ChildOrderableNodeExtensionType & T

    • Gets if the node is an ExportGetableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExportGetableNode & ExportGetableNodeExtensionType & T

    • Gets if the node is an ExpressionableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExpressionableNode & ExpressionableNodeExtensionType & T

    • Gets if the node is an ExpressionedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ExpressionedNode & ExpressionedNodeExtensionType & T

    • Gets if the node is a GeneratorableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is GeneratorableNode & GeneratorableNodeExtensionType & T

    • Gets if the node is a JSDocableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is JSDocableNode & JSDocableNodeExtensionType & T

    • Gets if the node is a JsxTagNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is JsxTagNamedNode & JsxTagNamedNodeExtensionType & T

    • Gets if the node is a LiteralLikeNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is LiteralLikeNode & LiteralLikeNodeExtensionType & T

    • Gets if the node is a ModifierableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ModifierableNode & ModifierableNodeExtensionType & T

    • Gets if the node is a ModuleChildableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ModuleChildableNode & ModuleChildableNodeExtensionType & T

    • Gets if the node is a ModuleNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ModuleNamedNode & ModuleNamedNodeExtensionType & T

    • Gets if the node is a NameableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is NameableNode & NameableNodeExtensionType & T

    • Gets if the node is a NamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is NamedNode & NamedNodeExtensionType & T

    • Gets if the provided value is a Node.

      Parameters

      • value: unknown

      Returns value is Node<tsc.Node>

    • Gets if the node is a ParameteredNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ParameteredNode & ParameteredNodeExtensionType & T

    • Gets if the node is a PropertyNamedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is PropertyNamedNode & PropertyNamedNodeExtensionType & T

    • Gets if the node is a RenameableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is RenameableNode & RenameableNodeExtensionType & T

    • Gets if the node is a ReturnTypedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is ReturnTypedNode & ReturnTypedNodeExtensionType & T

    • Gets if the node is a StatementedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is StatementedNode & StatementedNodeExtensionType & T

    • Gets if the node is a TextInsertableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TextInsertableNode & TextInsertableNodeExtensionType & T

    • Gets if the node is a TypeArgumentedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypeArgumentedNode & TypeArgumentedNodeExtensionType & T

    • Gets if the node is a TypedNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypedNode & TypedNodeExtensionType & T

    • Gets if the node is a TypeParameteredNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is TypeParameteredNode & TypeParameteredNodeExtensionType & T

    • Gets if the node is a UnwrappableNode.

      Type Parameters

      Parameters

      • node: T | undefined

      Returns node is UnwrappableNode & UnwrappableNodeExtensionType & T