Home
last modified time | relevance | path

Searched refs:asname (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython2/Lib/compiler/
Dsymbols.py331 for name, asname in node.names:
334 scope.add_def(asname or name)
337 for name, asname in node.names:
341 scope.add_def(asname or name)
Dfuture.py33 for name, asname in stmt.names:
/external/python/cpython2/Parser/
DPython.asdl114 alias = (identifier name, identifier? asname)
/external/python/cpython2/Demo/parser/
Dunparse.py568 if t.asname:
569 self.write(" as "+t.asname)
/external/python/cpython3/Parser/
DPython.asdl128 alias = (identifier name, identifier? asname)
/external/python/cpython2/Include/
DPython-ast.h371 identifier asname; member
531 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena);
/external/python/cpython3/Tools/parser/
Dunparse.py660 if t.asname:
661 self.write(" as "+t.asname)
/external/python/cpython3/Include/
DPython-ast.h433 identifier asname; member
630 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena);
/external/tensorflow/tensorflow/python/autograph/impl/
Dconversion.py271 names=[gast.alias(name=base.__name__, asname=alias)],
/external/python/cpython2/Python/
Dcompile.c1881 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
1906 return compiler_nameop(c, asname, Store); in compiler_import_as()
1938 if (alias->asname) { in compiler_import()
1939 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
2026 if (alias->asname) in compiler_from_import()
2027 store_name = alias->asname; in compiler_from_import()
Dsymtable.c1411 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
DPython-ast.c2116 alias(identifier name, identifier asname, PyArena *arena) in alias() argument
2128 p->asname = asname; in alias()
3306 value = ast2obj_identifier(o->asname); in ast2obj_alias()
6726 identifier asname; in obj2ast_alias() local
6744 res = obj2ast_identifier(tmp, &asname, arena); in obj2ast_alias()
6749 asname = NULL; in obj2ast_alias()
6751 *out = alias(name, asname, arena); in obj2ast_alias()
Dast.c2472 assert(!a->asname); in alias_for_import_name()
2475 a->asname = NEW_IDENTIFIER(asname_node); in alias_for_import_name()
2476 if (!a->asname) in alias_for_import_name()
/external/python/cpython3/Python/
Dcompile.c2755 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
2785 if (!compiler_nameop(c, asname, Store)) { in compiler_import_as()
2791 return compiler_nameop(c, asname, Store); in compiler_import_as()
2814 if (alias->asname) { in compiler_import()
2815 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
2895 if (alias->asname) in compiler_from_import()
2896 store_name = alias->asname; in compiler_from_import()
DPython-ast.c492 _Py_IDENTIFIER(asname);
2534 alias(identifier name, identifier asname, PyArena *arena) in alias() argument
2546 p->asname = asname; in alias()
3901 value = ast2obj_identifier(o->asname); in ast2obj_alias()
8073 identifier asname; in obj2ast_alias() local
8093 asname = NULL; in obj2ast_alias()
8097 res = obj2ast_identifier(tmp, &asname, arena); in obj2ast_alias()
8101 *out = alias(name, asname, arena); in obj2ast_alias()
Dsymtable.c1630 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
Dast.c3194 assert(!a->asname); in alias_for_import_name()
3195 a->asname = NEW_IDENTIFIER(asname_node); in alias_for_import_name()
3196 if (!a->asname) in alias_for_import_name()
3198 if (forbidden_name(c, a->asname, asname_node, 0)) in alias_for_import_name()