Repository navigation
Commit e2138e8
committed
Check regular expression grammar once through a memo set
The grammar check of a regular expression literal ran once because of
a TypeChecked flag on the node, set by a plain write. Discarding the
results of a cycle does not undo such a write, so if the check ran
while results were later discarded, it would not run again.
Use a memo set instead, like the other checks whose only results are
diagnostics, and drop the memo field that guarded nothing.1 parent 6ab3813 commit e2138e8
2 files changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
| 1027 | + | |
1027 | 1028 | | |
1028 | 1029 | | |
1029 | 1030 | | |
| |||
8401 | 8402 | | |
8402 | 8403 | | |
8403 | 8404 | | |
8404 | | - | |
8405 | | - | |
8406 | | - | |
8407 | | - | |
8408 | | - | |
8409 | | - | |
8410 | | - | |
8411 | | - | |
8412 | | - | |
8413 | | - | |
| 8405 | + | |
8414 | 8406 | | |
8415 | | - | |
| 8407 | + | |
8416 | 8408 | | |
8417 | 8409 | | |
8418 | 8410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
0 commit comments