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