1
0
forked from VimPlug/jedi
This commit is contained in:
David Halter
2012-09-15 16:04:17 +02:00
parent 9e7e5293d8
commit ea7692e66b

31
api.py
View File

@@ -133,7 +133,18 @@ class CallDef(object):
class Script(object): class Script(object):
""" TODO doc """ """
A Script is the base for a completion, goto or whatever call.
:param source: The source code of the current file
:type source: string
:param line: The line to complete in.
:type line: int
:param col: The column to complete in.
:type col: int
:param source_path: The path in the os, the current module is in.
:type source_path: int
"""
def __init__(self, source, line, column, source_path): def __init__(self, source, line, column, source_path):
self.pos = line, column self.pos = line, column
self.module = modules.ModuleWithCursor(source_path, source=source, self.module = modules.ModuleWithCursor(source_path, source=source,
@@ -145,15 +156,6 @@ class Script(object):
""" """
An auto completer for python files. An auto completer for python files.
:param source: The source code of the current file
:type source: string
:param line: The line to complete in.
:type line: int
:param col: The column to complete in.
:type col: int
:param source_path: The path in the os, the current module is in.
:type source_path: str
:return: list of Completion objects. :return: list of Completion objects.
:rtype: list :rtype: list
""" """
@@ -237,15 +239,6 @@ class Script(object):
not a goto function! This follows complicated paths and returns the not a goto function! This follows complicated paths and returns the
end, not the first definition. end, not the first definition.
:param source: The source code of the current file
:type source: string
:param line: The line to complete in.
:type line: int
:param col: The column to complete in.
:type col: int
:param source_path: The path in the os, the current module is in.
:type source_path: int
:return: list of Definition objects, which are basically scopes. :return: list of Definition objects, which are basically scopes.
:rtype: list :rtype: list
""" """