lively.ast
v0.7.47
Published
Parsing JS code into ASTs and tools to query and transform these trees.
Downloads
108
Readme
lively.ast
Parsing JS code into ASTs and tools to query and transform these trees.
API
main interface
ast.printAst
ast.compareAst
ast.pathToNode
ast.stringify
ast.parse
ast.parseFunction
ast.fuzzyParse
ast.nodesAt
ast.withMozillaAstDo
Visitors
ast.MozillaAST.BaseVisitor
ast.MozillaAST.PrinterVisitor
ast.MozillaAST.ComparisonVisitor
ast.MozillaAST.ScopeVisitor
query ast nodes
ast.query.knownGlobals
ast.query.scopes
ast.query.nodesAtIndex
ast.query.scopesAtIndex
ast.query.scopeAtIndex
ast.query.scopesAtPos
ast.query.nodesInScopeOf
ast.query.topLevelDeclsAndRefs
ast.query.findGlobalVarRefs
ast.query.findNodesIncludingLines
ast.query.findReferencesAndDeclsInScope
ast.query.findDeclarationClosestToIndex
transform asts
ast.transform.replace
ast.transform.replaceTopLevelVarDeclAndUsageForCapturing
ast.transform.oneDeclaratorPerVarDecl
ast.transform.oneDeclaratorForVarsInDestructoring
ast.transform.returnLastStatement
ast.transform.wrapInFunction
comment parsing
ast.comments.extractComments
code categorizer, scan code for known constructs
ast.codeCategorizer.findDecls