Commit 4260c32
Support blank ensure statements.
Fixes a `NoMethodError` that occurred when a begin block included a blank ensure clause.
Previously, attempting to handle such a statement resulted in the following error:
```
NoMethodError: undefined method `type' for nil
.../typeprof/lib/typeprof/core/ast.rb:24:in `create_node'
.../typeprof/lib/typeprof/core/ast/control.rb:369:in `initialize'
```
Related: https://github.com/test-unit/test-unit/blob/68c6c3a/lib/test/unit/testcase.rb#L6231 parent 93e5f35 commit 4260c32
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments