|
1 | | -Module: [1, 0] - [43, 0] |
| 1 | +Module: [1, 0] - [61, 0] |
2 | 2 | body: [ |
3 | 3 | Match: [1, 0] - [3, 19] |
4 | 4 | subject: |
@@ -379,4 +379,210 @@ Module: [1, 0] - [43, 0] |
379 | 379 | Pass: [42, 8] - [42, 12] |
380 | 380 | ] |
381 | 381 | ] |
| 382 | + Match: [44, 0] - [60, 12] |
| 383 | + subject: |
| 384 | + Name: [44, 6] - [44, 11] |
| 385 | + variable: Variable('value', None) |
| 386 | + ctx: Load |
| 387 | + cases: [ |
| 388 | + Case: [45, 4] - [46, 12] |
| 389 | + pattern: |
| 390 | + MatchLiteralPattern: [45, 9] - [45, 11] |
| 391 | + literal: |
| 392 | + UnaryOp: [45, 10] - [45, 11] |
| 393 | + op: UAdd |
| 394 | + operand: |
| 395 | + Num: [45, 10] - [45, 11] |
| 396 | + n: 1 |
| 397 | + text: '1' |
| 398 | + guard: None |
| 399 | + body: [ |
| 400 | + Pass: [46, 8] - [46, 12] |
| 401 | + ] |
| 402 | + Case: [47, 4] - [48, 12] |
| 403 | + pattern: |
| 404 | + MatchLiteralPattern: [47, 9] - [47, 13] |
| 405 | + literal: |
| 406 | + UnaryOp: [47, 10] - [47, 13] |
| 407 | + op: UAdd |
| 408 | + operand: |
| 409 | + Num: [47, 10] - [47, 13] |
| 410 | + n: 1.5 |
| 411 | + text: '1.5' |
| 412 | + guard: None |
| 413 | + body: [ |
| 414 | + Pass: [48, 8] - [48, 12] |
| 415 | + ] |
| 416 | + Case: [49, 4] - [50, 12] |
| 417 | + pattern: |
| 418 | + MatchLiteralPattern: [49, 9] - [49, 12] |
| 419 | + literal: |
| 420 | + UnaryOp: [49, 10] - [49, 12] |
| 421 | + op: UAdd |
| 422 | + operand: |
| 423 | + Num: [49, 10] - [49, 12] |
| 424 | + n: 2j |
| 425 | + text: '2j' |
| 426 | + guard: None |
| 427 | + body: [ |
| 428 | + Pass: [50, 8] - [50, 12] |
| 429 | + ] |
| 430 | + Case: [51, 4] - [52, 12] |
| 431 | + pattern: |
| 432 | + MatchLiteralPattern: [51, 9] - [51, 14] |
| 433 | + literal: |
| 434 | + BinOp: [51, 9] - [51, 14] |
| 435 | + left: |
| 436 | + UnaryOp: [51, 10] - [51, 11] |
| 437 | + op: UAdd |
| 438 | + operand: |
| 439 | + Num: [51, 10] - [51, 11] |
| 440 | + n: 1 |
| 441 | + text: '1' |
| 442 | + op: Add |
| 443 | + right: |
| 444 | + Num: [51, 12] - [51, 14] |
| 445 | + n: 2j |
| 446 | + text: '2j' |
| 447 | + guard: None |
| 448 | + body: [ |
| 449 | + Pass: [52, 8] - [52, 12] |
| 450 | + ] |
| 451 | + Case: [53, 4] - [54, 12] |
| 452 | + pattern: |
| 453 | + MatchLiteralPattern: [53, 9] - [53, 14] |
| 454 | + literal: |
| 455 | + BinOp: [53, 9] - [53, 14] |
| 456 | + left: |
| 457 | + UnaryOp: [53, 10] - [53, 11] |
| 458 | + op: UAdd |
| 459 | + operand: |
| 460 | + Num: [53, 10] - [53, 11] |
| 461 | + n: 1 |
| 462 | + text: '1' |
| 463 | + op: Sub |
| 464 | + right: |
| 465 | + Num: [53, 12] - [53, 14] |
| 466 | + n: 2j |
| 467 | + text: '2j' |
| 468 | + guard: None |
| 469 | + body: [ |
| 470 | + Pass: [54, 8] - [54, 12] |
| 471 | + ] |
| 472 | + Case: [55, 4] - [56, 12] |
| 473 | + pattern: |
| 474 | + MatchOrPattern: [55, 9] - [55, 30] |
| 475 | + patterns: [ |
| 476 | + MatchLiteralPattern: [55, 9] - [55, 14] |
| 477 | + literal: |
| 478 | + UnaryOp: [55, 10] - [55, 14] |
| 479 | + op: UAdd |
| 480 | + operand: |
| 481 | + Num: [55, 10] - [55, 14] |
| 482 | + n: 16 |
| 483 | + text: '0x10' |
| 484 | + MatchLiteralPattern: [55, 17] - [55, 22] |
| 485 | + literal: |
| 486 | + UnaryOp: [55, 18] - [55, 22] |
| 487 | + op: UAdd |
| 488 | + operand: |
| 489 | + Num: [55, 18] - [55, 22] |
| 490 | + n: 8 |
| 491 | + text: '0o10' |
| 492 | + MatchLiteralPattern: [55, 25] - [55, 30] |
| 493 | + literal: |
| 494 | + UnaryOp: [55, 26] - [55, 30] |
| 495 | + op: UAdd |
| 496 | + operand: |
| 497 | + Num: [55, 26] - [55, 30] |
| 498 | + n: 2 |
| 499 | + text: '0b10' |
| 500 | + ] |
| 501 | + guard: None |
| 502 | + body: [ |
| 503 | + Pass: [56, 8] - [56, 12] |
| 504 | + ] |
| 505 | + Case: [57, 4] - [58, 12] |
| 506 | + pattern: |
| 507 | + MatchSequencePattern: [57, 9] - [57, 19] |
| 508 | + patterns: [ |
| 509 | + MatchLiteralPattern: [57, 10] - [57, 12] |
| 510 | + literal: |
| 511 | + UnaryOp: [57, 11] - [57, 12] |
| 512 | + op: UAdd |
| 513 | + operand: |
| 514 | + Num: [57, 11] - [57, 12] |
| 515 | + n: 0 |
| 516 | + text: '0' |
| 517 | + MatchLiteralPattern: [57, 14] - [57, 18] |
| 518 | + literal: |
| 519 | + UnaryOp: [57, 15] - [57, 18] |
| 520 | + op: USub |
| 521 | + operand: |
| 522 | + Num: [57, 15] - [57, 18] |
| 523 | + n: 0.0 |
| 524 | + text: '0.0' |
| 525 | + ] |
| 526 | + guard: None |
| 527 | + body: [ |
| 528 | + Pass: [58, 8] - [58, 12] |
| 529 | + ] |
| 530 | + Case: [59, 4] - [60, 12] |
| 531 | + pattern: |
| 532 | + MatchMappingPattern: [59, 9] - [59, 33] |
| 533 | + mappings: [ |
| 534 | + MatchKeyValuePattern: [59, 10] - [59, 15] |
| 535 | + key: |
| 536 | + MatchLiteralPattern: [59, 10] - [59, 12] |
| 537 | + literal: |
| 538 | + UnaryOp: [59, 11] - [59, 12] |
| 539 | + op: UAdd |
| 540 | + operand: |
| 541 | + Num: [59, 11] - [59, 12] |
| 542 | + n: 1 |
| 543 | + text: '1' |
| 544 | + value: |
| 545 | + MatchCapturePattern: [59, 14] - [59, 15] |
| 546 | + variable: |
| 547 | + Name: [59, 14] - [59, 15] |
| 548 | + variable: Variable('x', None) |
| 549 | + ctx: Store |
| 550 | + MatchKeyValuePattern: [59, 17] - [59, 24] |
| 551 | + key: |
| 552 | + MatchLiteralPattern: [59, 17] - [59, 21] |
| 553 | + literal: |
| 554 | + UnaryOp: [59, 18] - [59, 21] |
| 555 | + op: UAdd |
| 556 | + operand: |
| 557 | + Num: [59, 18] - [59, 21] |
| 558 | + n: 1.5 |
| 559 | + text: '1.5' |
| 560 | + value: |
| 561 | + MatchCapturePattern: [59, 23] - [59, 24] |
| 562 | + variable: |
| 563 | + Name: [59, 23] - [59, 24] |
| 564 | + variable: Variable('y', None) |
| 565 | + ctx: Store |
| 566 | + MatchKeyValuePattern: [59, 26] - [59, 32] |
| 567 | + key: |
| 568 | + MatchLiteralPattern: [59, 26] - [59, 29] |
| 569 | + literal: |
| 570 | + UnaryOp: [59, 27] - [59, 29] |
| 571 | + op: UAdd |
| 572 | + operand: |
| 573 | + Num: [59, 27] - [59, 29] |
| 574 | + n: 2j |
| 575 | + text: '2j' |
| 576 | + value: |
| 577 | + MatchCapturePattern: [59, 31] - [59, 32] |
| 578 | + variable: |
| 579 | + Name: [59, 31] - [59, 32] |
| 580 | + variable: Variable('z', None) |
| 581 | + ctx: Store |
| 582 | + ] |
| 583 | + guard: None |
| 584 | + body: [ |
| 585 | + Pass: [60, 8] - [60, 12] |
| 586 | + ] |
| 587 | + ] |
382 | 588 | ] |
0 commit comments