Beispiel #1
0
    def __init__(self):
        CSVProcessor.__init__(self)

        self.rootNode = PythonASTTreeNode(None)
        self.parentStack = []
        self.previousNode = self.rootNode

        self.defaultHandler = self.handleNode
Beispiel #2
0
 def __init__(self):
     CSVProcessor.__init__(self)
     
     self.rootNode = PythonASTTreeNode(None)
     self.parentStack = []
     self.previousNode = self.rootNode
     
     self.defaultHandler = self.handleNode
Beispiel #3
0
 def __init__(self, projectRoot):
     CSVProcessor.__init__(self)
     
     self.projectRoot = projectRoot
     if self.projectRoot[-1] != '/': self.projectRoot += '/'
     
     self.functionIndex = NameToListMap()
     self.callIndex = NameToListMap()
     self.declarationIndex = NameToListMap()
     self.conditionIndex = NameToListMap()
             
     self.handlers[FUNCTION_NAME] = self.functionHandler
     self.handlers[CALLEE] = self.callHandler
Beispiel #4
0
 def __init__(self):
     CSVProcessor.__init__(self)
     self.currentCFG = None
     self.resetStacks() 
     self.defaultHandler = self.handleNode
     self.functionLevel = -1