Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/src/dev/deps.ts>Node

The next-gen web framework.
Extremely Popular
Go to Latest
class Node
import { Node } from "https://deno.land/x/fresh@1.1.5/src/dev/deps.ts";

Constructors

new
protected
Node()

Type Parameters

optional
NodeType extends ts.Node = ts.Node

Properties

readonly
compilerNode: NodeType

Gets the underlying compiler node.

Methods

appendWhitespace(textOrWriterFunction: string | WriterFunction): void

Appends the specified whitespace to current node.

asKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the node as the specified kind if it is equal to that kind, otherwise returns undefined.

asKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the node as the specified kind if it is equal to that kind, otherwise throws.

containsRange(pos: number, end: number): boolean

If the node contains the provided range (inclusive).

forEachChild<T>(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: Node[]) => T | undefined): T | undefined

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.

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

forEachDescendant<T>(cbNode: (node: Node, traversal: ForEachDescendantTraversalControl) => T | undefined, cbNodeArray?: (nodes: Node[], traversal: ForEachDescendantTraversalControl) => T | undefined): T | undefined

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.

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

forget(): void

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.

Forgets the descendants of this node.

formatText(settings?: FormatCodeSettings): void

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

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

getChildAtIndex(index: number): Node

Gets the child at the specified index.

getChildAtIndexIfKind<TKind extends SyntaxKind>(index: number, kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the child at the specified index if it's the specified kind or returns undefined.

getChildAtIndexIfKindOrThrow<TKind extends SyntaxKind>(
index: number,
kind: TKind,
message?: string | (() => string),
): KindToNodeMappings[TKind]

Gets the child at the specified index if it's the specified kind or throws an exception.

getChildAtPos(pos: number): Node | undefined

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

getChildCount(): number

Gets the number of children the node has.

Gets the child indentation level of the current node.

getChildIndentationText(offset?: number): string

Gets the next indentation level text.

getChildIndex(): number

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

Gets all the children of the node.

getChildrenOfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind][]

Gets the children based on a kind.

getChildSyntaxList(): SyntaxList | undefined

Gets the child syntax list if it exists.

getChildSyntaxListOrThrow(message?: string | (() => string)): SyntaxList

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

getCombinedModifierFlags(): ts.ModifierFlags

Gets the combined modifier flags.

getDescendantAtPos(pos: number): Node | undefined

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

getDescendantAtStartWithWidth(start: number, width: number): Node | undefined

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

Gets the node's descendants.

getDescendantsOfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind][]

Gets the descendants that match a specified syntax kind.

getDescendantStatements(): (Statement | Expression)[]

Gets the node's descendant statements and any arrow function statement-like expressions (ex. returns the expression 5 in () => 5).

getEnd(): number

Gets the source file text position where the node ends.

Gets the line number of the end of the node.

getFirstAncestor<T extends Node>(condition?: (node: Node) => node is T): T | undefined

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

getFirstAncestor(condition?: (node: Node) => boolean): Node | undefined

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

getFirstAncestorByKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Get the first ancestor by syntax kind.

getFirstAncestorByKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the first ancestor by syntax kind or throws if not found.

getFirstAncestorOrThrow<T extends Node>(condition?: (node: Node) => node is T): T

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

getFirstAncestorOrThrow(condition?: (node: Node) => boolean): Node

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

getFirstChild<T extends Node>(condition?: (node: Node) => node is T): T | undefined

Gets the first child by a condition.

getFirstChild(condition?: (node: Node) => boolean): Node | undefined

Gets the first child by a condition.

getFirstChildByKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the first child by syntax kind.

getFirstChildByKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the first child by syntax kind or throws an error if not found.

getFirstChildIfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the first child if it matches the specified syntax kind.

getFirstChildIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the first child if it matches the specified syntax kind or throws an error if not found.

getFirstChildOrThrow<T extends Node>(condition?: (node: Node) => node is T, message?: string | (() => string)): T

Gets the first child by a condition or throws.

getFirstChildOrThrow(condition?: (node: Node) => boolean, message?: string | (() => string)): Node

Gets the first child by a condition or throws.

getFirstDescendant<T extends Node>(condition?: (node: Node) => node is T): T | undefined

Gets the first descendant by a condition.

