massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / symtable.pyi
1 import sys\r
2 from typing import List, Sequence, Tuple, Text\r
3 \r
4 def symtable(code: Text, filename: Text, compile_type: Text) -> SymbolTable: ...\r
5 \r
6 class SymbolTable(object):\r
7     def get_type(self) -> str: ...\r
8     def get_id(self) -> int: ...\r
9     def get_name(self) -> str: ...\r
10     def get_lineno(self) -> int: ...\r
11     def is_optimized(self) -> bool: ...\r
12     def is_nested(self) -> bool: ...\r
13     def has_children(self) -> bool: ...\r
14     def has_exec(self) -> bool: ...\r
15     if sys.version_info < (3, 0):\r
16         def has_import_star(self) -> bool: ...\r
17     def get_identifiers(self) -> Sequence[str]: ...\r
18     def lookup(self, name: str) -> Symbol: ...\r
19     def get_symbols(self) -> List[Symbol]: ...\r
20     def get_children(self) -> List[SymbolTable]: ...\r
21 \r
22 class Function(SymbolTable):\r
23     def get_parameters(self) -> Tuple[str, ...]: ...\r
24     def get_locals(self) -> Tuple[str, ...]: ...\r
25     def get_globals(self) -> Tuple[str, ...]: ...\r
26     def get_frees(self) -> Tuple[str, ...]: ...\r
27 \r
28 class Class(SymbolTable):\r
29     def get_methods(self) -> Tuple[str, ...]: ...\r
30 \r
31 class Symbol(object):\r
32     def get_name(self) -> str: ...\r
33     def is_referenced(self) -> bool: ...\r
34     def is_parameter(self) -> bool: ...\r
35     def is_global(self) -> bool: ...\r
36     def is_declared_global(self) -> bool: ...\r
37     def is_local(self) -> bool: ...\r
38     if sys.version_info >= (3, 6):\r
39         def is_annotated(self) -> bool: ...\r
40     def is_free(self) -> bool: ...\r
41     def is_imported(self) -> bool: ...\r
42     def is_assigned(self) -> bool: ...\r
43     def is_namespace(self) -> bool: ...\r
44     def get_namespaces(self) -> Sequence[SymbolTable]: ...\r
45     def get_namespace(self) -> SymbolTable: ...\r