import { Node } from "https://dotland.deno.dev/x/ts_morph@21.0.0/ts_morph.js";
Methods
_getAncestorsIterator(includeSyntaxLists)
_getCompilerChildAtIndex(index)
_getCompilerFirstChild(condition)
_getCompilerLastChild(condition)
_getCompilerNextSibling(condition)
_getCompilerPreviousSibling(condition)
_getNodeFromCompilerNode(compilerNode)
_getNodeFromCompilerNodeIfExists(compilerNode)
_getTextWithQueuedChildIndentation(textOrWriterFunc)
_replaceCompilerNodeFromFactory(compilerNode)
appendWhitespace(textOrWriterFunction)
asKind(kind)
asKindOrThrow(kind, message)
containsRange(pos, end)
forEachChild(cbNode, cbNodeArray)
forEachDescendant(cbNode, cbNodeArray)
forget()
formatText(settings?)
getAncestors(includeSyntaxLists?)
getChildAtIndex(index)
getChildAtIndexIfKind(index, kind)
getChildAtIndexIfKindOrThrow()
index,
kind,
message,
getChildAtPos(pos)
getChildIndentationText(offset?)
getChildrenOfKind(kind)
getChildSyntaxListOrThrow(message)
getDescendantAtPos(pos)
getDescendantAtStartWithWidth(start, width)
getDescendantsOfKind(kind)
getEnd()
getFirstAncestor(condition)
getFirstAncestorByKind(kind)
getFirstAncestorByKindOrThrow(kind, message)
getFirstAncestorOrThrow(condition, message)
getFirstChild(condition)
getFirstChildByKind(kind)
getFirstChildByKindOrThrow(kind, message)
getFirstChildIfKind(kind)
getFirstChildIfKindOrThrow(kind, message)
getFirstChildOrThrow(condition, message)
getFirstDescendant(condition)
getFirstDescendantByKind(kind)
getFirstDescendantByKindOrThrow(kind, message)
getFirstDescendantOrThrow(condition, message)
getFlags()
getIndentationText(offset?)
getKind()
getLastChild(condition)
getLastChildByKind(kind)
getLastChildByKindOrThrow(kind, message)
getLastChildIfKind(kind)
getLastChildIfKindOrThrow(kind, message)
getLastChildOrThrow(condition, message)
getLocal(name)
getLocalOrThrow(name, message)
getNextSibling(condition)
getNextSiblingIfKind(kind)
getNextSiblingIfKindOrThrow(kind, message)
getNextSiblingOrThrow(condition, message)
getNodeProperty(propertyName)
getParentIf(condition)
getParentIfKind(kind)
getParentIfKindOrThrow(kind, message)
getParentIfOrThrow(condition, message)
getParentOrThrow(message)
getParentSyntaxListOrThrow(message)
getParentWhile(condition)
getParentWhileKind(kind)
getParentWhileKindOrThrow(kind, message)
getParentWhileOrThrow(condition, message)
getPos()
getPreviousSibling(condition)
getPreviousSiblingIfKind(kind)
getPreviousSiblingIfKindOrThrow(kind, message)
getPreviousSiblingOrThrow(condition, message)
getStart(includeJsDocComments)
getStartLineNumber(includeJsDocComments)
getStartLinePos(includeJsDocComments)
getSymbolOrThrow(message)
getSymbolsInScope(meaning)
getText(includeJsDocCommentOrOptions)
getType()
getWidth(includeJsDocComments)
isInStringAtPos(pos)
isKind(kind)
prependWhitespace(textOrWriterFunction)
print(options?)
replaceWithText(textOrWriterFunction, writer)
transform(visitNode)
Static Methods
_hasStructure(node)
hasBody(node)
hasExpression(node)
hasName(node)
hasStructure(node)
is(kind)
isAbstractable(node)
isAmbientable(node)
isArgumented(node)
isArrayTypeNode(node)
isAsyncable(node)
isAwaitable(node)
isBindingNamed(node)
isBodied(node)
isBodyable(node)
isChildOrderable(node)
isCommentClassElement(node)
isCommentEnumMember(node)
isCommentNode(node)
isCommentStatement(node)
isCommentTypeElement(node)
isConditionalTypeNode(node)
isConstructorDeclaration(node)
isConstructorTypeNode(node)
isDecoratable(node)
isDotDotDotTokenable(node)
isExclamationTokenable(node)
isExportable(node)
isExportGetable(node)
isExpression(node)
isExpressionable(node)
isExpressioned(node)
isExtendsClauseable(node)
isFalseLiteral(node)
isFunctionTypeNode(node)
isGeneratorable(node)
isGetAccessorDeclaration(node)
isHeritageClauseable(node)
isImplementsClauseable(node)
isImportAttribute(node)
isImportExpression(node)
isImportTypeNode(node)
isIndexedAccessTypeNode(node)
isInferTypeNode(node)
isIntersectionTypeNode(node)
isIterationStatement(node)
isJSDocable(node)
isJSDocPropertyLikeTag(node)
isJSDocTag(node)
isJSDocType(node)
isJSDocUnknownTag(node)
isJsxAttributed(node)
isJsxTagNamed(node)
isLeftHandSideExpression(node)
isLiteralExpression(node)
isLiteralLike(node)
isLiteralTypeNode(node)
isMappedTypeNode(node)
isMemberExpression(node)
isModifierable(node)
isModuleChildable(node)
isModuled(node)
isModuleNamed(node)
isNameable(node)
isNamed(node)
isNode(value)
isNodeWithTypeArguments(node)
isNullLiteral(node)
isOverloadable(node)
isOverrideable(node)
isParameterDeclaration(node)
isParametered(node)
isParenthesizedTypeNode(node)
isPrimaryExpression(node)
isPropertyNamed(node)
isQuestionDotTokenable(node)
isQuestionTokenable(node)
isReadonlyable(node)
isReferenceFindable(node)
isRenameable(node)
isRestTypeNode(node)
isReturnTyped(node)
isScopeable(node)
isScoped(node)
isSetAccessorDeclaration(node)
isSignaturedDeclaration(node)
isStatement(node)
isStatemented(node)
isStaticable(node)
isSuperExpression(node)
isTextInsertable(node)
isThisExpression(node)
isThisTypeNode(node)
isTrueLiteral(node)
isTupleTypeNode(node)
isTypeArgumented(node)
isTypeAssertion(node)
isTyped(node)
isTypeElement(node)
isTypeElementMembered(node)
isTypeLiteral(node)
isTypeNode(node)
isTypeOperatorTypeNode(node)
isTypeParametered(node)
isTypePredicate(node)
isTypeQuery(node)
isTypeReference(node)
isUnaryExpression(node)
isUnaryExpressioned(node)
isUnionTypeNode(node)
isUnwrappable(node)
isUpdateExpression(node)