Searched refs:MatchClass (Results 1 – 11 of 11) sorted by relevance
/third_party/python/Python/ |
D | ast.c | 563 … if (asdl_seq_LEN(p->v.MatchClass.kwd_attrs) != asdl_seq_LEN(p->v.MatchClass.kwd_patterns)) { in validate_pattern() 569 if (!validate_expr(state, p->v.MatchClass.cls, Load)) { in validate_pattern() 574 expr_ty cls = p->v.MatchClass.cls; in validate_pattern() 591 for (Py_ssize_t i = 0; i < asdl_seq_LEN(p->v.MatchClass.kwd_attrs); i++) { in validate_pattern() 592 PyObject *identifier = asdl_seq_GET(p->v.MatchClass.kwd_attrs, i); in validate_pattern() 599 if (!validate_patterns(state, p->v.MatchClass.patterns, /*star_ok=*/0)) { in validate_pattern() 604 ret = validate_patterns(state, p->v.MatchClass.kwd_patterns, /*star_ok=*/0); in validate_pattern()
|
D | ast_opt.c | 820 CALL(astfold_expr, expr_ty, node_->v.MatchClass.cls); in astfold_pattern() 821 CALL_SEQ(astfold_pattern, pattern, node_->v.MatchClass.patterns); in astfold_pattern() 822 CALL_SEQ(astfold_pattern, pattern, node_->v.MatchClass.kwd_patterns); in astfold_pattern()
|
D | symtable.c | 1773 VISIT(st, expr, p->v.MatchClass.cls); in symtable_visit_pattern() 1774 VISIT_SEQ(st, pattern, p->v.MatchClass.patterns); in symtable_visit_pattern() 1775 VISIT_SEQ(st, pattern, p->v.MatchClass.kwd_patterns); in symtable_visit_pattern()
|
D | compile.c | 5914 asdl_pattern_seq *patterns = p->v.MatchClass.patterns; in compiler_pattern_class() 5915 asdl_identifier_seq *kwd_attrs = p->v.MatchClass.kwd_attrs; in compiler_pattern_class() 5916 asdl_pattern_seq *kwd_patterns = p->v.MatchClass.kwd_patterns; in compiler_pattern_class() 5928 return compiler_error(c, e, p->v.MatchClass.cls); in compiler_pattern_class() 5934 VISIT(c, expr, p->v.MatchClass.cls); in compiler_pattern_class()
|
D | Python-ast.c | 3487 p->v.MatchClass.cls = cls; in _PyAST_MatchClass() 3488 p->v.MatchClass.patterns = patterns; in _PyAST_MatchClass() 3489 p->v.MatchClass.kwd_attrs = kwd_attrs; in _PyAST_MatchClass() 3490 p->v.MatchClass.kwd_patterns = kwd_patterns; in _PyAST_MatchClass() 5208 value = ast2obj_expr(state, o->v.MatchClass.cls); in ast2obj_pattern() 5213 value = ast2obj_list(state, (asdl_seq*)o->v.MatchClass.patterns, in ast2obj_pattern() 5219 value = ast2obj_list(state, (asdl_seq*)o->v.MatchClass.kwd_attrs, in ast2obj_pattern() 5225 value = ast2obj_list(state, (asdl_seq*)o->v.MatchClass.kwd_patterns, in ast2obj_pattern()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIInstrInfo.td | 1001 class NamedOperandBit<string Name, AsmOperandClass MatchClass> : Operand<i1> { 1003 let ParserMatchClass = MatchClass; 1006 class NamedOperandBit_0<string Name, AsmOperandClass MatchClass> : 1009 let ParserMatchClass = MatchClass; 1012 class NamedOperandU8<string Name, AsmOperandClass MatchClass> : Operand<i8> { 1014 let ParserMatchClass = MatchClass; 1017 class NamedOperandU16<string Name, AsmOperandClass MatchClass> : Operand<i16> { 1019 let ParserMatchClass = MatchClass; 1022 class NamedOperandU32<string Name, AsmOperandClass MatchClass> : Operand<i32> { 1024 let ParserMatchClass = MatchClass; [all …]
|
/third_party/python/Parser/ |
D | Python.asdl | 133 | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns)
|
/third_party/python/Lib/test/ |
D | test_ast.py | 1561 ast.MatchClass( 1569 ast.MatchClass( 1575 ast.MatchClass( 1581 ast.MatchClass( 1587 ast.MatchClass( 1593 ast.MatchClass(
|
/third_party/python/Include/internal/ |
D | pycore_ast.h | 592 } MatchClass; member
|
/third_party/python/Doc/library/ |
D | ast.rst | 1299 pattern=MatchClass( 1478 .. class:: MatchClass(cls, patterns, kwd_attrs, kwd_patterns) 1510 pattern=MatchClass( 1523 pattern=MatchClass(
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0b1.rst | 238 ``MatchClass``) rather than reusing expression AST nodes. ``MatchAs`` and
|