core3-utils

npm version @wixc3/typescript on Github

Home > @wixc3/typescript

typescript package

TypeScript utilities

Functions

Function Description
[compileCode(code, fakePath)](/core3-utils/typescript.compilecode.html) Compiles a code string to typescript AST
[findAllNodes(source, predicate)](/core3-utils/typescript.findallnodes.html) Finds all nodes satisfying the predicate
[findNode(source, predicate)](/core3-utils/typescript.findnode.html) Finds the first node (via DFS) satisfying the predicate
[findNodeAfterComment(node, comment)](/core3-utils/typescript.findnodeaftercomment.html) Finds all nodes following a comment
[getLeadingComments(node)](/core3-utils/typescript.getleadingcomments.html) A more regorges ts.getLeadingCommentRanges: Finds mid - statement comments as well
[isSame(a, b, ignore, reportDiff)](/core3-utils/typescript.issame.html) Compared 2 code snippet (or ASTs)
[match(code, pattern)](/core3-utils/typescript.match.html) Finds a node matching the pattern. The pattern is a valid TS statement It may include: - //\[ignore\] to skip some of its structure, - //\[return\] to return an inner node instead of the root

Type Aliases

Type Alias Description
[Comment\_2](/core3-utils/typescript.comment_2.html)