Home
last modified time | relevance | path

Searched refs:symtable (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_symtable.py2 Test the API of the symtable module.
4 import symtable namespace
54 top = symtable.symtable(TEST_CODE, "?", "exec")
174 st1 = symtable.symtable('def f():\n x: int\n', 'test', 'exec')
179 st3 = symtable.symtable('def f():\n x = 1\n', 'test', 'exec')
186 st5 = symtable.symtable('globa
[all...]
/third_party/python/Include/internal/
H A Dpycore_symtable.h25 struct symtable { struct
75 struct symtable *ste_table;
85 extern struct symtable* _PySymtable_Build(
89 PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
91 extern void _PySymtable_Free(struct symtable *);
125 extern struct symtable* _Py_SymtableStringObjectFlags(
/third_party/python/Python/
H A Dsymtable.c59 ste_new(struct symtable *st, identifier name, _Py_block_ty block, in ste_new()
131 return PyUnicode_FromFormat("<symtable entry %U(%ld), line %d>", in ste_repr()
165 "symtable entry",
204 static int symtable_analyze(struct symtable *st);
205 static int symtable_enter_block(struct symtable *st, identifier name,
209 static int symtable_exit_block(struct symtable *st);
210 static int symtable_visit_stmt(struct symtable *st, stmt_ty s);
211 static int symtable_visit_expr(struct symtable *st, expr_ty s);
212 static int symtable_visit_genexp(struct symtable *st, expr_ty s);
213 static int symtable_visit_listcomp(struct symtable *s
[all...]
H A Dcompile.c8 * 2. Builds a symbol table. See symtable.c.
353 struct symtable *c_st;
577 PyErr_SetString(PyExc_SystemError, "no symtable"); in _PyAST_Compile()
661 /* XXX this should probably be a macro in symtable.h */ in dictbytype()
5210 flagged in symtable.c as a generator, so it returns the generator object
/third_party/python/Lib/
H A Dsymtable.py10 __all__ = ["symtable", "SymbolTable", "Class", "Function", "Symbol"]
12 def symtable(code, filename, compile_type): function
18 top = _symtable.symtable(code, filename, compile_type)
323 mod = symtable(src, os.path.split(sys.argv[0])[1], "exec")
/third_party/python/Modules/
H A Dsymtablemodule.c2 #include "pycore_symtable.h" // struct symtable
12 _symtable.symtable
27 struct symtable *st; in _symtable_symtable_impl()
35 const char *str = _Py_SourceAsString(source, "symtable", "string or bytes", &cf, &source_copy); in _symtable_symtable_impl()
48 "symtable() arg 3 must be 'exec' or 'eval' or 'single'"); in _symtable_symtable_impl()

Completed in 15 milliseconds