Home
last modified time | relevance | path

Searched refs:asname (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Include/internal/
H A Dpycore_ast_state.h163 PyObject *asname; member
H A Dpycore_ast.h551 identifier asname; member
815 alias_ty _PyAST_alias(identifier name, identifier asname, int lineno, int
/third_party/python/Lib/
H A Dpyclbr.py261 self.tree[name.asname or name.name] = module[name.name]
H A Dast.py1609 if node.asname:
1610 self.write(" as " + node.asname)
/third_party/python/Lib/test/
H A Dtest_ast.py395 self.assertIsNone(alias.asname)
404 self.assertIsNone(alias.asname)
413 self.assertEqual(alias.asname, "z")
422 self.assertEqual(alias.asname, "foo")
/third_party/python/Python/
H A DPython-ast.c176 Py_CLEAR(state->asname); in _PyAST_Fini()
285 if ((state->asname = PyUnicode_InternFromString("asname")) == NULL) return 0; in init_identifiers()
703 "asname",
1760 "alias(identifier name, identifier? asname)"); in init_types()
1764 if (PyObject_SetAttr(state->alias_type, state->asname, Py_None) == -1) in init_types()
3370 _PyAST_alias(identifier name, identifier asname, int lineno, int col_offset, in _PyAST_alias() argument
3383 p->asname = asname; in _PyAST_alias()
5164 value = ast2obj_identifier(state, o->asname); in ast2obj_alias()
11003 identifier asname; obj2ast_alias() local
[all...]
H A Dcompile.c3875 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
3905 if (!compiler_nameop(c, asname, Store)) { in compiler_import_as()
3911 return compiler_nameop(c, asname, Store); in compiler_import_as()
3935 if (alias->asname) { in compiler_import()
3936 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
4006 if (alias->asname) in compiler_from_import()
4007 store_name = alias->asname; in compiler_from_import()
H A Dsymtable.c1946 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()

Completed in 40 milliseconds