getFirstDescendant(condition?: (node: Node) => boolean): Node | undefined

Gets the first descendant by a condition.

getFirstDescendantByKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the first descendant by syntax kind.

getFirstDescendantByKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the first descendant by syntax kind or throws.

getFirstDescendantOrThrow<T extends Node>(condition?: (node: Node) => node is T, message?: string | (() => string)): T

Gets the first descendant by a condition or throws.

getFirstDescendantOrThrow(condition?: (node: Node) => boolean, message?: string | (() => string)): Node

Gets the first descendant by a condition or throws.

getFlags(): ts.NodeFlags

Gets the node's flags.

getFullStart(): number

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

getFullText(): string

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

getFullWidth(): number

Gets the text length of the node with trivia.

Gets the indentation level of the current node.

getIndentationText(offset?: number): string

Gets the indentation text.

getKind(): SyntaxKind

Gets the syntax kind.

getKindName(): string

Gets the syntax kind name.

getLastChild<T extends Node>(condition?: (node: Node) => node is T): T | undefined

Gets the last child by a condition.

getLastChild(condition?: (node: Node) => boolean): Node | undefined

Gets the last child by a condition.

getLastChildByKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the last child by syntax kind.

getLastChildByKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the last child by syntax kind or throws an error if not found.

getLastChildIfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the last child if it matches the specified syntax kind.

getLastChildIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the last child if it matches the specified syntax kind or throws an error if not found.

getLastChildOrThrow<T extends Node>(condition?: (node: Node) => node is T, message?: string | (() => string)): T

Gets the last child by a condition or throws.

getLastChildOrThrow(condition?: (node: Node) => boolean, message?: string | (() => string)): Node

Gets the last child by a condition or throws.

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

getLeadingCommentRanges(): CommentRange[]

Gets the leading comment ranges of the current node.

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

getLocal(name: string): Symbol | undefined

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.

getLocalOrThrow(name: string, message?: string | (() => string)): Symbol

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.

getLocals(): 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.

getNextSibling<T extends Node>(condition?: (node: Node) => node is T): T | undefined

Gets the next sibling.

getNextSibling(condition?: (node: Node) => boolean): Node | undefined

Gets the next sibling.

getNextSiblingIfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the next sibling if it matches the specified kind.

getNextSiblingIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the next sibiling if it matches the specified kind, or throws.

getNextSiblingOrThrow<T extends Node>(condition?: (node: Node) => node is T, message?: string | (() => string)): T

Gets the next sibling or throws.

getNextSiblingOrThrow(condition?: (node: Node) => boolean, message?: string | (() => string)): Node

Gets the next sibling or throws.

Gets the next siblings.

Note: Closest sibling is the zero index.

getNodeProperty<KeyType extends keyof LocalNodeType, LocalNodeType extends ts.Node = NodeType>(propertyName: KeyType): NodePropertyToWrappedType<LocalNodeType, KeyType>

Gets a compiler node property wrapped in a Node.

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

getParent(): Node<ts.Node> | undefined

Get the node's parent.

getParentIf<T extends Node>(condition: (parent: Node | undefined, node: Node) => parent is T): T | undefined

Gets the parent if it matches a certain condition.

getParentIf(condition: (parent: Node | undefined, node: Node) => boolean): Node | undefined

Gets the parent if it matches a certain condition.

getParentIfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the parent if it's a certain syntax kind.

getParentIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the parent if it's a certain syntax kind or throws.

getParentIfOrThrow<T extends Node>(condition: (parent: Node | undefined, node: Node) => parent is T, message?: string | (() => string)): T

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

getParentIfOrThrow(condition: (parent: Node | undefined, node: Node) => boolean, message?: string | (() => string)): Node

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

getParentOrThrow(message?: string | (() => string)): Node<ts.Node>

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

getParentSyntaxList(): SyntaxList | undefined

Gets the parent if it's a syntax list.

getParentSyntaxListOrThrow(message?: string | (() => string)): SyntaxList

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

getParentWhile<T extends Node>(condition: (parent: Node, child: Node) => parent is T): 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.

getParentWhile(condition: (parent: Node, child: Node) => boolean): Node | 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.

getParentWhileKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

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

getParentWhileKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

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.

