Searched refs:NameConstant (Results 1 – 13 of 13) sorted by relevance
/external/python/cpython3/Lib/ |
D | ast.py | 80 elif isinstance(node, NameConstant):
|
D | inspect.py | 2017 return ast.NameConstant(value)
|
/external/python/cpython3/Parser/ |
D | Python.asdl | 83 | NameConstant(singleton value)
|
/external/tensorflow/tensorflow/tools/compatibility/ |
D | tf_upgrade_v2.py | 1711 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/ |
D | anf.py | 99 gast.NameConstant, gast.Ellipsis,
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 324 } NameConstant; member 581 #define NameConstant(a0, a1, a2, a3) _Py_NameConstant(a0, a1, a2, a3) macro
|
/external/python/cpython3/Python/ |
D | ast_unparse.c | 861 return append_repr(writer, e->v.NameConstant.value); in append_ast_expr()
|
D | ast_opt.c | 41 return e->v.NameConstant.value; in get_const_value()
|
D | ast.c | 2094 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()
|
D | Python-ast.c | 2186 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()
|
D | compile.c | 1410 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/ |
D | test_ast.py | 996 self.expr(ast.NameConstant(4), "singleton must be True, False, or None")
|
/external/python/cpython3/Misc/ |
D | HISTORY | 4580 - Issue #16619: Create NameConstant AST class to represent None, True, and False
|