-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move][move-ide][move-compiler] Swap
FilesSourceText
to `MappedFile…
…s` in most places (#18270) ## Description This swaps out `FilesSourceText` for `MappedFiles` whenever possible, along with the following changes: - The internal implementation of `MappedFiles` is a little more complicated to support some `move-analyzer` behaviors. - `MappedFiles` now lives in `move-compiler/shared/files.rs` to reflect it being standalone from the diagnostics. - This also updates the `move-analyzer` to start using the `MappedFiles` instead of maintaining a separate file state. - The `Position` form had its fields reverted to non-`pub` with getters to better-clarify the value being returned. ## Test plan All tests still run. --- ## 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): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
- Loading branch information
Showing
22 changed files
with
606 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.