getParentWhileOrThrow<T extends Node>(condition: (parent: Node, node: Node) => parent is T, message?: string | (() => string)): T

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

getParentWhileOrThrow(condition: (parent: Node, node: Node) => boolean, message?: string | (() => string)): Node

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

getPos(): number

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

getPreviousSibling<T extends Node>(condition?: (node: Node) => node is T): T | undefined

Gets the previous sibling.

getPreviousSibling(condition?: (node: Node) => boolean): Node | undefined

Gets the previous sibling.

getPreviousSiblingIfKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined

Gets the previous sibling if it matches the specified kind.

getPreviousSiblingIfKindOrThrow<TKind extends SyntaxKind>(kind: TKind, message?: string | (() => string)): KindToNodeMappings[TKind]

Gets the previous sibiling if it matches the specified kind, or throws.

getPreviousSiblingOrThrow<T extends Node>(condition?: (node: Node) => node is T, message?: string | (() => string)): T

Gets the previous sibling or throws.

getPreviousSiblingOrThrow(condition?: (node: Node) => boolean, message?: string | (() => string)): Node

Gets the previous sibling or throws.

Gets the previous siblings.

Note: Closest sibling is the zero index.

Gets the project.

getSourceFile(): SourceFile

Gets the source file.

getStart(includeJsDocComments?: boolean): number

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

getStartLineNumber(includeJsDocComments?: boolean): number

Gets the line number at the start of the node.

getStartLinePos(includeJsDocComments?: boolean): number

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

getSymbol(): Symbol | undefined

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

getSymbolOrThrow(message?: string | (() => string)): Symbol

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

getSymbolsInScope(meaning: SymbolFlags): 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.

getText(includeJsDocComments?: boolean): string

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

getText(options: { trimLeadingIndentation?: boolean; includeJsDocComments?: boolean; }): string

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

getTrailingCommentRanges(): CommentRange[]

Gets the trailing comment ranges of the current node.

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

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

getType(): Type

Gets the type of the node.

getWidth(includeJsDocComments?: boolean): number

Gets the text length of the node without trivia.

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

isInStringAtPos(pos: number): boolean

Gets if the specified position is within a string.

isInSyntaxList(): boolean

Gets if this node is in a syntax list.

isKind<TKind extends SyntaxKind>(kind: TKind): this is KindToNodeMappings[TKind]

Returns if the node is the specified kind.

This is a type guard.

prependWhitespace(textOrWriterFunction: string | WriterFunction): void

Prepends the specified whitespace to current node.

print(options?: PrintNodeOptions): string

Prints the node using the compiler's printer.

replaceWithText(textOrWriterFunction: string | WriterFunction): Node

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.

transform(visitNode: (traversal: TransformTraversalControl) => ts.Node): Node

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.

wasForgotten(): boolean

Gets if the compiler node was forgotten.

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

Static Properties

readonly
isAnyKeyword: (node: Node | undefined) => node is Expression

Gets if the node is an AnyKeyword.

readonly
isArrayBindingPattern: (node: Node | undefined) => node is ArrayBindingPattern

Gets if the node is an ArrayBindingPattern.

readonly
isArrayLiteralExpression: (node: Node | undefined) => node is ArrayLiteralExpression

Gets if the node is an ArrayLiteralExpression.

readonly
isArrowFunction: (node: Node | undefined) => node is ArrowFunction

Gets if the node is an ArrowFunction.

readonly
isAsExpression: (node: Node | undefined) => node is AsExpression

Gets if the node is an AsExpression.

readonly
isAssertClause: (node: Node | undefined) => node is AssertClause

Gets if the node is an AssertClause.

readonly
isAssertEntry: (node: Node | undefined) => node is AssertEntry

Gets if the node is an AssertEntry.

readonly
isAwaitExpression: (node: Node | undefined) => node is AwaitExpression

Gets if the node is an AwaitExpression.

readonly
isBigIntLiteral: (node: Node | undefined) => node is BigIntLiteral

Gets if the node is a BigIntLiteral.

readonly
isBinaryExpression: (node: Node | undefined) => node is BinaryExpression

Gets if the node is a BinaryExpression.

readonly
isBindingElement: (node: Node | undefined) => node is BindingElement

