Commit feaa8f6
authored
[move][move-compiler] Allow braced module definitions after labeld module definitions (#24350)
## Description
Enhances the Move compiler's handling around multiple modules in a
single file, plus improves diagnostics around that. This better-supports
`extend module` definitions within the same file as the module itself,
etc.
## Test plan
Added new tests for valid and invalid uses of `extend module`, including
cases with multiple modules and extensions, and updated expected outputs
to match the improved diagnostics.
---
## Release notes
Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.
For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.
- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] gRPC:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK:
- [ ] Indexing Framework:1 parent fe7d7f3 commit feaa8f6
File tree
19 files changed
+175
-47
lines changed- external-crates/move/crates/move-compiler
- src/parser
- tests
- move_2024
- extensions
- parser
- move_check/parser
19 files changed
+175
-47
lines changedLines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4547 | 4547 | | |
4548 | 4548 | | |
4549 | 4549 | | |
4550 | | - | |
4551 | | - | |
| 4550 | + | |
4552 | 4551 | | |
4553 | | - | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
4554 | 4556 | | |
4555 | 4557 | | |
4556 | 4558 | | |
| |||
4671 | 4673 | | |
4672 | 4674 | | |
4673 | 4675 | | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
4674 | 4681 | | |
4675 | 4682 | | |
4676 | 4683 | | |
| |||
4755 | 4762 | | |
4756 | 4763 | | |
4757 | 4764 | | |
4758 | | - | |
4759 | | - | |
4760 | | - | |
4761 | | - | |
4762 | | - | |
4763 | | - | |
4764 | | - | |
4765 | | - | |
| 4765 | + | |
4766 | 4766 | | |
4767 | 4767 | | |
4768 | 4768 | | |
| |||
4860 | 4860 | | |
4861 | 4861 | | |
4862 | 4862 | | |
4863 | | - | |
| 4863 | + | |
4864 | 4864 | | |
4865 | | - | |
| 4865 | + | |
4866 | 4866 | | |
4867 | | - | |
4868 | | - | |
| 4867 | + | |
| 4868 | + | |
4869 | 4869 | | |
4870 | 4870 | | |
4871 | 4871 | | |
| |||
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 8 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments