Searched refs:USub (Results 1 – 12 of 12) sorted by relevance
/third_party/mindspore/mindspore/_extends/parse/ |
D | resources.py | 54 ast.USub: (trope_ns, 'neg'),
|
/third_party/python/Parser/ |
D | Python.asdl | 102 unaryop = Invert | Not | UAdd | USub
|
D | parser.c | 6687 _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/ |
D | python.gram | 287 | '-' 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/ |
D | pycore_ast.h | 29 typedef enum _unaryop { Invert=1, Not=2, UAdd=3, USub=4 } unaryop_ty; enumerator
|
/third_party/python/Python/ |
D | ast_unparse.c | 188 case USub: op = "-"; pr = PR_FACTOR; break; in append_ast_unaryop()
|
D | ast_opt.c | 95 [USub] = PyNumber_Negative, in fold_unaryop()
|
D | ast.c | 390 if (exp->v.UnaryOp.op != USub) { in ensure_literal_negative()
|
D | Python-ast.c | 4732 case USub: in ast2obj_unaryop() 9807 *out = USub; in obj2ast_unaryop()
|
D | compile.c | 3595 case USub: in unaryop()
|
/third_party/python/Doc/library/ |
D | ast.rst | 107 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/ |
D | ast.py | 75 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)):
|