Home
last modified time | relevance | path

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

/third_party/python/Include/internal/
H A Dpycore_ast.h29 typedef enum _unaryop { Invert=1, Not=2, UAdd=3, USub=4 } unaryop_ty; enumerator
/third_party/python/Python/
H A Dast_unparse.c188 case USub: op = "-"; pr = PR_FACTOR; break; in append_ast_unaryop()
H A Dast_opt.c110 [USub] = PyNumber_Negative, in fold_unaryop()
H A Dast.c417 if (exp->v.UnaryOp.op != USub) { in ensure_literal_negative()
H A DPython-ast.c1604 "unaryop = Invert | Not | UAdd | USub"); in init_types()
1627 state->USub_type = make_type(state, "USub", state->unaryop_type, NULL, 0, in init_types()
1628 "USub"); in init_types()
4815 case USub: in ast2obj_unaryop()
10114 *out = USub; in obj2ast_unaryop()
12186 if (PyModule_AddObjectRef(m, "USub", state->USub_type) < 0) { in astmodule_exec()
H A Dcompile.c4174 case USub: in unaryop()
/third_party/python/Lib/
H A Dast.py77 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)):
1353 unop = {"Invert": "~", "Not": "not", "UAdd": "+", "USub": "-"}
/third_party/python/Parser/
H A Dparser.c8719 _res = _PyAST_UnaryOp ( USub , number , EXTRA ); in signed_number_rule()
8803 _res = _PyAST_UnaryOp ( USub , real , EXTRA ); in signed_real_number_rule()
13445 _res = _PyAST_UnaryOp ( USub , a , EXTRA ); in factor_rule()
[all...]

Completed in 87 milliseconds