Files
jedi/functions.py
2012-03-07 12:32:58 +01:00

24 lines
552 B
Python

import parsing
def complete(source, row, colum, file_callback=None):
"""
An auto completer for python files.
:param source: The source code of the current file
:type source: string
:param row: The row to complete in.
:type row: int
:param col: The column to complete in.
:type col: int
:return: list
:rtype: list
"""
row = 38
p = parsing.PyFuzzyParser(source, row)
print
print
print p.user_scope
print p.user_scope.get_simple_for_line(row)
return p.user_scope.get_set_vars()