Package nltk :: Package test :: Module coverage :: Class StatementFindingAstVisitor
[hide private]
[frames] | no frames]

Class StatementFindingAstVisitor

source code

compiler.visitor.ASTVisitor --+
                              |
                             StatementFindingAstVisitor

A visitor for a parsed Abstract Syntax Tree which finds executable
statements.

Instance Methods [hide private]
 
__init__(self, statements, excluded, suite_spots, definfo) source code
 
doRecursive(self, node) source code
 
visitModule(self, node) source code
 
visitStmt(self, node) source code
 
doCode(self, node) source code
 
visitClass(self, node) source code
 
visitFunction(self, node) source code
 
getFirstLine(self, node) source code
 
getLastLine(self, node) source code
 
doStatement(self, node) source code
 
visitDecorators(self, node) source code
 
visitSubscript(self, node) source code
 
visitRaise(self, node) source code
 
visitPrintnl(self, node) source code
 
visitPrint(self, node) source code
 
visitAssTuple(self, node) source code
 
visitAssign(self, node) source code
 
visitAssert(self, node) source code
 
visitPass(self, node) source code
 
visitDiscard(self, node) source code
 
recordNodeLine(self, node) source code
 
recordLine(self, lineno) source code
 
default(self, node) source code
 
recordAndDispatch(self, node) source code
 
doSuite(self, intro, body, exclude=0) source code
 
doPlainWordSuite(self, prevsuite, suite) source code
 
doElse(self, prevsuite, node) source code
 
visitFor(self, node) source code
 
visitWhile(self, node) source code
 
visitIf(self, node) source code
 
visitTryExcept(self, node) source code
 
visitTryFinally(self, node) source code
 
visitWith(self, node) source code
 
visitGlobal(self, node) source code

Inherited from compiler.visitor.ASTVisitor: dispatch, preorder

Class Variables [hide private]

Inherited from compiler.visitor.ASTVisitor: VERBOSE

Method Details [hide private]

__init__(self, statements, excluded, suite_spots, definfo)
(Constructor)

source code 
Overrides: compiler.visitor.ASTVisitor.__init__

default(self, node)

source code 
Overrides: compiler.visitor.ASTVisitor.default