Home
last modified time | relevance | path

Searched refs:NameConstant (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Lib/
Dast.py80 elif isinstance(node, NameConstant):
Dinspect.py2017 return ast.NameConstant(value)
/external/python/cpython3/Parser/
DPython.asdl83 | NameConstant(singleton value)
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2.py1711 return isinstance(node, ast.NameConstant) and node.value is True
1718 return isinstance(node, ast.NameConstant) and node.value is False
/external/tensorflow/tensorflow/python/autograph/pyct/common_transformers/
Danf.py99 gast.NameConstant, gast.Ellipsis,
/external/python/cpython3/Include/
DPython-ast.h324 } NameConstant; member
581 #define NameConstant(a0, a1, a2, a3) _Py_NameConstant(a0, a1, a2, a3) macro
/external/python/cpython3/Python/
Dast_unparse.c861 return append_repr(writer, e->v.NameConstant.value); in append_ast_expr()
Dast_opt.c41 return e->v.NameConstant.value; in get_const_value()
Dast.c2094 return NameConstant(Py_None, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
2096 return NameConstant(Py_True, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
2098 return NameConstant(Py_False, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
DPython-ast.c2186 NameConstant(singleton value, int lineno, int col_offset, PyArena *arena) in NameConstant() function
2198 p->v.NameConstant.value = value; in NameConstant()
3350 value = ast2obj_singleton(o->v.NameConstant.value); in ast2obj_expr()
6795 *out = NameConstant(value, lineno, col_offset, arena); in obj2ast_expr()
Dcompile.c1410 return e->v.NameConstant.value; in get_const_value()
4489 ADDOP_O(c, LOAD_CONST, e->v.NameConstant.value, consts); in compiler_visit_expr()
/external/python/cpython3/Lib/test/
Dtest_ast.py996 self.expr(ast.NameConstant(4), "singleton must be True, False, or None")
/external/python/cpython3/Misc/
DHISTORY4580 - Issue #16619: Create NameConstant AST class to represent None, True, and False