示例#1
0
 def __init__(self):
     self.analyzer = analyzer.Analyzer()
     self.current_module = None
     self.patIndent = re.compile('^\s+')
     self._valid_op = (')', '}', ']')
     self._invalid_op = ('(', '{', '[')
     self.keywords = settings.SYNTAX['python']['keywords']
示例#2
0
 def __init__(self):
     Thread.__init__(self)
     self.analyzer = analyzer.Analyzer()
     self.modules = {}
     self.projects_modules = {}
     self._relations = {}
     self.reference_counter = 0
     self.keep_alive = True
     self.lock = Lock()
     self.queue_receive = Queue()
     self.queue_send = Queue()
     self.daemon = _DaemonProcess(self.queue_send, self.queue_receive)
     self.daemon.start()
 def __init__(self):
     self.analyzer = analyzer.Analyzer()
     self.cdaemon = completion_daemon.CompletionDaemon()
     # Set modules reference to model
     model.MODULES = self.cdaemon.modules
     self.module_id = None
     self.patIndent = re.compile('^\s+')
     self.patClass = re.compile("class (\w+?)\(")
     self.patFunction = re.compile("(\w+?)\(")
     self.patWords = re.compile('\W+')
     self._valid_op = (')', '}', ']')
     self._invalid_op = ('(', '{', '[')
     self._invalid_words = ('if', 'elif', 'for', 'while', 'in', 'return',
                            'and', 'or', 'del', 'except', 'from', 'import',
                            'is', 'print', 'super', 'yield')
     self.keywords = settings.SYNTAX['python']['keywords']
 def setUp(self):
     self.analyzer = analyzer.Analyzer()
 def setUp(self):
     code_completion.settings.SYNTAX = {'python': {'keywords': []}}
     self.cc = code_completion.CodeCompletion()
     self.analyzer = analyzer.Analyzer()