Gets if the node is a BindingElement.

readonly
isBlock: (node: Node | undefined) => node is Block

Gets if the node is a Block.

readonly
isBooleanKeyword: (node: Node | undefined) => node is Expression

Gets if the node is a BooleanKeyword.

readonly
isBreakStatement: (node: Node | undefined) => node is BreakStatement

Gets if the node is a BreakStatement.

readonly
isCallExpression: (node: Node | undefined) => node is CallExpression

Gets if the node is a CallExpression.

readonly
isCaseBlock: (node: Node | undefined) => node is CaseBlock

Gets if the node is a CaseBlock.

readonly
isCaseClause: (node: Node | undefined) => node is CaseClause

Gets if the node is a CaseClause.

readonly
isCatchClause: (node: Node | undefined) => node is CatchClause

Gets if the node is a CatchClause.

readonly
isClassDeclaration: (node: Node | undefined) => node is ClassDeclaration

Gets if the node is a ClassDeclaration.

readonly
isClassExpression: (node: Node | undefined) => node is ClassExpression

Gets if the node is a ClassExpression.

readonly
isClassStaticBlockDeclaration: (node: Node | undefined) => node is ClassStaticBlockDeclaration

Gets if the node is a ClassStaticBlockDeclaration.

readonly
isCommaListExpression: (node: Node | undefined) => node is CommaListExpression

Gets if the node is a CommaListExpression.

readonly
isComputedPropertyName: (node: Node | undefined) => node is ComputedPropertyName

Gets if the node is a ComputedPropertyName.

readonly
isConditionalExpression: (node: Node | undefined) => node is ConditionalExpression

Gets if the node is a ConditionalExpression.

readonly
isContinueStatement: (node: Node | undefined) => node is ContinueStatement

Gets if the node is a ContinueStatement.

readonly
isDebuggerStatement: (node: Node | undefined) => node is DebuggerStatement

Gets if the node is a DebuggerStatement.

readonly
isDecorator: (node: Node | undefined) => node is Decorator

Gets if the node is a Decorator.

readonly
isDefaultClause: (node: Node | undefined) => node is DefaultClause

Gets if the node is a DefaultClause.

readonly
isDeleteExpression: (node: Node | undefined) => node is DeleteExpression

Gets if the node is a DeleteExpression.

readonly
isDoStatement: (node: Node | undefined) => node is DoStatement

Gets if the node is a DoStatement.

readonly
isElementAccessExpression: (node: Node | undefined) => node is ElementAccessExpression

Gets if the node is an ElementAccessExpression.

readonly
isEmptyStatement: (node: Node | undefined) => node is EmptyStatement

Gets if the node is an EmptyStatement.

readonly
isEnumDeclaration: (node: Node | undefined) => node is EnumDeclaration

Gets if the node is an EnumDeclaration.

readonly
isEnumMember: (node: Node | undefined) => node is EnumMember

Gets if the node is an EnumMember.

readonly
isExportAssignment: (node: Node | undefined) => node is ExportAssignment

Gets if the node is an ExportAssignment.

readonly
isExportDeclaration: (node: Node | undefined) => node is ExportDeclaration

Gets if the node is an ExportDeclaration.

readonly
isExportSpecifier: (node: Node | undefined) => node is ExportSpecifier

Gets if the node is an ExportSpecifier.

readonly
isExpressionStatement: (node: Node | undefined) => node is ExpressionStatement

Gets if the node is an ExpressionStatement.

readonly
isExpressionWithTypeArguments: (node: Node | undefined) => node is ExpressionWithTypeArguments

Gets if the node is an ExpressionWithTypeArguments.

readonly
isExternalModuleReference: (node: Node | undefined) => node is ExternalModuleReference

Gets if the node is an ExternalModuleReference.

readonly
isForInStatement: (node: Node | undefined) => node is ForInStatement

Gets if the node is a ForInStatement.

readonly
isForOfStatement: (node: Node | undefined) => node is ForOfStatement

Gets if the node is a ForOfStatement.

readonly
isForStatement: (node: Node | undefined) => node is ForStatement

Gets if the node is a ForStatement.

readonly
isFunctionDeclaration: (node: Node | undefined) => node is FunctionDeclaration

