Home
last modified time | relevance | path

Searched refs:USub (Results 1 – 12 of 12) sorted by relevance

/third_party/mindspore/mindspore/_extends/parse/
Dresources.py54 ast.USub: (trope_ns, 'neg'),
/third_party/python/Parser/
DPython.asdl102 unaryop = Invert | Not | UAdd | USub
Dparser.c6687 _res = _PyAST_UnaryOp ( USub , number , EXTRA ); in signed_number_rule()
6771 _res = _PyAST_UnaryOp ( USub , real , EXTRA ); in signed_real_number_rule()
14087 _res = _PyAST_UnaryOp ( USub , a , EXTRA ); in factor_rule()
/third_party/python/Grammar/
Dpython.gram287 | '-' number=NUMBER { _PyAST_UnaryOp(USub, number, EXTRA) }
291 | '-' real=real_number { _PyAST_UnaryOp(USub, real, EXTRA) }
660 | '-' a=factor { _PyAST_UnaryOp(USub, a, EXTRA) }
/third_party/python/Include/internal/
Dpycore_ast.h29 typedef enum _unaryop { Invert=1, Not=2, UAdd=3, USub=4 } unaryop_ty; enumerator
/third_party/python/Python/
Dast_unparse.c188 case USub: op = "-"; pr = PR_FACTOR; break; in append_ast_unaryop()
Dast_opt.c95 [USub] = PyNumber_Negative, in fold_unaryop()
Dast.c390 if (exp->v.UnaryOp.op != USub) { in ensure_literal_negative()
DPython-ast.c4732 case USub: in ast2obj_unaryop()
9807 *out = USub; in obj2ast_unaryop()
Dcompile.c3595 case USub: in unaryop()
/third_party/python/Doc/library/
Dast.rst107 node.op = ast.USub()
117 node = ast.UnaryOp(ast.USub(), ast.Constant(5, lineno=0, col_offset=0),
364 op=USub(),
376 USub
/third_party/python/Lib/
Dast.py75 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)):