Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dpyparser.py156 if name.asname is not None:
157 self._add_declared(name.asname)
163 if name.asname is not None:
164 self._add_declared(name.asname)
D_ast_util.py822 if node.asname is not None:
823 self.write(' as ' + node.asname)
/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/python/cpython2/Python/
Dcompile.c1872 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
1898 return compiler_nameop(c, asname, Store); in compiler_import_as()
1931 if (alias->asname) { in compiler_import()
1932 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
2023 if (alias->asname) in compiler_from_import()
2024 store_name = alias->asname; in compiler_from_import()
Dsymtable.c1405 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.c2578 compiler_import_as(struct compiler *c, identifier name, identifier asname) in compiler_import_as() argument
2609 return compiler_nameop(c, asname, Store); in compiler_import_as()
2638 if (alias->asname) { in compiler_import()
2639 r = compiler_import_as(c, alias->name, alias->asname); in compiler_import()
2724 if (alias->asname) in compiler_from_import()
2725 store_name = alias->asname; in compiler_from_import()
DPython-ast.c492 _Py_IDENTIFIER(asname);
2546 alias(identifier name, identifier asname, PyArena *arena) in alias() argument
2558 p->asname = asname; in alias()
3923 value = ast2obj_identifier(o->asname); in ast2obj_alias()
7777 identifier asname; in obj2ast_alias() local
7794 res = obj2ast_identifier(tmp, &asname, arena); in obj2ast_alias()
7798 asname = NULL; in obj2ast_alias()
7800 *out = alias(name, asname, arena); in obj2ast_alias()
Dsymtable.c1643 PyObject *name = (a->asname == NULL) ? a->name : a->asname; in symtable_visit_alias()
Dast.c3200 assert(!a->asname); in alias_for_import_name()
3201 a->asname = NEW_IDENTIFIER(asname_node); in alias_for_import_name()
3202 if (!a->asname) in alias_for_import_name()
3204 if (forbidden_name(c, a->asname, asname_node, 0)) in alias_for_import_name()