Gets if the node is a FunctionDeclaration.

readonly
isFunctionExpression: (node: Node | undefined) => node is FunctionExpression

Gets if the node is a FunctionExpression.

readonly
isHeritageClause: (node: Node | undefined) => node is HeritageClause

Gets if the node is a HeritageClause.

readonly
isIdentifier: (node: Node | undefined) => node is Identifier

Gets if the node is a Identifier.

readonly
isIfStatement: (node: Node | undefined) => node is IfStatement

Gets if the node is a IfStatement.

readonly
isImportClause: (node: Node | undefined) => node is ImportClause

Gets if the node is a ImportClause.

readonly
isImportDeclaration: (node: Node | undefined) => node is ImportDeclaration

Gets if the node is a ImportDeclaration.

readonly
isImportEqualsDeclaration: (node: Node | undefined) => node is ImportEqualsDeclaration

Gets if the node is a ImportEqualsDeclaration.

readonly
isImportSpecifier: (node: Node | undefined) => node is ImportSpecifier

Gets if the node is a ImportSpecifier.

readonly
isImportTypeAssertionContainer: (node: Node | undefined) => node is ImportTypeAssertionContainer

Gets if the node is a ImportTypeAssertionContainer.

readonly
isInferKeyword: (node: Node | undefined) => node is Node<ts.Token<SyntaxKind.InferKeyword>>

Gets if the node is a InferKeyword.

readonly
isInterfaceDeclaration: (node: Node | undefined) => node is InterfaceDeclaration

Gets if the node is a InterfaceDeclaration.

readonly
isJSDoc: (node: Node | undefined) => node is JSDoc

Gets if the node is a JSDoc.

readonly
isJSDocAllType: (node: Node | undefined) => node is JSDocAllType

Gets if the node is a JSDocAllType.

readonly
isJSDocAugmentsTag: (node: Node | undefined) => node is JSDocAugmentsTag

Gets if the node is a JSDocAugmentsTag.

readonly
isJSDocAuthorTag: (node: Node | undefined) => node is JSDocAuthorTag

Gets if the node is a JSDocAuthorTag.

readonly
isJSDocCallbackTag: (node: Node | undefined) => node is JSDocCallbackTag

Gets if the node is a JSDocCallbackTag.

readonly
isJSDocClassTag: (node: Node | undefined) => node is JSDocClassTag

Gets if the node is a JSDocClassTag.

readonly
isJSDocDeprecatedTag: (node: Node | undefined) => node is JSDocDeprecatedTag

Gets if the node is a JSDocDeprecatedTag.

readonly
isJSDocEnumTag: (node: Node | undefined) => node is JSDocEnumTag

Gets if the node is a JSDocEnumTag.

readonly
isJSDocFunctionType: (node: Node | undefined) => node is JSDocFunctionType

Gets if the node is a JSDocFunctionType.

readonly
isJSDocImplementsTag: (node: Node | undefined) => node is JSDocImplementsTag

Gets if the node is a JSDocImplementsTag.

readonly
isJSDocLinkCode: (node: Node | undefined) => node is JSDocLinkCode

Gets if the node is a JSDocLinkCode.

readonly
isJSDocLinkPlain: (node: Node | undefined) => node is JSDocLinkPlain

Gets if the node is a JSDocLinkPlain.

readonly
isJSDocMemberName: (node: Node | undefined) => node is JSDocMemberName

Gets if the node is a JSDocMemberName.

readonly
isJSDocNamepathType: (node: Node | undefined) => node is JSDocNamepathType

Gets if the node is a JSDocNamepathType.

readonly
isJSDocNameReference: (node: Node | undefined) => node is JSDocNameReference

Gets if the node is a JSDocNameReference.

readonly
isJSDocNonNullableType: (node: Node | undefined) => node is JSDocNonNullableType

Gets if the node is a JSDocNonNullableType.

readonly
isJSDocNullableType: (node: Node | undefined) => node is JSDocNullableType

Gets if the node is a JSDocNullableType.

readonly
isJSDocOptionalType: (node: Node | undefined) => node is JSDocOptionalType

Gets if the node is a JSDocOptionalType.

readonly
isJSDocOverrideTag: (node: Node | undefined) => node is JSDocOverrideTag