Skip to main content
Module

x/ts_morph/ts_morph.js>Node

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class Node
import { Node } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.js";

Constructors

new
Node(
context,
node,
sourceFile,
)

Properties

readonly
_sourceFile
readonly
compilerNode

Methods

_getAncestorsIterator(includeSyntaxLists)
_getCommentsAtPos(pos, getComments)
appendWhitespace(textOrWriterFunction)
asKind(kind)
containsRange(pos, end)
forEachChild(cbNode, cbNodeArray)
forEachDescendant(cbNode, cbNodeArray)
formatText(settings?)
getAncestors(includeSyntaxLists?)
getFirstAncestor(condition)
getFirstChild(condition)
getLastChild(condition)
getLocal(name)
getNextSibling(condition)
getNodeProperty(propertyName)
getParentIf(condition)
getParentWhile(condition)
getStart(includeJsDocComments)
getStartLineNumber(includeJsDocComments)
getStartLinePos(includeJsDocComments)
getText(includeJsDocCommentOrOptions)
getWidth(includeJsDocComments)
isKind(kind)
prependWhitespace(textOrWriterFunction)
print(options?)
replaceWithText(textOrWriterFunction, writer)
transform(visitNode)

Static Methods

hasBody(node)
hasName(node)
is(kind)
isBodied(node)
isJSDoc(node)
isModuled(node)
isNamed(node)
isNode(value)
isScoped(node)
isTyped(node)